int <-> str asymmetric
steven.bethard at gmail.com
Thu Mar 16 16:03:02 CET 2006
Schüle Daniel wrote:
> however we lack the reverse functionality
> the logical
> >>> str(10,2)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: str() takes at most 1 argument (2 given)
> it would not break anything if str interface would be changed
> what do you think?
> Is this already proposed or maybe implemented in 2.5?
It's been proposed:
But it didn't look like there was a resolution.
More information about the Python-list