Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish format() change started in issue43945 #88623

Closed
ethanfurman opened this issue Jun 18, 2021 · 2 comments
Closed

Finish format() change started in issue43945 #88623

ethanfurman opened this issue Jun 18, 2021 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@ethanfurman
Copy link
Member

BPO 44457
Nosy @ethanfurman

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ethanfurman'
closed_at = None
created_at = <Date 2021-06-18.21:33:26.117>
labels = ['type-bug']
title = 'Finish format() change started in issue43945'
updated_at = <Date 2021-06-18.21:33:33.273>
user = 'https://github.com/ethanfurman'

bugs.python.org fields:

activity = <Date 2021-06-18.21:33:33.273>
actor = 'ethan.furman'
assignee = 'ethan.furman'
closed = False
closed_date = None
closer = None
components = []
creation = <Date 2021-06-18.21:33:26.117>
creator = 'ethan.furman'
dependencies = []
files = []
hgrepos = []
issue_num = 44457
keywords = []
message_count = 1.0
messages = ['396098']
nosy_count = 1.0
nosy_names = ['ethan.furman']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'pending'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue44457'
versions = []

@ethanfurman
Copy link
Member Author

Finish the work started in bpo-43945 -- in 3.12 format() now uses the enum member itself instead of its value; e.g.:

    >>> class Color(int, Enum):
    ...     RED = 1

    >>> f"{Color.RED}"
    'RED'
    >>> f"{Color.RED:d}"
    '1'

@ethanfurman ethanfurman self-assigned this Jun 18, 2021
@ethanfurman ethanfurman added the type-bug An unexpected behavior, bug, or error label Jun 18, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@AlexWaygood AlexWaygood added the stdlib Python modules in the Lib dir label Jul 21, 2023
@ethanfurman
Copy link
Member Author

All output changes have been finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants