summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-03-21 21:59:18 +0000
committerEric Wieser <wieser.eric@gmail.com>2017-03-21 21:59:18 +0000
commit3c4f17b7d6d44b3076be9d50e305ed71836fa5d9 (patch)
tree3388e99f2cb08d22c29f714641a9a9a17c0cb83f /numpy/lib/polynomial.py
parent0ea21d1092c9154d72d50b04ba2c8025704c679f (diff)
downloadnumpy-3c4f17b7d6d44b3076be9d50e305ed71836fa5d9.tar.gz
TST: Prove that poly1d coeffs are immutable
Remove the comment suggesting that they are not
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index e18bbc8bc..f49b7e295 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -1040,7 +1040,7 @@ class poly1d(object):
@property
def coeffs(self):
- """ The polynomial coefficients """
+ """ A copy of the polynomial coefficients """
return self._coeffs.copy()
@property
@@ -1060,8 +1060,7 @@ class poly1d(object):
return roots(self._coeffs)
# our internal _coeffs property need to be backed by __dict__['coeffs'] for
- # scipy to work correctly. Note that as a result, the getter for .coeffs
- # does not run unless accessed through one of its aliases.
+ # scipy to work correctly.
@property
def _coeffs(self):
return self.__dict__['coeffs']