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

Add alternate (#) formatting for bin, oct, hex output for str.format() #47333

Closed
ericvsmith opened this issue Jun 11, 2008 · 2 comments
Closed
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@ericvsmith
Copy link
Member

BPO 3083
Nosy @ericvsmith

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/ericvsmith'
closed_at = <Date 2008-07-16.00:31:21.619>
created_at = <Date 2008-06-11.21:22:07.288>
labels = ['interpreter-core', 'type-feature']
title = 'Add alternate (#) formatting for bin, oct, hex output for str.format()'
updated_at = <Date 2008-07-16.00:31:21.618>
user = 'https://github.com/ericvsmith'

bugs.python.org fields:

activity = <Date 2008-07-16.00:31:21.618>
actor = 'eric.smith'
assignee = 'eric.smith'
closed = True
closed_date = <Date 2008-07-16.00:31:21.619>
closer = 'eric.smith'
components = ['Interpreter Core']
creation = <Date 2008-06-11.21:22:07.288>
creator = 'eric.smith'
dependencies = []
files = []
hgrepos = []
issue_num = 3083
keywords = []
message_count = 2.0
messages = ['68020', '69736']
nosy_count = 1.0
nosy_names = ['eric.smith']
pr_nums = []
priority = 'normal'
resolution = 'accepted'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue3083'
versions = ['Python 2.6', 'Python 3.0']

@ericvsmith
Copy link
Member Author

Per Guido in
http://mail.python.org/pipermail/python-3000/2008-May/013912.html, add
this to the PEP-3101 (Advanced String Formatting) implementation.

This will add the prefixes 0b, 0o, and 0x.

@ericvsmith ericvsmith self-assigned this Jun 11, 2008
@ericvsmith ericvsmith added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jun 11, 2008
@ericvsmith
Copy link
Member Author

Implemented in trunk in r64958 and r64984; in py3k in r64960 and r64985.

@ericvsmith ericvsmith added the type-feature A feature request or enhancement label Jul 16, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant