[Tutor] 3 simple, pithy and short questions (fwd)
dyoo at hkn.eecs.berkeley.edu
Fri Nov 21 19:32:22 EST 2003
> In recent years, the __str__() method was added to numbers to make them
> more uniform with the other Python types and classes.
Yikes, I'm totally wrong here! Numbers still don't have __str__(). I
should have double checked my assertions about this. So we can call str()
on numbers, but not __str__(). I misremembered the extent to which the
numbers were unified with the other types.
More information about the Tutor