On 5/22/06, Greg Ewing <[EMAIL PROTECTED]> wrote: > 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.
Well, you could overload __class__ to "lie" -- but type won't. I'd rather not lost that functionality. I expect that with proxies becoming more popular they may start lying about __class__. For most purposes that's fine but I'd like to be able to tell whether I'm dealing with a proxy, if I really need to know. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
