From: <no...@so...> - 2002-02-06 12:53:06
|
Bugs item #513713, was opened at 2002-02-06 04:32 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=513713&group_id=12867 Category: Core Group: None Status: Open Resolution: None Priority: 5 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: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=513713&group_id=12867 |