On 10/15/07, Jim Jewett <[EMAIL PROTECTED]> 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=bytesbuffer(100) > 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 royal pain. Luke _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
