[issue25884] inspect.getmro() fails when base class lacks __bases__ attribute.

2020-11-30 Thread Irit Katriel
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

[issue25884] inspect.getmro() fails when base class lacks __bases__ attribute.

2015-12-16 Thread Brandon Zerbe
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

[issue25884] inspect.getmro() fails when base class lacks __bases__ attribute.

2015-12-16 Thread Brandon Zerbe
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

[issue25884] inspect.getmro() fails when base class lacks __bases__ attribute.

2015-12-16 Thread R. David Murray
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__