[Python-ideas] Re: [Python-Dev] strip behavior provides inconsistent results with certain strings

2019-07-01 Thread Anders Hovmöller
I'm a big +1. I prefer strip_prefix/strip_suffix but only by a little bit. > On 1 Jul 2019, at 21:34, Kirill Balunov wrote: > >> This was quite extensively discussed on python-ideas recently: >> >> https://mail.python.org/archives/list/python-ideas@python.org/thread/RJARZSUKCXRJIP42Z2YBBAEN5

[Python-ideas] Re: [Python-Dev] strip behavior provides inconsistent results with certain strings

2019-07-01 Thread Kirill Balunov
> > This was quite extensively discussed on python-ideas recently: > > > https://mail.python.org/archives/list/python-ideas@python.org/thread/RJARZSUKCXRJIP42Z2YBBAEN5XA7KEC3/#WIRID57ESUFUAQQQ6ZUY2RK5PKQQYSJ3 > > (I'm finding it hard to find a good thread view in the new interface -- > but that wil

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading

2019-07-01 Thread nate lust
All, Thanks for the feedback that everyone has provided. My time will be in short supply in the near term, and so I am going to focus on taking all the input that people have provided and if possible flesh out a stronger proposal. I figured this would also slow the flood of emails on this thread th

[Python-ideas] Re: A proposal (and implementation) to add assignment and LOAD overloading (was: (Re: Re: Overloading assignment concrete proposal (Re: Re: Operator as first class citizens -- like in s

2019-07-01 Thread nate lust
Steven, Sorry about taking a few days to get back to you. Here is the exact code I ran: def test(): n = 0 def inner(): global g nonlocal n n = g x = n g = x y = x z = y return x for i in range(100): a = inner() fro