[Tutor] Alternative File I/O for Tuples
by Don Parris other posts by this author
Jun 25 2005 10:24PM messages near this date
Re: [Tutor] MineSweeper
|
Re: [Tutor] Alternative File I/O for Tuples
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."
_______________________________________________
Tutor maillist - Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Don Parris
Kent Johnson
Danny Yoo
Danny Yoo
|