Skip to content

bpo-31506: Clarify error messages for object.__new__ and object.__init__#11641

Merged
ncoghlan merged 2 commits into
python:masterfrom
CuriousLearner:refix-issue31506
Feb 19, 2019
Merged

bpo-31506: Clarify error messages for object.__new__ and object.__init__#11641
ncoghlan merged 2 commits into
python:masterfrom
CuriousLearner:refix-issue31506

Conversation

@CuriousLearner

@CuriousLearner CuriousLearner commented Jan 21, 2019

Copy link
Copy Markdown
Member

object.__new__ and object.__init__ do take one argument each,
they just don't take extra user supplied arguments.

https://bugs.python.org/issue31506

@ncoghlan ncoghlan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks. I'll tweak the NEWS entry and commit message, and then let Miss-Islington do the merge :)

@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
@serhiy-storchaka

Copy link
Copy Markdown
Member

Please don't use automerge in PRs with multiple commits. It results in ugly commit messages containing all the history of intermediate changes.

@ncoghlan

Copy link
Copy Markdown
Contributor

Oh, I've been doing that wrong, then - I thought automerge did the squash commit and used the first message in the PR as the commit message :(

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @CuriousLearner for the PR, and @ncoghlan for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-11939 is a backport of this pull request to the 3.7 branch.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants