[3.9] bpo-44904: Fix classmethod property bug in doctest module (GH-28838) by miss-islington · Pull Request #29262 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

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

Sign up

Appearance settings

Conversation

@miss-islington

Copy link

Contributor

@miss-islington miss-islington commented

Oct 28, 2021

edited by bedevere-bot

Loading

The doctest module raised an error if a docstring contained an example that
attempted to access a classmethod property. (Stacking '@classmethod' on top of
@property has been supported since Python 3.9; see
https://docs.python.org/3/howto/descriptor.htmlGH-class-methods.)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
(cherry picked from commit b1302ab)

Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com

https://bugs.python.org/issue44904

…8838)

The doctest module raised an error if a docstring contained an example that
attempted to access a classmethod property. (Stacking '@classmethod' on top of
`@property` has been supported since Python 3.9; see
https://docs.python.org/3/howto/descriptor.htmlGH-class-methods.)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit b1302ab)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

@miss-islington

Copy link

Contributor Author

@AlexWaygood and @serhiy-storchaka: Status check is done, and it's a success ✅ .

AlexWaygood reacted with heart emoji

@miss-islington miss-islington merged commit 8365a5b into python:3.9

Oct 28, 2021

@miss-islington miss-islington deleted the backport-b1302ab-3.9 branch

October 28, 2021 08:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@serhiy-storchaka serhiy-storchaka serhiy-storchaka approved these changes

Assignees

No one assigned

Labels

type-bug

An unexpected behavior, bug, or error

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@miss-islington @serhiy-storchaka @the-knights-who-say-ni @bedevere-bot @AlexWaygood