join does not call __str__

Tim Peters tim.one at home.com
Sat Jun 2 00:16:11 CEST 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