I run into a problem in opening a file in Python

2010-06-18 Thread Justin Park
The problem is simple. I have 50taxa2HGT_1.txt in the current directory, and I can open it using any text editor (which indicates there actually is.) And I can read it in Python using >>> fd=open("./50taxa2HGT_1.txt", "r") , and it actually got opened, because I can do >>> for line in fd: ...

Re: Sometimes the python shell cannot recognize the presence of an attribute.

2010-03-30 Thread Justin Park
order to resolve this issue? Thanks, Justin. Justin Park wrote: > Sometimes when I am working on an already generated package, > the python shell cannot perceive the presence of an attribute that I > implemented on top of what was there. > > Is there a way to have it perceive newly cre

Sometimes the python shell cannot recognize the presence of an attribute.

2010-03-30 Thread Justin Park
Sometimes when I am working on an already generated package, the python shell cannot perceive the presence of an attribute that I implemented on top of what was there. Is there a way to have it perceive newly created attributes? Thanks, Justin. -- http://mail.python.org/mailman/listinfo/python-l

Re: A question about making a sort-of-counter.

2010-03-30 Thread Justin Park
Thanks! It works! Justin. Chris Rebert wrote: > On Tue, Mar 30, 2010 at 2:31 PM, Justin Park wrote: > >> Suppose I have a list. >> a = list() >> And suppose allowed digits as the element are 1,2,3,4,5. >> >> What can I do in order to iterate over all poss

A question about making a sort-of-counter.

2010-03-30 Thread Justin Park
Suppose I have a list. a = list() And suppose allowed digits as the element are 1,2,3,4,5. What can I do in order to iterate over all possible values for each element? For instance, the sequence of the list I want to have would be [1,1,1,1,1] [1,1,1,1,2] [1,1,1,1,3] [5,5,5,5,4] [5,5,5,5,5]