[Python-3000] PEP 3137 plan of attack
luke.stebbing at gmail.com
Mon Oct 15 20:42:48 CEST 2007
On 10/15/07, Jim Jewett <jimjjewett at gmail.com> wrote:
> So would returning a different object. I expect a mutation operation
> on an explicitly mutable object to mutate the object, instead of
> creating something new.
> If it returns a new one, I can imagine doing something like:
> obj.inqueue.lower() # oh, wait, that didn't really do anything
> after all...
> if obj.inqueue[:4] == b"http": # works on my *regular* input...
> Maybe the answer is "don't do that", and to only do this sort of
> processing before it goes in the buffer or after it comes out, but ...
> it still looks like a major gotcha.
I expect something spelled "lower" to try and transform an object
in-place, period. Too bad changing it to "lowered" would be such a
More information about the Python-3000