On 2007-08-01, beginner <[EMAIL PROTECTED]> wrote:
> print  >>f, "%s\t%s\t%d\t%f\t%f\t%f\t%d" %
> (x.field1..strftime("%Y-%m- %d"),
> x.field2..strftime("%Y-%m-%d"), x.field3, x.field4, x.field5,
> x.field.6, x.field7)
>
> This is also tedious and error-prone.

Providing a suitable .str or .__repr__ method for your class
may make that problem disappear.

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to