Message11326

Author jaraco
Recipients jaraco
Date 2017-04-27.01:38:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493257087.64.0.244650262545.issue2581@psf.upfronthosting.co.za>
In-reply-to
Content
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))
History
Date User Action Args
2017-04-27 01:38:07jaracosetrecipients: + jaraco
2017-04-27 01:38:07jaracosetmessageid: <1493257087.64.0.244650262545.issue2581@psf.upfronthosting.co.za>
2017-04-27 01:38:07jaracolinkissue2581 messages
2017-04-27 01:38:06jaracocreate