Irit Katriel added the comment:
The _searchbases function was removed here, when getmro was simplified
following the removal of old style classes:
https://github.com/python/cpython/commit/b82c8e5b27a8d8ec441aeab5d01d6d9bd8e6d7ef
--
nosy: +iritkatriel
resolution: -> out of date
Brandon Zerbe added the comment:
I am using Python 2.7.5. The segment of code from inspect that I previously
extracted came from line 332 although you may also find it by "finding"
_searchbases.
This is really an issue with Forthon:
http://hifweb.lbl.gov/Forthon/
Specifically the Forthon
New submission from Brandon Zerbe:
I am using a possibly non-standard python package called Forthon, and when I
inspect an object that is dependent on the Forthon class, I get the following
error:
File "/Users/zerbeb/homemade_programs/config2class/src/method_parsing.py",
line 18, in
R. David Murray added the comment:
Which version of python are you running? I can't match that traceback up to
the code in the current 2.7 inspect module.
That said, the same issue probably exists in the current code. A 2.7 class is
expected to have either an __mro__ or a __bases__