summaryrefslogtreecommitdiff
path: root/numpy/doc/subclassing.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-08-28 19:50:32 -0700
committerRalf Gommers <ralf.gommers@gmail.com>2019-08-28 19:50:32 -0700
commit5391ac3d426a9cfa1317e989e1b312dbe1d7b82f (patch)
treeb7901d54170d952f2fdc68e768a9dc25c6dc2e94 /numpy/doc/subclassing.py
parent983303f1809b3882d4774fdc220b75711063ef29 (diff)
downloadnumpy-5391ac3d426a9cfa1317e989e1b312dbe1d7b82f.tar.gz
DOC: add comment to explain `object.__new__`.
[ci skip]
Diffstat (limited to 'numpy/doc/subclassing.py')
-rw-r--r--numpy/doc/subclassing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py
index 786df3722..d0685328e 100644
--- a/numpy/doc/subclassing.py
+++ b/numpy/doc/subclassing.py
@@ -118,6 +118,7 @@ For example, consider the following Python code:
def __new__(cls, *args):
print('Cls in __new__:', cls)
print('Args in __new__:', args)
+ # The `object` type __new__ method takes a single argument.
return object.__new__(cls)
def __init__(self, *args):