Re: Micro-PEP: str.translate(None) to mean identity translation
- From: bokr@xxxxxx (Bengt Richter)
- Date: Sat, 30 Apr 2005 20:50:45 GMT
On Sat, 30 Apr 2005 08:44:21 GMT, "Raymond Hettinger" <vze4rx4y@xxxxxxxxxxx> wrote:
>[Bengt Richter]
>> Just thought None as the first argument would be both handy and mnemonic,
>> signifying no translation, but allowing easy expression of deleting
>characters,
>> e.g.,
>>
>> s = s.translate(None, 'badcharshere')
>
>Log a feature request on SF and assignment to me.
>I'll put this in for you.
>
Thanks. It has request ID # 1193128
Regards,
Bengt Richter
.
- References:
- Micro-PEP: str.translate(None) to mean identity translation
- From: Bengt Richter
- Micro-PEP: str.translate(None) to mean identity translation
- Prev by Date: Re: [newbie] Embedding Flash OCX object
- Next by Date: Tripoli: a Python-based triplespace implementation
- Previous by thread: Re: Micro-PEP: str.translate(None) to mean identity translation
- Next by thread: [wxPython] Many wxPanel forms in 1 wxFrame
- Index(es):
Relevant Pages
|