Nick Coghlan wrote: > Interestly, I just discovered that method descriptors for builtins don't > define im_class, im_self or im_func. I never knew that - I thought they > had the same interface as instance methods.
A builtin method descriptor is the C equivalent of a function object, not an instancemethod. The desired behaviour would be for builtin method descriptors to have a __get__ method that creates an instancemethod object, like functions do. -- Greg _______________________________________________ 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
