repr/str diff between Python 2 and 3
Terry Reedy
tjreedy at udel.edu
Tue Oct 11 23:15:15 EDT 2016
On 10/11/2016 9:30 PM, Skip Montanaro wrote:
>> https://docs.python.org/3/whatsnew/3.1.html
>>
>> It's the third hit when searching for 'float'. Assuming I understand
> what it's saying. ;)
>
> Thanks. Is that the "David Gay's algorithm"? That seems to apply only to
> repr(), while the change I observed was in str().
Since str(float) is now, I believe, the same as repr(float), it means
that in general, you have two possible changes to str ;-).
--
Terry Jan Reedy
More information about the Python-list
mailing list