m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
431 B

6 months ago
  1. """This module provides containers for python objects that are valid
  2. printing targets but are not a subclass of SymPy's Printable.
  3. """
  4. from sympy.core.containers import Tuple
  5. class List(Tuple):
  6. """Represents a (frozen) (Python) list (for code printing purposes)."""
  7. def __eq__(self, other):
  8. if isinstance(other, list):
  9. return self == List(*other)
  10. else:
  11. return self.args == other