Message566
 
            
            
            
 
   
   
 
 
  
      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
  | 
   
  
 
|
 
| Date | 
User | 
Action | 
Args | 
 
| 2008-02-20 17:17:00 | admin | link | issue513713 messages |  
| 2008-02-20 17:17:00 | admin | create |  |  
 
 
 |