how to pipe to variable of a "here document"

eight02645999 at yahoo.com eight02645999 at yahoo.com
Sun Apr 9 23:57:39 EDT 2006


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




More information about the Python-list mailing list