Awkward format string

Gerard Flanagan grflanagan at yahoo.co.uk
Thu Aug 2 03:19:38 EDT 2007


On Aug 1, 11:52 pm, Ian Clark <icl... at mail.ewu.edu> wrote:
> 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. ;)
>

oops! SAD (Solipsistic API Design)... ;-)

Gerard





More information about the Python-list mailing list