Thomas Guettler wrote:
Hi,
l=[]
print type(l.__delattr__)
# --> <type 'method-wrapper'>
I didn't find a corresponding type in the modules "types".
Is it missing or am I blind?
(Python 2.3.3)
I don't have the answer to the question, but perhaps this sheds a little
more light on it?
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
l = []
type(l.__delattr__)
<type 'method-wrapper'> import types
for t in dir(types):
.... if t[-4:] == 'Type' and isinstance(l.__delattr__, getattr(types, t)):
.... print "It's a '%s'" % str(t)
....
It's a 'ObjectType'
I also am interested in what <type method-wrapper> is.
regards,
--
alan kennedy
------------------------------------------------------
email alan:
http://xhaus.com/contact/alan