Home

On 2007-08-01, beginner <zyzhu2000@gmail.com> 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

previous
next

Re: Haskell like (c:cs) syntax
Mysqldb & stderr
Re: Requesting critique of a C unit test environment
Re: how to join array of integers?
Re: try/catch scope question...
Nasze Dzieci
Fundacja Sloneczko
Rodzic Po Ludzku
Niechciane i Zapomniane
Fundacja Iskierka