Awkward format string

Ian Clark iclark at mail.ewu.edu
Wed Aug 1 17:52:40 EDT 2007


Gerard Flanagan wrote:
> (snip)
>
> def tostring(data):
>     return tuple(strftime(x) for x in data[:2]) + data[2:]
> 

Hrmm, not sure that having a function named tostring() that returns a 
tuple is the best idea. ;)

Ian




More information about the Python-list mailing list