From: SourceForge.net <no...@so...> - 2006-05-11 20:01:35
|
Bugs item #513713, was opened at 2002-02-06 12:32 Message generated for change (Settings changed) made by fwierzbicki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=513713&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: Deferred Status: Open Resolution: None >Priority: 4 Submitted By: Philipp Hahn (pmhahn) Assigned to: Nobody/Anonymous (nobody) Summary: PyTableCode != PyCode Initial Comment: Running python2.1 and jython2.1 give's different results using the inspect.iscode() method. Python 2.1.2 (#1, Jan 18 2002, 18:05:45) [GCC 2.95.4 (Debian prerelease)] on linux2 >>> import types,inspect >>> types.CodeType <type 'code'> >>> type(inspect.currentframe().f_code) <type 'code'> >>> type(inspect.currentframe().f_code) is types.CodeType 1 Jython 2.1 on java1.3.1 (JIT: null) >>> import types,inspect >>> types.CodeType <jclass org.python.core.PyCode at 1330621> >>> type(inspect.currentframe().f_code) <jclass org.python.core.PyTableCode at 503405> >>> type(inspect.currentframe().f_code) is types.CodeType 0 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=513713&group_id=12867 |