]> granicus.if.org Git - python/commit
Added __name__ attribute to class instance method objects.
authorGuido van Rossum <guido@python.org>
Tue, 14 May 1996 21:54:20 +0000 (21:54 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 14 May 1996 21:54:20 +0000 (21:54 +0000)
commit6dabc984005c02c0289a17d8d173dc800214b44f
treec1e5091fc25e27675c8add10a2402324e4e1ebd7
parent3355be3f352d905a02031bdec6d91a339489b1c8
Added __name__ attribute to class instance method objects.
Removed im_doc attribute; __name__ and __doc__ are now handled by
special casing in instancemethodgetattr().  This saves a few bytes and
INCREF/DECREF calls per i.m. object allocation/deallocation.
Objects/classobject.c