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


Groups > comp.lang.python > #97367 > unrolled thread

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

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-10-03 06:09 -0400
Last post2015-10-03 06:09 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromTerry Reedy <tjreedy@udel.edu>
Date2015-10-03 06:09 -0400
SubjectRe: Instance method for converting int to str - str() and __str__()
Message-ID<mailman.361.1443866983.28679.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web