summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>2019-02-19 13:23:48 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2019-02-19 13:23:48 (GMT)
commit5105483acb3aca318304bed056dcfd7e188fe4b5 (patch)
treed0597928b1f356700d4b0d841a49e1827b07a915 /Misc
parentf522a57ec77921ee2e60bd4ccda3c8daa5a43e95 (diff)
downloadcpython-5105483acb3aca318304bed056dcfd7e188fe4b5.zip
cpython-5105483acb3aca318304bed056dcfd7e188fe4b5.tar.gz
cpython-5105483acb3aca318304bed056dcfd7e188fe4b5.tar.bz2
bpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641)
`object.__new__` and `object.__init__` do take one argument each, they just don't take extra user supplied arguments. Patch by Sanyam Khurana.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-01-22-02-06-39.bpo-31506.eJ5FpV.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-01-22-02-06-39.bpo-31506.eJ5FpV.rst b/Misc/NEWS.d/next/Core and Builtins/2019-01-22-02-06-39.bpo-31506.eJ5FpV.rst
new file mode 100644
index 0000000..9ebcab7
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-01-22-02-06-39.bpo-31506.eJ5FpV.rst
@@ -0,0 +1,3 @@
+Clarify the errors reported when ``object.__new__`` and ``object.__init__``
+receive more than one argument.
+Contributed by Sanyam Khurana.