[Python-3000] Types and classes
Neil Schemenauer
nas at arctrix.com
Wed Apr 9 17:47:07 CEST 2008
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> There's something reassuring about the fact that things
> with no "obvious" textual representation stick out like
> a sore digit when you try to print them. I wouldn't like
> to lose that.
I agree with this and support the status quo (i.e. repr(int) ==
str(int) == "<type 'int'>"). I think str(int) == 'int' could lead
to confusion if you have a bug in your program.
Neil
More information about the Python-3000
mailing list