Re: Postgres COPY Command with python 2.3 pg

2005-02-15 Thread Michael Lang
On 2005-02-15, @(none) <""> wrote: > Michael Lang wrote: >> using psql it works fine, but i dont know how to get it working in python. >> Ive already made the calls but the changes never apper, and no error. > > Which Postgres module are you using? I had

Postgres COPY Command with python 2.3 pg

2005-02-15 Thread Michael Lang
d db.putline() but no success. Kind regards for any help Michael Lang -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic file operation questions

2005-02-03 Thread Michael . Lang
In article <[EMAIL PROTECTED]>, Peter Nuttall wrote: > On Wed, Feb 02, 2005 at 11:47:41PM -0500, Caleb Hattingh wrote: >> Hi Alex >> >> Assuming you have a file called "data.txt": >> >> *** >> f = open('data.txt','r') >> lines = f.readlines() >> f.close() >> for line in lines: >> print line >