]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Feb 2019 13:47:13 +0000 (05:47 -0800)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 13:47:13 +0000 (05:47 -0800)
commit64ca72822338e0ba6e4f14d0a1cd3a9dcfa6c9ac
tree6686f10f39211d9fc639160aeedb690f472b3348
parenta8834905df853510f38d4e2d628bed8229fd7482
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.
(cherry picked from commit 5105483acb3aca318304bed056dcfd7e188fe4b5)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Lib/test/test_class.py
Misc/NEWS.d/next/Core and Builtins/2019-01-22-02-06-39.bpo-31506.eJ5FpV.rst [new file with mode: 0644]
Objects/typeobject.c