Re: how to pipe to variable of a "here document"

2006-04-10 Thread gry
http://www.python.org/doc/topics/database/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pipe to variable of a "here document"

2006-04-10 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >Question: Is there a DB-API module that can directly connect to the >database server? There certainly is for MySQL, which is what I mostly use. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pipe to variable of a "here document"

2006-04-09 Thread Burton Samograd
[EMAIL PROTECTED] writes: > I need to execute sql command using a "here document" like in unix. > > os.popen("osql", "w").write("""\ > select * from table > go > """) > > how can i pipe these result of the s

how to pipe to variable of a "here document"

2006-04-09 Thread eight02645999
hi I need to execute sql command using a "here document" like in unix. os.popen("osql", "w").write("""\ select * from table go """) how can i pipe these result of the select into a variable? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: here document

2005-01-11 Thread Craig Ringer
On Tue, 2005-01-11 at 18:46, harold fellermann wrote: > On 11.01.2005, at 11:34, Nader Emami wrote: > > Would somebody help me how i can write the 'here document' in > > Python script please? I have a csh script in which a program > > is invoked with some argume

Re: here document

2005-01-11 Thread Roland Heiber
harold fellermann wrote: f = open("/bin/exe.x","w") print >>f , """CategoryY = GRIB etc. """ This would overwrite the existing /bin/exe.x ... HtH, Roland -- http://mail.python.org/mailman/listinfo/python-list

Re: here document

2005-01-11 Thread harold fellermann
On 11.01.2005, at 11:34, Nader Emami wrote: Would somebody help me how i can write the 'here document' in Python script please? I have a csh script in which a program is invoked with some argument in the form of here document: /bin/exe.x << End_Here CategorY = GRIB etc. End_Here

here document

2005-01-11 Thread Nader Emami
L.S., Would somebody help me how i can write the 'here document' in Python script please? I have a csh script in which a program is invoked with some argument in the form of here document: /bin/exe.x << End_Here CategorY = GRIB etc. End_Here I translate this script to Python and