proposal: disambiguating type

2006-05-21 Thread gangesmaster
typing help(type) gives the following documentation: help(type) Help on class type in module __builtin__: class type(object) | type(object) - the object's type | type(name, bases, dict) - a new type type behaves both as a function, that reports the type of an object, and

Re: proposal: disambiguating type

2006-05-21 Thread Heiko Wundram
Am Sonntag 21 Mai 2006 21:13 schrieb gangesmaster: 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 While I personally don't find this proposal to be bad, this is something