[Python-bugs-list] [ python-Bugs-620193 ] bound method unbound

noreply@sourceforge.net noreply@sourceforge.net
Wed, 09 Oct 2002 05:23:33 -0700


Bugs item #620193, was opened at 2002-10-08 12:32
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=620193&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexander Schmolck (aschmolck)
Assigned to: Nobody/Anonymous (nobody)
Summary: bound method unbound

Initial Comment:
>>> repr('NewKlass.classMethod')
<bound method type.classMethod of <class
'__main__.NewKlass'>

>>> type(NewKlass.classMethod) is types.UnboundMethodType
1


----------------------------------------------------------------------

>Comment By: Alexander Schmolck (aschmolck)
Date: 2002-10-09 12:23

Message:
Logged In: YES 
user_id=559641

Sorry, I should obviously have realized
that.types.MethodType is types.UnboundMethodType.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-10-09 06:27

Message:
Logged In: YES 
user_id=21627

Why is this a bug? Bound and unbound methods do have the 
same type.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=620193&group_id=5470