int <-> str asymmetric

Steven Bethard 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)
>  >>>
> 
> fails
> 
> 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:

http://mail.python.org/pipermail/python-dev/2006-January/059789.html

But it didn't look like there was a resolution.

Steve



More information about the Python-list mailing list