]> granicus.if.org Git - python/commit
bpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641)
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Tue, 19 Feb 2019 13:23:48 +0000 (18:53 +0530)
committerNick Coghlan <ncoghlan@gmail.com>
Tue, 19 Feb 2019 13:23:48 +0000 (23:23 +1000)
commit5105483acb3aca318304bed056dcfd7e188fe4b5
treed0597928b1f356700d4b0d841a49e1827b07a915
parentf522a57ec77921ee2e60bd4ccda3c8daa5a43e95
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.
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