[Python-ideas] Changing str(someclass) to return only the class name

Antoine Pitrou solipsis at pitrou.net
Sun Oct 23 17:05:18 CEST 2011


On Sun, 23 Oct 2011 15:26:16 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
> Antoine Pitrou wrote:
> [...]
> > It might be the integer 1 or the string "1". You need repr() to tell
> > the difference.
> 
> Antoine, that's a cheap shot. The *very next paragraph* of my post which 
> you replied to, and which you snipped out of your response, says:

Woops, sorry, I had missed it :(

Regards

Antoine.





More information about the Python-ideas mailing list