This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients eric.araujo, ezio.melotti, georg.brandl, serhiy.storchaka
Date 2013-08-25.14:50:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377442213.69.0.00603799982208.issue18830@psf.upfronthosting.co.za>
In-reply-to
Content
inspect.getclasstree() produces duplicated entities when it's argument contains duplicated classes. This happened when a module contains class aliases. For example `pydoc zipfile` outputs three entities for BadZipFile (BadZipfile and error are aliases of BadZipFile):

CLASSES
    builtins.Exception(builtins.BaseException)
        BadZipFile
        BadZipFile
        BadZipFile
        LargeZipFile
    builtins.object
        ZipFile
            PyZipFile
        ZipInfo
    
The proposed patch removes duplicates from a result of getclasstree().
History
Date User Action Args
2013-08-25 14:50:13serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, ezio.melotti, eric.araujo
2013-08-25 14:50:13serhiy.storchakasetmessageid: <1377442213.69.0.00603799982208.issue18830@psf.upfronthosting.co.za>
2013-08-25 14:50:13serhiy.storchakalinkissue18830 messages
2013-08-25 14:50:13serhiy.storchakacreate