Instance method for converting int to str - str() and __str__()

Terry Reedy tjreedy at udel.edu
Sat Oct 3 06:09:25 EDT 2015


On 10/3/2015 2:35 AM, neubyr wrote:
>
> I was wondering if there is any resource that explains why certain
> methods like str() and type()

These are classes.  Calling a class calls the class construction and 
initialization functions.  These return an instance of the class.
While reading the tutorial, read the library reference, chapter 2. 
Chapter 4 is also extremely important to read.

-- 
Terry Jan Reedy




More information about the Python-list mailing list