[Python-ideas] str.rreplace

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Jan 25 14:36:45 CET 2014


On 25/01/2014 11:15, Oleg Broytman wrote:
> 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.
>

Big +1 from me.  Do we toss a coin to see who gets to write the PEP? Or 
is it decided by the winner of yet another reenactment of the Battle of 
Pearl Harbour? :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence



More information about the Python-ideas mailing list