[Python-ideas] str.rreplace

Oleg Broytman phd at phdru.name
Sat Jan 25 12:15:13 CET 2014


On Sat, Jan 25, 2014 at 06:57:21PM +1300, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Ethan Furman wrote:
> >On 01/24/2014 09:36 AM, Antoine Pitrou wrote:
> >
> >>On Fri, 24 Jan 2014 19:30:00 +0200
> >>Serhiy Storchaka <storchaka at gmail.com>
> >>wrote:
> >>
> >>>bytearray.rremove, tuple.rindex, list.rindex, list.rremove.
> >>
> >>Not sure what those have to do with rreplace().
> >
> >The funny look of the name, I think.  ;)
> 
> Yes, obviously the properly serious names for
> them would be bytearray.evomer, tuple.xedni and
> list.evomer. No confusing double Rs to trip
> you up then.

   While we are at it, can we also change the language a bit and add
closing lines for compound operators? I suggest pairs like if/fi,
for/rof and while/done. I'm still thinking about try/except/finally.
   That minor addition also would help to create multiline anonymous
functions -- just put the body inside def/fed.
   (Big ugly evil grin.)

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-ideas mailing list