Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.8
Changeset: r73119:ac7806a1e7cd
Date: 2014-08-28 16:20 -0400
http://bitbucket.org/pypy/pypy/changeset/ac7806a1e7cd/

Log:    another fix for idlelib

diff --git a/lib-python/2.7/idlelib/CallTips.py 
b/lib-python/2.7/idlelib/CallTips.py
--- a/lib-python/2.7/idlelib/CallTips.py
+++ b/lib-python/2.7/idlelib/CallTips.py
@@ -177,7 +177,7 @@
     else:
         fob = ob
     # Try to build one for Python defined functions
-    if type(fob) in [types.FunctionType, types.LambdaType]:
+    if type(fob) in [types.FunctionType, types.LambdaType] and 
hasattr(fob.func_code, 'co_code'):
         argcount = fob.func_code.co_argcount
         real_args = fob.func_code.co_varnames[arg_offset:argcount]
         defaults = fob.func_defaults or []
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to