Newbie question: how to join a list of elements of user-defined types?
Michael George Lerner
mlerner at umich.edu
Mon Apr 29 23:28:45 EDT 2002
On Tue, 30 Apr 2002, holger krekel wrote:
> On Tue, Apr 30, 2002 at 02:35:16AM +0000, Michael George Lerner wrote:
> > Are you sure you're putting appropriate things into the list?
>
> i guess he is. He just didn't know that python
> wants expliciteness rather than c++ish impliciteness
> (type-conversions).
d'oh. i noticed that after i responded. and the
' '.join([str(i) for i in l])
response summed it up pretty well, so i decided to keep my mouth shut :).
-michael
More information about the Python-list
mailing list