diff options
author | Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com> | 2019-02-19 13:23:48 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2019-02-19 13:23:48 (GMT) |
commit | 5105483acb3aca318304bed056dcfd7e188fe4b5 (patch) | |
tree | d0597928b1f356700d4b0d841a49e1827b07a915 /Misc | |
parent | f522a57ec77921ee2e60bd4ccda3c8daa5a43e95 (diff) | |
download | cpython-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.rst | 3 |
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. |