Re: [Tutor] Reading List from File

2008-07-31 Thread amingv
Emile is rigth, there should be a () there. I'm sorry, im writing this from my cellphone and there's not a pc around XD. I didn,t know about the csv module either and had to do over complicated things to deal with embedded commas, thx for that too :). -- Amin Rainmaker--- Begin Message --- S Pyt

Re: [Tutor] Reading List from File

2008-07-31 Thread amingv
If your list is in the format: aaa,bbb,ccc You can use foo = in_file.readline.split(',') -- Amin Rainmaker--- Begin Message --- Hi Everyone, I am trying to read a comma-delimitted list ("aaa","bbb","ccc") from a text file and assign those values to a list, x, such that: x = ["aaa", "bbb", "ccc"

Re: [Tutor] Exploring the Standard Library

2008-07-05 Thread amingv
The python interpreter can give you this information; just type: import sys for i in sys.path: print i And search in the lib directories it shows. You might also be interested in the std library reference at docs.python.org. -- Amin Rainmaker--- Begin Message --- I'd like to spend some time