[Python-Dev] Re: isinstance(x, types.UnboundMethodType) feature (original) (raw)

Michael Hudson mwh at python.net
Tue Jan 20 14:17:50 EST 2004


"Terry Reedy" <tjreedy at udel.edu> writes:

"Gareth Ladd" <g.ladd at eris.qinetiq.com> wrote in message news:400D2420.7040701 at eris.qinetiq.com...

Am I missing an subtelty of bound/unbound-ness? As of 2.2, C.hello.imself == None while c.hello.imself == c.

Um, ITYM "As of 1.0.1" (which is the oldest version I could find when I went looking recently).

Presume still same in 2.3. This is very much an implementation internal feature and not part of language definition. (Meaning: can be changed without notice.)

Doesn't mean it is changed very often, though :-)

I believe this is how repr() tells difference.

It is.

Cheers, mwh

-- LINTILLA: You could take some evening classes. ARTHUR: What, here? LINTILLA: Yes, I've got a bottle of them. Little pink ones. -- The Hitch-Hikers Guide to the Galaxy, Episode 12



More information about the Python-Dev mailing list