Rick Harris added the comment:
Are compatibility concerns the main reason this patch has yet to be applied?
If so, could we allay those fears by keeping the default seek-y behavior and
only introducing the new seek-less style when a 'noseek' flag is passed?
--
nosy
Rick Harris <[EMAIL PROTECTED]> added the comment:
I'm implemented the behavior described by Mike above with a patch to
2.6. The patch will raise an ExpectationFailed before sending the body
if the server responds with a 417 (Expectation Failed).
This patch should only modify b
Rick Harris <[EMAIL PROTECTED]> added the comment:
I think it is important to round-trip for at least two reasons:
1) Consistency. Other built-in exceptions behave this way, why should
KeyError be any different? Okay, technically 3 UnicodeErrors don't allow
just strings to be passed
New submission from Rick Harris <[EMAIL PROTECTED]>:
Here is a bug in Python 2.5 which would be nice to fix for Py3k (since
we are already breaking compatibility):
Take a string:
s = "Hello"
Create a KeyError exception with that string:
e = KeyError(s)
Counterintuitiv
Rick Harris <[EMAIL PROTECTED]> added the comment:
Sorry about forgetting the -c arg! The patch is intended for
python/trunk/Lib/copy.py.
It looks like Raymond Hettinger has made a similar-ish change recently
to make Ellipsis copyable.
__
Tracker &
New submission from Rick Harris:
The copy module will not properly copy/deepcopy weakrefs, it will bomb
out with __new__ not having enough args. This is a problem b/c it makes
deepcopying of objects that make use of Weak(Key|Value)Dictionaries
difficult.
To replicate:
import copy, weakref