Skip to content

Conversation

@pganssle
Copy link
Member

@pganssle pganssle commented Jun 18, 2020

Prior to this change, attempting to subclass the C implementation of zoneinfo.ZoneInfo gave the following error:

TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

CC: @sdispater

https://bugs.python.org/issue41025

Automerge-Triggered-By: @pganssle

@sdispater
Copy link

Will this make it to the 3.9.0 final release?

@pganssle
Copy link
Member Author

Yes, I was just waiting for a review.

Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:

    TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

https://bugs.python.org/issue41025
@pganssle
Copy link
Member Author

We may need to ask @ambv to explicitly backport it at this point, which I think would be appropriate. I didn't realize that after rc1 the 3.9 branch is now for stuff for the 3.9.1 release.

I think this is important enough to get backported. Wish I had remembered earlier that this PR was still open.

@pganssle pganssle merged commit 87d8287 into python:master Aug 14, 2020
@miss-islington
Copy link
Contributor

Thanks @pganssle for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 14, 2020
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:

    TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

https://bugs.python.org/issue41025
(cherry picked from commit 87d8287)

Co-authored-by: Paul Ganssle <paul@ganssle.io>
@bedevere-bot
Copy link

GH-21876 is a backport of this pull request to the 3.9 branch.

pganssle added a commit that referenced this pull request Aug 14, 2020
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:

    TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

https://bugs.python.org/issue41025
(cherry picked from commit 87d8287)

Co-authored-by: Paul Ganssle <paul@ganssle.io>
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:

    TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

https://bugs.python.org/issue41025
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:

    TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument

https://bugs.python.org/issue41025
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.

5 participants