Opening multiple Files in Different Encoding

2012-07-10 Thread Subhabrata
Python3.2 on Windows. Regards, Subhabrata Banerjee. -- http://mail.python.org/mailman/listinfo/python-list

Calling Values

2012-08-03 Thread Subhabrata
quot;New Number One is:",num3 print "New Number Two is:",num4 return I am preferring not to use argument passing or using class? Is there any alternate way? Thanking in Advance, Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Some Silly Questions

2012-09-15 Thread Subhabrata
Dear Group, I am going to ask two very silly questions, if any one can kindly tell me why this structure is taken? classifier.pseudocode(depth=4) from nltk.corpus import brown Sorry to ask you these. Actually everytime I get confused with the answers. Regards, Subhabrata -- http

Re: Python and Hidden Markov Model

2013-03-08 Thread Subhabrata
any people on this list will know what a Hidden Markov > Model is. While I do know what they are, I have never done anything > with them in Python or otherwise. However, if you ask in the right > place, I'm sure that you will find people who have done similar things > in Python. > > Oscar Thank you Sir for your kind time. I would surely check them. Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Use of index

2008-07-12 Thread SUBHABRATA
quot;God may be always great" -- Now, my q is can we use index like find? Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Question on Joining of list

2008-07-18 Thread SUBHABRATA
e, if I put a string like: Petrol Helium Heaven Sky In s it is giving me S Helium But I am looking for an output of a5 and a6 concatenating all its values not the last ones. Can you suggest me any help? Am I missing any minor point? Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on Joining of list

2008-07-18 Thread SUBHABRATA
quot;Sky" and "Helium" But I was looking for an output of "H S Petrol Helium" and not "S Helium" meaning all the values of a5 and a6 will be concatenated in s. Best Regards, Subhabrata.. Marc 'BlackJack' Rintsch wrote: > On Fri, 18 Jul 2008 0

Re: Question on Joining of list

2008-07-18 Thread SUBHABRATA
Thanx Peter, I would change my variables next time I would post. And obviously, thanx for your solution. I am reviewing it, I was also trying out some solutions. Best Regards, Subhabrata. Peter Otten wrote: > SUBHABRATA wrote: > > > I am trying the following code line: &g

Re: Question on Joining of list

2008-07-18 Thread SUBHABRATA
Hi Peter, In your code s would print first_char(of the last word)+" "+missing_word(the last word) I was looking all. Best Regards, Subhabrata. SUBHABRATA wrote: > Sorry if I didn't say that. > The input is a string "Petrol Helium Heaven Sky" > Now, in a3 it is

Re: Question on Joining of list

2008-07-18 Thread SUBHABRATA
Hi Peter, Peter Otten wrote: > SUBHABRATA wrote: > > > Thanx Peter, > > I would change my variables next time I would post. > > No, you should use meaningful variable names when you write your code no > matter whether you plan to post it or not. Good You are teachin

Re: Question on Joining of list

2008-07-20 Thread SUBHABRATA
are variables:-) ) according to my own ease isn't that good? Best Regards, Subhabrata. MRAB wrote: > On Jul 19, 6:34�am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > On Fri, 18 Jul 2008 16:43:35 -0700 (PDT), John Machin > > <[EMAIL PROTECTED]> declaimed t

Web Page Construction in Python

2008-07-21 Thread SUBHABRATA
)The worked out examples of kid are not opening properly, is there any other URL where I can see them. iv) Can cgi scripting be done with kid? If any one can spend time on my questions. Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Question Regarding XML

2008-07-25 Thread SUBHABRATA
Dear Group, I have some queries regarding XML conversion of some .txt/.doc files. I am thinking to use Satine. Is it OK? But it seems to support Python2.3 but does it support 2.5, too? If any one can kindly let me know. Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python

Problem with list.insert

2008-08-28 Thread SUBHABRATA
print a19 #INSERTING IN THE LIST OF TARGET STRING a20=a16.insert(a18,a19) print a16 a21=(" ".join(a16)) print a21 Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with list.insert

2008-08-28 Thread SUBHABRATA
G IS: lincoln रहेसाक्ता २.यात्राकरना Best Regards, Subhabrata. Marc 'BlackJack' Rintsch wrote: > On Thu, 28 Aug 2008 09:13:00 -0700, SUBHABRATA wrote: > > > import re > > def wordchecker1(n): > > # INPUTTING STRING > > a1=raw_input("PRINT ONE

Re: Problem with list.insert

2008-08-29 Thread SUBHABRATA
Best Regards, Subhabrata. Terry Reedy wrote: > SUBHABRATA, I recommend you study this excellent response carefully. > > castironpi wrote: > > On Aug 28, 11:13 am, SUBHABRATA <[EMAIL PROTECTED]> wrote: > >-. > > > > Instead split up your inputs first thing. >

Question on Open Project

2011-01-26 Thread Subhabrata
from India(as many a times personal interaction is helpful) which I can do from home. If anyone knows of any reliable link. Best, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for Remote Python Project

2011-02-01 Thread Subhabrata
or so. I have successfully built around 15 projects > > in Python. I am looking for some remote Python Projects, which can be > > done from home. > > > If any one knows of anything, I may be helpful enough. > > > Best Regards, > > Subhabrata. > > Subharat

Enthought Canopy

2015-03-19 Thread subhabrata . banerji
. Regards, Subhabrata. -- https://mail.python.org/mailman/listinfo/python-list

How to handle file in Whoosh?

2015-03-31 Thread subhabrata . banerji
I am trying to build a search engine, I started with Whoosh. The tutorial and web based materials are fine. Web has sizable question and answers. The initial experiments seem going fine. But I want to handle files located in various parts of my machine. I found "from whoosh.filedb.filestore impo

Re: How to convert .doc file to .txt in Python

2015-04-09 Thread subhabrata . banerji
On Thursday, April 9, 2015 at 4:23:55 PM UTC+5:30, Tim Golden wrote: > On 09/04/2015 11:25, wrote: > > Dear Group, > > > > I was trying to convert .doc file to .txt file. > > > > I got of python-docx, zipfile but they do not seem to help me much. > > > > You may kindly suggest how to convert fro

Re: How to convert .doc file to .txt in Python

2015-04-09 Thread subhabrata . banerji
c to .docx/.html/.pdf/.rtf as > from them I am being able to convert to .txt. > > If any one of the Python experts may kindly help me. > > Regards, > Subhabrata Banerjee. I could do one it seems running with >>> import win32com.client as win32 >>> word

How to convert .doc file to .txt in Python

2015-04-09 Thread subhabrata . banerji
kindly help me. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Converting text file to different encoding.

2015-04-17 Thread subhabrata . banerji
eback (most recent call last): File "", line 1, in target.write(unicode(source, sourceEncoding).encode(targetEncoding)) TypeError: coercing to Unicode: need string or buffer, file found If anybody may kindly suggest how may I solve it. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Converting text file to different encoding.

2015-04-17 Thread subhabrata . banerji
) >>>> target.write(unicode(source, sourceEncoding).encode(targetEncoding)) > > but it was giving me error as follows, > Traceback (most recent call last): > File "", line 1, in > target.write(unicode(source, sourceEncoding).encode(targetEncoding))

Re: Converting text file to different encoding.

2015-04-17 Thread subhabrata . banerji
On Friday, April 17, 2015 at 7:36:46 PM UTC+5:30, Oscar Benjamin wrote: > wrote: > > On Friday, April 17, 2015 at 6:50:08 PM UTC+5:30, wrote: > >> I am having few files in default encoding. I wanted to change their > >> encodings, > >> preferably in "UTF-8", or may be from one encoding to any ot

Opening Multiple files at one time

2015-04-20 Thread subhabrata . banerji
er of text files I would create beforehand, so not trying xrange option also. And if in every run of the code if the name of the text files have to created on its own. Is there a solution for this? If anybody may please suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Opening Multiple files at one time

2015-04-21 Thread subhabrata . banerji
results, you should store in different text files. These text files I am looking to be created on its own, as you do not know its numbers, how many numbers you need to fetch the data. I am trying to do some results with import datetime as datetime.datetime.now() may change everytime. I am trying to put it as name of file. But you may suggest better. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Opening Multiple files at one time

2015-04-22 Thread subhabrata . banerji
to created on its own. > > Is there a solution for this? > > If anybody may please suggest. > > Regards, > Subhabrata Banerjee. Surely, this problem is more or less fixed. But I experiment with all answers everytime to get better angles. -- https://mail.python.org/mailman/listinfo/python-list

A question on the creation of list of lists

2015-04-22 Thread subhabrata . banerji
ion error. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: A question on the creation of list of lists

2015-04-22 Thread subhabrata . banerji
> print all_sent > > Am I doing anything wrong? If any one may kindly suggest? > Is there any smarter way to do it? I am using Python2.7+ > on MS-Windows 7 Professional Edition. > Apology for any indentation error. > > Regards, > Subhabrata Banerjee. I was trying

May I drop list bracket from list?

2015-04-23 Thread subhabrata . banerji
hon27 on Windows7 Professional. Apology for an indentation error. If anybody may please suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: May I drop list bracket from list?

2015-04-23 Thread subhabrata . banerji
append > words in a list to the list the logical approach is therefore to loop over > the words and invoke append for every word > > for word in fword: > list1.append(word) > > There is also a dedicated extend() method that takes a list (actually an > iterable) and a

Boolean Search using Strings

2015-04-23 Thread subhabrata . banerji
Dear Group, I want to do the Boolean search over various sentences or documents. I do not want to use special programs like Whoosh, etc. May I use any other parser? If anybody may kindly let me know. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Boolean Operator Confusion

2015-04-24 Thread subhabrata . banerji
=raw_input("Print Your Currency") if x1=="USA" and x2=="Dollar": print "Correct" elif x1=="USA" and x2!="Dollar": print "Not Matching" else: print "None&

Re: Boolean Operator Confusion

2015-04-24 Thread subhabrata . banerji
d to re-write your test to be one of these: > > # version 1 > if "AND" in str1 or "OR" in str1 or "NOT" in str1: > print "It is a Boolean Query" > else: > print "It is not a Boolean Query" > > > # version 2 > if any(word in str1 for word in ("AND", "OR", "NOT")): > print "It is a Boolean Query" > else: > print "It is not a Boolean Query" > > > > > -- > Steven Thanks Steven for taking so much of your valuable time to make me understand and nice guidance. Ian your suggestion worked well. Thank you. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Accessing file from Remote location

2015-04-29 Thread subhabrata . banerji
Sep 15 2014, 17:36:35) [MSC v.1500 64 bit (AMD64)] on win32 Enthought Canopy. This is not my default Python location. My current directory is: >>> os.getcwd() 'C:\\Windows\\system32' >>> I am using Windows 7 Professional 64 bit. If any body may kindly suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Fast way of extracting files from various folders

2015-05-01 Thread subhabrata . banerji
e any way I may do it fast? I am using Python2.7 on Windows 7 Professional Edition. Apology for any indentation error. If any one may kindly suggest a solution. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast way of extracting files from various folders

2015-05-02 Thread subhabrata . banerji
print "It is a Doc file" > except: > print "DOC ISSUE" > > But it seems it is taking too much of time, to convert to text and to append > to list. Is there any way I may do it fast? I am using Python2.7

Re: Fast way of extracting files from various folders

2015-05-02 Thread subhabrata . banerji
t; > It will not help the first time through your documents, but if you write the > words for the word documents in one .txt file per .doc, and the original > files rarely change you can read from the .txt files when you run your > script a second time. Just make sure that the .txt is younger than the > corresponding .doc by checking the file time. > > In short: use a caching strategy. Thanks Peter. I'll surely check on that. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Problem in Handling MySql Data.

2015-05-02 Thread subhabrata . banerji
List for DocX file Is:",list4 else: print "NONE1" else: print "It is not a Doc file" except: print "OOPS1" I am using Python2.7.6 on Enthought Canopy. It is not my default Python. My default Python is in location,"C:\\Python27". I am using MySql and Windows 7 Professional. Apology for any indentation error. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

IDLE Restoration

2015-05-08 Thread subhabrata . banerji
Dear Group, In many applications there is a facility to restore its previous sessions, especially if they close accidentally. Does IDLE have any such facility? If it is there, how may I use it? If someone may kindly suggest it. Regards, Subhabrata Banerjee. -- https://mail.python.org

Integrating Python Code with Django

2015-05-13 Thread subhabrata . banerji
7 Professional. If any one may kindly suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Flask Post returning error

2015-05-18 Thread subhabrata . banerji
27;, data=json.dumps(payload)) >>> var5=requests.get('http://127.0.0.1:5000/todos') >>> var6=var5.text >>> print var6 { "todo1": { "task": "build an API" }, "todo3": { "task": null } } If anyone may kindly suggest what is the error I am doing. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Flask Post returning error

2015-05-19 Thread subhabrata . banerji
Api resource routing here ## api.add_resource(TodoList, '/todos') api.add_resource(Todo, '/todos/') if __name__ == '__main__': app.run(debug=True) taken from: http://flask.pocoo.org/docs/0.10/quickstart/ Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

REST framework Editor in Python

2015-05-20 Thread subhabrata . banerji
/restview -is it doing this? In that case, if any one may kindly share some examples or tutorial for it. Thanks in advance, Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Inverted Comma Search

2015-05-29 Thread subhabrata . banerji
Dear Group, I am trying to implement two searches, inverted comma search and search within brackets. I am trying to implement them in Whoosh, but not finding good tutorial or examples. If any one may kindly help me with. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman

Model Dumping Pickle

2015-05-30 Thread subhabrata . banerji
255729794502258), ('try', 0.6118115186691284), ('go', 0.609034538269043), ('oppose', 0.6002943515777588)] >>> f1.close() Am I going fine? If any one may kindly suggest. I am using Python 2.7 on MS-Windows 7 Professional. Apology for any indentation error. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Error in or

2015-06-11 Thread subhabrata . banerji
ot;*" in inp1) or (''' " ''' in inp1): the portion of (''' " ''' in inp1) is not working. If any one of the esteemed members may kindly suggest the error I am making. I am using Python2.7+ on Windows 7 Professional. Apology for any indentation error. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Error in or

2015-06-11 Thread subhabrata . banerji
YOUR QUERY:") if ("AND" in inp1) or ("OR" in inp1) or ("NOT" in inp1) or (">" in inp1) or ("&" in inp1) or ("MAYBE" in inp1) or ("(" in inp1) or ("*" in inp1) or (''' " ''&#

Re: Error in or

2015-06-11 Thread subhabrata . banerji
x27; in inp1): > > print "FINE" > > > > > >>>> input1(1) > > PRINT YOUR QUERY:"Java" > >>>> input1(1) > > PRINT YOUR QUERY:"Obama in London" > >>>> input1(1) > > PRI

How may I Integrate Python Code with REST

2015-06-12 Thread subhabrata . banerji
okay. I can put,get,delete. But how may I proceed I am not getting much idea. I bit new in REST. If any one of the esteemed members may kindly provide an idea how may I proceed? Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: How may I Integrate Python Code with REST

2015-06-13 Thread subhabrata . banerji
tting much idea. I bit new in REST. > >If any one of the esteemed members may kindly provide an idea how may I > >proceed? > > > >Regards, > >Subhabrata Banerjee. > > All you need now is post. So it looks as if you have all the bits you > need, but you d

Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
members may kindly suggest how to work out. I am using Python2.7+ on Windows 7 Professional. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
exe.org/index.cgi/Tutorial of Py2exe. The sample program went > >nice. > >But if I try to make exe for larger programs with methods and classes I am > >getting error. > > > >If any one of the esteemed members may kindly suggest how to work out. > >I am us

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
if I try to make exe for larger programs with methods and classes I am > getting error. > > If any one of the esteemed members may kindly suggest how to work out. > I am using Python2.7+ on Windows 7 Professional. > > Regards, > Subhabrata Banerjee. I am also experiment

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
ke exe for larger programs with methods and classes > I am getting error. > > > > > > > > If any one of the esteemed members may kindly suggest how to work out. > > > > > I am using Python2.7+ on Windows 7 Professional. > > &

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
if I try to make exe for larger programs with methods and classes I am > getting error. > > If any one of the esteemed members may kindly suggest how to work out. > I am using Python2.7+ on Windows 7 Professional. > > Regards, > Subhabrata Banerjee. Dear Madam, Thanks. Mos

Re: Creating .exe file in Python

2015-06-16 Thread subhabrata . banerji
ils-to-generate-an-executable and pasted libiomp5md.dll from numpy now it is giving NLQ3.exe in dist and generating few errors in a corresponding log file. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating .exe file in Python

2015-06-16 Thread subhabrata . banerji
le-with-errors but it is not giving much help. ii) In a class how may I include if __name__ == "__main__": with multiple methods? But I think this is easy question there should be lot of web help. If anyone may kindly suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating .exe file in Python

2015-06-16 Thread subhabrata . banerji
should be lot of web help. > > > >If anyone may kindly suggest. > > > >Regards, > >Subhabrata Banerjee. > > There is something wrong in the way you are thinking about this. > You don't _want_ to stick if __name__ = "__main__": > into every class you

Re: Creating .exe file in Python

2015-06-16 Thread subhabrata . banerji
ctual code. Your error interpretations are right. I could work out a small solution please check if it is going fine. It is giving me result. if __name__ == "__main__": c1=Colors() c2=c1.Blue() c3=c1.Red() Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating .exe file in Python

2015-06-17 Thread subhabrata . banerji
run the .exe files created in Non Python Windows environment. Linux has Python builtin but in Non Python environment how may I run it? Is there any set of prequisites I have to follow. I am not finding much web help, if any one may kindly suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating .exe file in Python

2015-06-17 Thread subhabrata . banerji
ack, and look at just getting your Python program to run on all > platforms... and that's easy, just distribute the .py files. Much MUCH > easier, more reliable, and simpler. > > ChrisA Dear Sir, Thank you for your kind and prompt answer. I was about to explore another package. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating .exe file in Python

2015-06-17 Thread subhabrata . banerji
les created in Non Python Windows environment. Linux has > >Python builtin but in Non Python environment how may I run it? Is there any > >set of prequisites I have to follow. I am not finding much web help, if any > >one may kindly suggest. > > > >Regards, > >Subha

Re: Creating .exe file in Python

2015-06-17 Thread subhabrata . banerji
if I try to make exe for larger programs with methods and classes I am > getting error. > > If any one of the esteemed members may kindly suggest how to work out. > I am using Python2.7+ on Windows 7 Professional. > > Regards, > Subhabrata Banerjee. But if I am moving the f

Re: Creating .exe file in Python

2015-06-17 Thread subhabrata . banerji
On Wednesday, June 17, 2015 at 7:47:59 PM UTC+5:30, rand...@fastmail.us wrote: > On Wed, Jun 17, 2015, at 09:33, hamilton wrote: > > However, the python source can be read by anyone. > > > > As a .exe, the source can not be read. > > > > Just because the interpreter is open source, > > does not m

Re: Creating .exe file in Python

2015-06-17 Thread subhabrata . banerji
>> > >> If any one of the esteemed members may kindly suggest how to work out. > >> I am using Python2.7+ on Windows 7 Professional. > >> > >> Regards, > >> Subhabrata Banerjee. > > > >But if I am moving the file from Python

Re: Creating .exe file in Python

2015-06-17 Thread subhabrata . banerji
people > > access the server without seeing the code. > > Stop giving people ideas. > > > > -- > Steven Why sir? Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Combing Search Engine with REST

2015-07-10 Thread subhabrata . banerji
slightly confused how may I do it. If any one of esteemed members of the group may suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

File Upload in Restful Flask

2015-07-20 Thread subhabrata . banerji
quickstart tutorial so that I may be able to upload file. Or if any one may kindly suggest with a small example. If any one of the esteemed members may kindly suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: File Upload in Restful Flask

2015-07-20 Thread subhabrata . banerji
upload file. Or > > if any one may kindly suggest with a small example. > > > > If any one of the esteemed members may kindly suggest. > > > > Regards, > > Subhabrata Banerjee. > > > > I'm no expert on Python or REST but the example

Re: File Upload in Restful Flask

2015-07-20 Thread subhabrata . banerji
; >>> (iii) http://blog.luisrei.com/articles/flaskrest.html > >>> > >>> But the question I am stuck with what are the things I have to change in > >>> the example of quickstart tutorial so that I may be able to upload file. > >>>

Search in Flask Restful

2015-07-23 Thread subhabrata . banerji
ormat.html#examples But I am looking for examples with requests. I searched for help with requests in http://docs.python-requests.org/en/latest/, it did not help much. If anyone of the esteemed members may kindly suggest. I am using Python2.7+ on Windows 7. Apology for any indentation error.

How may I learn Python Web Frameworks

2015-07-24 Thread subhabrata . banerji
basic things. I am looking for a good book like Dive into Python or some good web based tutorials. I tried to search but unfortunately could not find. I am using Python2.7+ on Windows 7. If any one of the members may kindly suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org

Logical Query in Python

2015-07-30 Thread subhabrata . banerji
may kindly help me with. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Logical Query JSON

2015-07-30 Thread subhabrata . banerji
members may kindly help me with. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: Logical Query JSON

2015-07-30 Thread subhabrata . banerji
last): File "", line 1, in x1['age'] KeyError: 'age' >>> x1['or'] [{'age': 4}, {'name': 'Joe'}] >>> x1['or']['age'] Traceback (most recent call last): File "", line 1,

Re: Logical Query in Python

2015-07-30 Thread subhabrata . banerji
do not re-type them, or summarise them. > > > > > -- > Steven Dear Sir, I redrafted it and reposted the question. This post I tried to drop but some how came. Please ignore this post. My reposting is with JSON. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Question on Manipulating List and on Python

2011-09-29 Thread Subhabrata Banerjee
words like if word1=line_word[0] if word1==001: I should get line_word[1], line_word[2] reciprocating the value. Predefining it solves the problem, but I want to capture and do as it iterates. If any one can help? (ii) My second question is posted by one of my colleagues, what makes Python so fast? Regards, Subhabrata Banerjee. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on Manipulating List and on Python

2011-09-29 Thread Subhabrata Banerjee
On Sep 29, 9:27 pm, John Gordon wrote: > In > Subhabrata Banerjee writes: > > > (i) I have a file of lists. Now, the first digit starts with a number > > or index, like, > > [001, "Obama", "USA", "President"] > > [002  "Major

Re: Question on Manipulating List and on Python

2011-09-29 Thread Subhabrata Banerjee
011 11:51 AM > To: python-l...@python.org > Subject: Re: Question on Manipulating List and on Python > > On Fri, Sep 30, 2011 at 2:36 AM, Subhabrata Banerjee > wrote: > > And Python seems faster than C++/Java. It is indeed. I also experience > > it. > >

Re: File handling problem.

2009-05-03 Thread SUBHABRATA BANERJEE
ng, there may be slight indentation problem. Best Regards, Subhabrata. On Sat, May 2, 2009 at 2:16 PM, Pascal Chambon wrote: > subhakolkata1...@gmail.com a écrit : > >> Dear Group, >> >> I am using Python2.6 and has created a file where I like to write some >> statisti

Re: File handling problem.

2009-05-03 Thread SUBHABRATA BANERJEE
Dear Sir, Thanx for your prompt reply, I would be trying to work on your suggestion and get back to you as soon as possible. Best Regards, Subhabrata. On Sun, May 3, 2009 at 10:47 PM, Chris Rebert wrote: > On Sun, May 3, 2009 at 9:51 AM, SUBHABRATA BANERJEE > wrote: > >

Re: Creating a web page with Python

2008-05-28 Thread subhabrata . iisc
Dear Mike, Thanx your solutions came to the very point. And you understood the problem so nicely. It is just perfect. Great. Regards, Subhabrata Banerjee. Mike Driscoll wrote: > On May 27, 9:25�am, [EMAIL PROTECTED] wrote: > > Dear Members of the group, > > If any one can help me w

Problem with py2exe

2008-05-28 Thread subhabrata . iisc
Dear Members of the group, py2exe does not seem to be integrating with 2.5 or later versions. I was trying to run it but requested only for 2.3. How can I run it? If any one can kindly help. Regards, Subhabrata Banerjee. -- http://mail.python.org/mailman/listinfo/python-list

Error handling in Python

2008-05-28 Thread subhabrata . iisc
who won't open. How can I handle this kind of situation? If any one can help solving this problem. Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to create a timer

2008-06-13 Thread subhabrata . iisc
You can think of doing with import time module and time.sleep(n) but you have to calculate n in seconds. Subhabrata. Alexnb wrote: > I am wondering what is the best way to create a timer, like an alarm, once it > reaches a time, it triggers an event. I have a way of doing this but it > s

HTML FORM AND PYTHON

2008-06-13 Thread subhabrata . iisc
other way? Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: hi

2008-06-13 Thread subhabrata . iisc
Islam is a nice religion if you read The quran. Militancy is their in every religion. But unfortunately, Islam is getting a bad name. It is good to see that some one like you is trying to let us know the good part of it. But this may not be a room for that. You might have been wrongly directed here

Re: error showing file not found

2008-06-13 Thread subhabrata . iisc
You can see the file whether it is loaded in C:\Python and you entered it correctly. Problem should not occur. Else you may refer Python docs for Error and Exception handling. Regs, Subhabrata. [EMAIL PROTECTED] wrote: > Hi, > I am new to python.I have installed Biopython in Windows.I am w

Re: HTML FORM AND PYTHON

2008-06-15 Thread subhabrata . iisc
Hi Diez, Thanx for the suggestion. I am checking if anything helpful I can find there. Regards, Subhabrata. Diez B. Roggisch wrote: > [EMAIL PROTECTED] schrieb: > > Dear Members of the group, > > I have a small question, if you can help me to find the answer. > > I have

Question on time module

2008-06-26 Thread subhabrata . iisc
erval of a3 -this is easy but if I want to check after how much time a4 is calculated from a3 how can I do? If any one can help it. Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on time module

2008-06-27 Thread subhabrata . iisc
int "The Second sum is" > print a4 > > Now, I want to do it in a way, a4 is calculated after a given time > interval of a3 -this is easy but if I want to check after how much > time a4 is calculated from a3 how can I do? > If any one can help it. > Best Regards, > Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Question on List

2008-06-27 Thread subhabrata . iisc
Godess']... but I like to see it as ['God','Godess'...] etc. Am I going wrong? Do I have to rethink it in some other way? If any one can kindly let me know. Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on List

2008-06-27 Thread subhabrata . iisc
Hi Chris, I solved the problem some other way round but thanx for your suggestion, I'll review it also. Best Regards, Subhabrata. Chris wrote: > On Jun 27, 9:51�am, [EMAIL PROTECTED] wrote: > > Dear All, > > I am trying to write the following code: > > > > def try

PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-08 Thread subhabrata . iisc
else: print "NONE3.5" else: print "NONE3.6" else: print "NONE3.7" Why it is behaving like that? If someone can help me. Best Regards, Subhabrata Banerjee, Indian Institute of Science, Bangalore, India. -- http://mail.python.org/mailman/listinfo/python-list

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread subhabrata . iisc
00 URLs at one go. If you know anyone in Bangalore, India expert in python kindly send him across I can show him the problem in my machine and Indian Institute of Science(IISc-locally known as TATA INSTITUTE) is a distinguished place.Any one should know it. I am in no mood of doing a joke. Best Reg

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread subhabrata . iisc
d them and with many are quite innovative. Like you can use index or re.search or in/not in instead of find Sad to have a response from a person like you I had just great hope, and when python can be coded so fast. Best Regards, Subhabrata. Steve Holden wrote: > [EMAIL PROTECTED] wrote: &g

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread subhabrata . iisc
I am getting the comments. So any one can post any comment like Steve knows nothing of Python. California has still lot to catch up to be at par with Mesopatamia. comp.lang.python seems a group of fools. Anyhow, all I learnt take whichever suits and ignore rest many people have lot of time to carr

  1   2   >