Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Backport bd583ef 3.6#1277

Closed
Soares wants to merge 2 commits into
python:3.6python/cpython:3.6from
Soares:backport-bd583ef-3.6Soares/cpython:backport-bd583ef-3.6Copy head branch name to clipboard
Closed

Backport bd583ef 3.6#1277
Soares wants to merge 2 commits into
python:3.6python/cpython:3.6from
Soares:backport-bd583ef-3.6Soares/cpython:backport-bd583ef-3.6Copy head branch name to clipboard

Conversation

@Soares

@Soares Soares commented Apr 24, 2017

Copy link
Copy Markdown
Contributor

I think I followed the backporting instructions at https://docs.python.org/devguide/committing.html?highlight=backport correctly, but this is my first time, so please let me know if I erred, as is fairly likely.

Nate added 2 commits April 24, 2017 16:29
…#527)

Many metaclasses in the standard library don't play nice with
__init_subclass__. This bug makes ABCMeta in particular with
__init_subclass__, which is an 80/20 solution for me personally.
AFAICT, a general solution to this problem requires updating all
metaclasses in the standard library to make sure they pass **kwargs to
type.__new__, whereas this PR only fixes ABCMeta. For context, see
https://bugs.python.org/issue29581.

* added a test combining ABCMeta and __init_subclass__
* Added NEWS item

(cherry picked from commit bd583ef)
…ythonGH-527)

Many metaclasses in the standard library don't play nice with
__init_subclass__. This bug makes ABCMeta in particular with
__init_subclass__, which is an 80/20 solution for me personally.
AFAICT, a general solution to this problem requires updating all
metaclasses in the standard library to make sure they pass **kwargs to
type.__new__, whereas this PR only fixes ABCMeta. For context, see
https://bugs.python.org/issue29581.

* added a test combining ABCMeta and __init_subclass__
* Added NEWS item.
(cherry picked from commit bd583ef)
@Soares

Soares commented Apr 24, 2017

Copy link
Copy Markdown
Contributor Author

I'm also planning to backport PR #678, which depends on this backport (of PR #527). I assume that I shouldn't begin that backport until this one is accepted, but let me know if I can begin the backport of #678 now.

@vstinner

Copy link
Copy Markdown
Member

There is an issue on the Misc/NEWS merge :-/

@Soares

Soares commented Apr 25, 2017

Copy link
Copy Markdown
Contributor Author

Oops. I don't see an easy way to fix this using the cherry_picker tool, so I'm going to abandon this PR and make a new one (merging correctly) this time, unless you object.

Also, I note that there's a "No issue number in the title or "trivial" label" problem listed in 'checks'. Do you want me to add the issue label of the original issue (for which this is a backport), or stick with the auto-generated backport PR name?

@ncoghlan ncoghlan closed this Apr 25, 2017
@ncoghlan

Copy link
Copy Markdown
Contributor

@Soares The preferred format for backport PR titles is "[X.Y] bpo-NNNNN: ...", where X.Y is the target branch and NNNNN is the bugs.python.org issue number

@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error cherry-pick for 3.6 labels Apr 25, 2017
@Soares Soares deleted the backport-bd583ef-3.6 branch April 25, 2017 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.