|
From: Jason R. C. <re...@bu...> - 2017-04-27 01:38:16
|
New submission from Jason R. Coombs: As discovered in https://github.com/pypa/setuptools/issues/1024#issuecomment-297586140, invoking inspect.getmro on a class whose bases include two or more classes with the same __name__ will return only the first one encountered. This script demonstrates the issue: class OtherNamespace: class Y: pass class Y: pass class Z(OtherNamespace.Y, Y): pass import inspect print(inspect.getmro(Z)) ---------- components: Library messages: 11326 nosy: jaraco severity: normal status: open title: getmro omits classes of the same name type: behaviour versions: Jython 2.7 _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue2581> _______________________________________ |