Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2014-07-22.09:02:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406019756.34.0.140996851672.issue22032@psf.upfronthosting.co.za>
In-reply-to
Content
Often when class name is reported in stdlib (e.g. in reprs), it used together with module name: '%s.%s' % (self.__class__.__module__, self.__class__.__name__). But this code is wrong when a class is nested. The __qualname__ attribute should be used instead of just __name__ (and it is already used in multiple places).

Proposed patch replaces __name__ to __qualname__ when it used together with module name to format full class name.
History
Date User Action Args
2014-07-22 09:02:36serhiy.storchakasetrecipients: + serhiy.storchaka
2014-07-22 09:02:36serhiy.storchakasetmessageid: <1406019756.34.0.140996851672.issue22032@psf.upfronthosting.co.za>
2014-07-22 09:02:36serhiy.storchakalinkissue22032 messages
2014-07-22 09:02:36serhiy.storchakacreate