[Tutor] Alternative File I/O for Tuples
Don Parris
webdev at matheteuo.org
Sun Jun 26 07:40:32 CEST 2005
When I pickle a SQL result into a file (ASCII mode), it lays out the data in
an interesting format. When I send it to the printer, I'd like to see it
arranged more like it is on the console screen - in tabbed columns. None of
the tutorial type stuff I've seen even mentions printing files, or accessing
the files you create in a Python program. I did manage to find an example
of a print function.
Here is some sample data from the resulting file:
((S'Everybody'
S'Anonymous'
Nt(S'James'
S'Austin'
S'704-111-1234'
t(S'Janet'
S'Austin'
S'704-111-1234'
I would like to see something more like when the file is printed:
Austin James 704-111-1234
Austin Janet 704-111-1234
etc.
Is this a simple task, or am I jumping into deep water? :)
Don
--
evangelinux GNU Evangelist
http://matheteuo.org/ http://chaddb.sourceforge.net/
"Free software is like God's love - you can share it with anyone anytime
anywhere."
More information about the Tutor
mailing list