inspect under 2.1.3

Robin Becker robin at jessikat.fsnet.co.uk
Thu Jun 6 08:00:39 EDT 2002


is there any hope of getting inspect to work reasonably under 2.1. In
2.2 I see lots of methods from the following, but in 2.1 it's empty. 

C:\Python\rlextra\ers>python
Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect
>>> import framework
>>> b=framework.BasicProcessor()
>>> inspect.getmembers(b)
[('__doc__', None), ('__module__', 'framework'), ('actionEcho', <bound
method BasicProcessor.actionEcho of <framework.Ba
sicProcessor instance at 0x007D90A8>>), ('actionPdf', <bound method
BasicProcessor.actionPdf of <framework.BasicProcesso..........






C:\Python21\rlextra\ers>..\..\python.exe
Python 2.1.3 (#35, Apr  8 2002, 17:47:50) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import inspect
>>> import framework
>>> b=framework.BasicProcessor()
>>> inspect.getmembers(b)
[]
>>> exit
'Use Ctrl-Z plus Return to exit.'
>>> ^Z



-- 
Robin Becker



More information about the Python-list mailing list