join does not call __str__

Tim Peters tim.one at home.com
Fri Jun 1 18:16:11 EDT 2001


[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>.





More information about the Python-list mailing list