Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97367

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

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Instance method for converting int to str - str() and __str__()
Date 2015-10-03 06:09 -0400
References <CALFxCvyGUC+Sz+d23hNAv6HnFeZKEFdAexZFC9Uj3T3vHyYLtQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.361.1443866983.28679.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Instance method for converting int to str - str() and __str__() Terry Reedy <tjreedy@udel.edu> - 2015-10-03 06:09 -0400

csiph-web