Changes between and of Initial VersionVersion 1Ticket #4928


Ignore:
Timestamp:
03/07/2011 09:01:36 AM (4 years ago)
Author:
exarkun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4928 – Description

    initial v1  
    1 These functions are not exactly the same, but the switch should be pretty easy in most cases.  `getmro` is several times faster than `allYourBase` because it knows about `__mro__`.  It also takes care of duplication in a diamond inheritance hierarchy, which at least one caller of `allYourBase` don't realize they care about (`Failure`'s doesn't break because of the duplication, but it ends up doing extra work). 
     1These functions are not exactly the same, but the switch should be pretty easy in most cases.  `getmro` is several times faster than `allYourBase` because it knows about `__mro__`.  It also takes care of duplication in a diamond inheritance hierarchy, which at least one caller of `allYourBase` doesn't realize it cares about (`Failure` doesn't break because of the duplication, but it ends up doing extra work). 
    22 
    33Maybe we can eventually deprecate `allYourBase` and `accumulateBases`, too.