doctest import failure

j vickroy jim.vickroy at
Thu Aug 29 20:47:26 CEST 2002


The doctest module is not working on my installation.  Here is a sample

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 doctest
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python22\lib\", line 298, in ?
    from inspect import classify_class_attrs as _classify_class_attrs
ImportError: cannot import name classify_class_attrs
>>> import inspect
>>> dir(inspect)
'CO_VARKEYWORDS', 'EndOfBlock', 'ListReader', '__author__', '__builtins__',
'__date__', '__doc__', '__file__', '__name__', 'currentframe', 'dis',
'findsource', 'formatargspec', 'formatargvalues', 'getabsfile', 'getargs',
'getargspec', 'getargvalues', 'getblock', 'getclasstree', 'getcomments',
'getdoc', 'getfile', 'getframeinfo', 'getinnerframes', 'getlineno',
'getmembers', 'getmodule', 'getmoduleinfo', 'getmodulename',
'getouterframes', 'getsource', 'getsourcefile', 'getsourcelines', 'imp',
'indentsize', 'isbuiltin', 'isclass', 'iscode', 'isframe', 'isfunction',
'ismethod', 'ismodule', 'isroutine', 'istraceback', 'joinseq',
'modulesbyfile', 'os', 're', 'stack', 'string', 'strseq', 'sys', 'tokenize',
'trace', 'types', 'walktree']

Is the inspect module, in my installation, incomplete?

I installed Python using the MS Windows binary installer (Python-2.2.1.exe)
downloaded from


More information about the Python-list mailing list