Re: Beginning with Python; the right choice?

2009-06-26 Thread Amos Anderson
In learning most programming languages, in my experience anyway, it's easy to get overwhelmed and want to give up. Python is easy enough that you should be able to pick it to a point that it will be useful to you while still learning the more advanced features. Python generally teaches good program

Re: 3.2*2 is 9.6 ... or maybe it isn't?

2009-06-25 Thread Amos Anderson
I think what your experiencing is addressed on this page... http://docs.python.org/tutorial/floatingpoint.html ... it has to do with the binary representation of the numbers. On Thu, Jun 25, 2009 at 1:04 PM, Bojan Sudarevic wrote: > Hi, > > I'm PHP developer and entirely new to Python. I instal

Re: os.walk and os.listdir problems python 3.0+

2009-06-25 Thread Amos Anderson
Thank you. That works very well when writing to a text file but what is the equivalent when writing the information to stdout using print? Sorry when I originally replied I sent it directly and it didn't go to the list. On Thu, Jun 25, 2009 at 12:57 AM, Mark Tolonen > wrote: > >

os.walk and os.listdir problems python 3.0+

2009-06-24 Thread Amos Anderson
I've run into a bit of an issue iterating through files in python 3.0 and 3.1rc2. When it comes to a files with '\u200b' in the file name it gives the error... Traceback (most recent call last): File "ListFiles.py", line 19, in f.write("file:{0}\n".format(i)) File "c:\Python31\lib\enco