Changes between Initial Version and Version 3 of Ticket #14065


Ignore:
Timestamp:
02/06/13 19:07:49 (8 years ago)
Author:
tscrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14065

    • Property Status changed from new to needs_review
    • Property Dependencies changed from to #14052
  • Ticket #14065 – Description

    initial v3  
    11As part of #12913, we are adding inheritance from `Element` to many classes that inherit from `CombinatorialObject`. However, there are many functions are relying on a valid call to `cmp`, but `Element` overrides this. This patch is a fix which implements a basic `__cmp__` for `CombinatorialObject` for the switch.
     2
     3Another issue this ticket does is add a `__nonzero__()` to `CombinatorialObject` so things like `if p:` and `not p` will work when also inheriting from `Element` (which checks against the `Parent().zero_element()` and is not implemented for all parents).