[Python-3000] Fwd: proposal: disambiguating type

Greg Ewing greg.ewing at canterbury.ac.nz
Tue May 23 02:33:30 CEST 2006


tomer filiba wrote:

> i suggest splitting this overloaded meaning into two separate builtins:
> * type(name, bases, dict) - a factory for types
> * typeof(obj) - returns the type of the object

Or just drop the function usage altogether and make
__class__ the one obvious way to find out something's
class/type.

--
Greg


More information about the Python-3000 mailing list