[pypy-commit] pypy stdlib-2.7.8: another fix for idlelib
bdkearns
noreply at buildbot.pypy.org
Thu Aug 28 22:20:49 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
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 []
More information about the pypy-commit
mailing list