Changes between and of Initial VersionVersion 1Ticket #4928
- Timestamp:
- 03/07/2011 11:01:36 AM (2 years ago)
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` do n't realize they care about (`Failure`'sdoesn't break because of the duplication, but it ends up doing extra work).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` doesn't realize it cares about (`Failure` doesn't break because of the duplication, but it ends up doing extra work). 2 2 3 3 Maybe we can eventually deprecate `allYourBase` and `accumulateBases`, too.
