bpo-31506: Clarify error messages for object.__new__ and object.__init__ by CuriousLearner · Pull Request #11641 · python/cpython

@CuriousLearner

ncoghlan

@ncoghlan

@ncoghlan ncoghlan changed the title bpo-31506: Fix the error message logic for object.__new__ and object.__init__ bpo-31506: Clarify error messages for object.__new__ and object.__init__

Feb 19, 2019

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 19, 2019
…t__ (pythonGH-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 5105483)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>

miss-islington added a commit that referenced this pull request

Feb 19, 2019
…t__ (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 5105483)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>