summaryrefslogtreecommitdiff
path: root/numpy/polynomial/_polybase.py
diff options
context:
space:
mode:
authorJeff <3820914+jeffyancey@users.noreply.github.com>2018-08-26 14:16:12 -0600
committerCharles Harris <charlesr.harris@gmail.com>2018-08-26 15:16:12 -0500
commitd210300bc1b1a849a5df618b47b00cba501f51b4 (patch)
tree6836a1343fbd2cff46f82200b3707de7ad42c310 /numpy/polynomial/_polybase.py
parent63a57c3f6a58c61763daf89a2d5495f6a855bf9b (diff)
downloadnumpy-d210300bc1b1a849a5df618b47b00cba501f51b4.tar.gz
DOC: Polybase augmented assignment notes (#11806)
* Add augmented assignment for supported operations Add augmented assignments for `+=`, `-=`, `*=`, `/=`, `%=`, and `**=`. * correct idiv and imod * remove augomented operationa. add notes. Explicitly state the intention that all instances of a polynomial baseclass are immutable. * fix typo, remove Note from _polybase
Diffstat (limited to 'numpy/polynomial/_polybase.py')
-rw-r--r--numpy/polynomial/_polybase.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/polynomial/_polybase.py b/numpy/polynomial/_polybase.py
index ccbf30bda..dc72e7661 100644
--- a/numpy/polynomial/_polybase.py
+++ b/numpy/polynomial/_polybase.py
@@ -17,7 +17,7 @@ from . import polyutils as pu
__all__ = ['ABCPolyBase']
class ABCPolyBase(object):
- """An abstract base class for series classes.
+ """An abstract base class for immutable series classes.
ABCPolyBase provides the standard Python numerical methods
'+', '-', '*', '//', '%', 'divmod', '**', and '()' along with the
@@ -512,9 +512,6 @@ class ABCPolyBase(object):
rem = self.__class__(rem, self.domain, self.window)
return quo, rem
- # Enhance me
- # some augmented arithmetic operations could be added here
-
def __eq__(self, other):
res = (isinstance(other, self.__class__) and
np.all(self.domain == other.domain) and