Why doesn't join() call str() on its arguments?

Thomas Heller theller at python.net
Wed Feb 16 16:14:46 EST 2005


Skip Montanaro <skip at pobox.com> writes:

>     John> 4. For consistency, would you like "1" + 2 to produce "12"?
>
> No, the correct answer is obviously 3. ;-)
>
> S

No, '"1"2' is correct.  Or '"1"+2'.



More information about the Python-list mailing list