Re: Micro-PEP: str.translate(None) to mean identity translation



After I re-read your post in daylight and read your followup the "Aha!"
hit me .I am a little slow at times. I have always just iterated thru
the badchars and replaced with "" . What you suggest would be very
nice indeed!
Thanks for the time and explanation, and you too Peter !

For what it is worth +1 ;)

On another note why is maketrans in the string module....
I was a bit lost finding it the first time should it be builtin?
transtable = "abcdefg".maketrans("qwertyu")
Probably missing something.
M.E.Farmer

.



Relevant Pages

  • Re: DST in Windows
    ... Then I hit the Time Zone tab and change to another ... I make sure the Daylight ... until the next reboot. ...
    (microsoft.public.windowsxp.general)
  • Re: Firefox UK version isnt really!
    ... Clear as daylight on a VERY sunny day. ... maths in one hit ...
    (uk.comp.os.linux)
  • Re: Stories that made you cry
    ... I happend to hit that passage last night, in the course of a re-read, ...
    (rec.arts.sf.written)
  • Re: After some time device unmounts and cant be mounted
    ... newsreader. ... whenever you want to followup to some post, ... you hit "reply" IN THE THREAD - you DO NOT start a new ... He was a fiddler, and consequently a rogue. ...
    (alt.os.linux.suse)
  • Re: Send a Copy
    ... Hit it again. ... Please post any further questions or followup to the newsgroups for the ... "Nancy" wrote in message ...
    (microsoft.public.word.docmanagement)