[Python-3000] Types and classes

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 9 02:34:37 CEST 2008


Guido van Rossum wrote:

> Seems to be mass confusion all around. My proposal is:
> 
> repr(int) == <class 'int'>
> str(int) == 'int'
>
> repr(C) == <class '__main__.C'>
> str(c) == '__main__.C'

Can I take a step back and ask why exactly we're considering
doing this? In what use cases is the current result
of str() considered too verbose?

-- 
Greg



More information about the Python-3000 mailing list