join does not call __str__
Michael Hudson
mwh at python.net
Fri Jun 1 19:16:19 EDT 2001
"Tim Peters" <tim.one at home.com> writes:
> [Sasa Zivkov]
> > Somehow I expected that join method would use __str__ method to convert
> > instance to string...
> >
> > Your opinion ?
>
> As has been said, it doesn't and that's the documented behavior. I think it
> would be better if it did, but haven't prevailed against the forces of
> foolish consistency <wink>.
Ease of implementation, more like. Start calling __str__ and you get
to have some of the fun we've having with dicts at the moment...
Cheers,
M.
--
I would hereby duly point you at the website for the current pedal
powered submarine world underwater speed record, except I've lost
the URL. -- Callas, cam.misc
More information about the Python-list
mailing list