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

'str'.translate(None) => identity translation #41931

Closed
bokr mannequin opened this issue Apr 30, 2005 · 2 comments
Closed

'str'.translate(None) => identity translation #41931

bokr mannequin opened this issue Apr 30, 2005 · 2 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@bokr
Copy link
Mannequin

bokr mannequin commented Apr 30, 2005

BPO 1193128
Nosy @rhettinger

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/rhettinger'
closed_at = <Date 2007-04-12.04:13:45.000>
created_at = <Date 2005-04-30.20:31:08.000>
labels = ['interpreter-core', 'type-feature']
title = "'str'.translate(None) => identity translation"
updated_at = <Date 2007-04-12.04:13:45.000>
user = 'https://bugs.python.org/bokr'

bugs.python.org fields:

activity = <Date 2007-04-12.04:13:45.000>
actor = 'rhettinger'
assignee = 'rhettinger'
closed = True
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2005-04-30.20:31:08.000>
creator = 'bokr'
dependencies = []
files = []
hgrepos = []
issue_num = 1193128
keywords = []
message_count = 2.0
messages = ['54516', '54517']
nosy_count = 2.0
nosy_names = ['rhettinger', 'bokr']
pr_nums = []
priority = 'normal'
resolution = 'accepted'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue1193128'
versions = []

@bokr
Copy link
Mannequin Author

bokr mannequin commented Apr 30, 2005

This feature would permit passing None as the first
argument to str.translate in place of an identity
translation
table like ''.join([[chr(i) for i in xrange(256)])

This should be handy for deleting characters, e.g., as in

     s = s.translate(None, delchars)

@bokr bokr mannequin closed this as completed Apr 30, 2005
@bokr bokr mannequin assigned rhettinger Apr 30, 2005
@bokr bokr mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Apr 30, 2005
@bokr bokr mannequin closed this as completed Apr 30, 2005
@bokr bokr mannequin assigned rhettinger Apr 30, 2005
@bokr bokr mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Apr 30, 2005
@rhettinger
Copy link
Contributor

Done. See revision 54772.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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