Author lukasz.langa
Recipients ecatmur, lukasz.langa
Date 2013-06-18.18:49:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371581376.68.0.398925930138.issue18244@psf.upfronthosting.co.za>
In-reply-to
Content
Hello, Edward. First of all, thank you for correctly pointing out the problem. We'll integrate your patch but first I'd like to have a unit test that specifically shows why the secondonary `for` loop you introduced is necessary. Currently if we change this:

    for index, base in enumerate(mro[i + 1:], i + 1):
        if not issubclass(base, needle):
            break

to this:

    index = i + 1

the tests still pass.
History
Date User Action Args
2013-06-18 18:49:36lukasz.langasetrecipients: + lukasz.langa, ecatmur
2013-06-18 18:49:36lukasz.langasetmessageid: <1371581376.68.0.398925930138.issue18244@psf.upfronthosting.co.za>
2013-06-18 18:49:36lukasz.langalinkissue18244 messages
2013-06-18 18:49:36lukasz.langacreate