Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue1193128

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:'str'.translate(None) => identity translation
Type:enhancementStage:
Components:Interpreter CoreVersions:
process
Status:closedResolution:accepted
Dependencies:Superseder:
Assigned To: rhettingerNosy List: bokr, rhettinger
Priority:normalKeywords:

Created on2005-04-30 20:31 bybokr, last changed2022-04-11 14:56 byadmin. This issue is nowclosed.

Messages (2)
msg54516 -(view)Author: Bengt Richter (bokr)Date: 2005-04-30 20:31
This feature would permit passing None as the firstargument to str.translate in place of  an identitytranslationtable 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)
msg54517 -(view)Author: Raymond Hettinger (rhettinger)*(Python committer)Date: 2007-04-12 04:13
Done.  Seerevision 54772.
History
DateUserActionArgs
2022-04-11 14:56:11adminsetgithub: 41931
2005-04-30 20:31:08bokrcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp