Skip to content

Commit

Permalink
Trac #30281: remove __reduce__ method from Mutability
Browse files Browse the repository at this point in the history
The class `Mutability` used to be a mixin class for mutable objects.
However, not every class inheriting from it uses pickling and even then
it must be overloaded manually in most cases anyway.

We suggest to remove that method from `Mutability`.

URL: https://trac.sagemath.org/30281
Reported by: gh-mjungmath
Ticket author(s): Michael Jung
Reviewer(s): Travis Scrimshaw, Matthias Koeppe
  • Loading branch information
Release Manager committed Aug 19, 2020
2 parents 578233d + f0230f0 commit eb2156d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sage/structure/mutability.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ cdef class Mutability:
def is_mutable(self):
return not self._is_immutable

def __reduce__(self):
return Mutability, (self._is_immutable, )

##########################################################################
## Method decorators for mutating methods resp. methods that assume immutability

Expand Down

0 comments on commit eb2156d

Please sign in to comment.