Issue1406853

classification
Title: callable() broken
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, tavis_rudd
Priority: high Keywords:

Created on 2006-01-15.20:54:37 by tavis_rudd, last changed 2006-08-09.01:10:48 by cgroves.

Files
File name Uploaded Description Edit Remove
expose__call__on_PyBuiltinFunction.diff cgroves, 2006-08-09.01:10:48
Messages
msg1091 (view) Author: Tavis Rudd (tavis_rudd) Date: 2006-01-15.20:54:37
/usr/lib/jython2.2/jython -c 'print callable("foo".upper)'
outputs: 
0

beast /usr/local/src # /usr/lib/jython2.2/jython --version
Jython 2.2a1 on java (JIT: null)
msg1092 (view) Author: Charlie Groves (cgroves) Date: 2006-08-09.01:10:48
Logged In: YES 
user_id=1174327

Fixed in the attached patch.  It looks like Python uses a
method wrapper descriptor to handle this, whereas the patch
just returns the method directly.  I'm not sure what the
descriptor adds so I think this is ok, but since I'm not
sure I didn't go ahead and commit it. 
History
Date User Action Args
2006-01-15 20:54:37tavis_ruddcreate