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

PyUnicode_FromFormatV: support width and precision for string codes, e.g %S and %R #57637

Closed
akheron opened this issue Nov 18, 2011 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@akheron
Copy link
Member

akheron commented Nov 18, 2011

BPO 13428
Nosy @vstinner, @akheron

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 = None
closed_at = <Date 2011-11-18.12:03:21.118>
created_at = <Date 2011-11-18.11:58:54.543>
labels = ['interpreter-core', 'type-feature']
title = 'PyUnicode_FromFormatV: support width and precision for string codes, e.g %S and %R'
updated_at = <Date 2011-11-18.12:03:21.117>
user = 'https://github.com/akheron'

bugs.python.org fields:

activity = <Date 2011-11-18.12:03:21.117>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2011-11-18.12:03:21.118>
closer = 'vstinner'
components = ['Interpreter Core']
creation = <Date 2011-11-18.11:58:54.543>
creator = 'petri.lehtinen'
dependencies = []
files = []
hgrepos = []
issue_num = 13428
keywords = []
message_count = 2.0
messages = ['147858', '147860']
nosy_count = 2.0
nosy_names = ['vstinner', 'petri.lehtinen']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue13428'
versions = ['Python 3.3']

@akheron
Copy link
Member Author

akheron commented Nov 18, 2011

Currently, the width and precision information for string codes are accepted but ignored. They should be used to pad short strings (width) and truncate long ones (precision), just like printf() (only in terms of code points rather than bytes, since those codes work with Unicode text).

@akheron akheron added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Nov 18, 2011
@vstinner
Copy link
Member

Duplicate of bpo-7330.

@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

2 participants