Not found in the documentation

elas tica elasstiika at gmail.com
Tue Apr 27 20:04:40 EDT 2021


Le mardi 27 avril 2021 à 01:44:04 UTC+2, Paul Bryan a écrit :
> From https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy 
> : 
> 
> > The string representations of the numeric classes, computed 
> > by__repr__() and __str__(), have the following properties: 
> > * They are valid numeric literals which, when passed to their 
> > class constructor, produce an object having the value of the 
> > original numeric. 
> > * The representation is in base 10, when possible. 

I realize that these basic informations have been very recently added to the Language Reference document as they are missing from the 3.8.5 version (July 2020) as you can check here: https://docs.python.org/release/3.8.5/reference/datamodel.html#index-8



More information about the Python-list mailing list