[docs] [issue15251] new.code and new.function crashes Python iterpretter
Terry J. Reedy
report at bugs.python.org
Sat Jul 7 04:29:13 CEST 2012
Terry J. Reedy <tjreedy at udel.edu> added the comment:
In Py3, new.code and new.function become types.CodeType and types.FunctionType. The 'documentation' of their signatures is only available with help(types.xxx). So the library doc issue is 2.7 only.
Running with IDLE, 3.3b0, Win7, the converted example does crash after 5 seconds or so even with the missing arg and the pprint gone. The crash is in the new_fun(5) call. I might have gotten something wrong. Or maybe the the help is wrong.
----------
nosy: +terry.reedy
Added file: http://bugs.python.org/file26279/tem.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15251>
_______________________________________
More information about the docs
mailing list