Commit 52b2705e authored by Guido van Rossum's avatar Guido van Rossum

Ouch, it's Carlo Verre, not Verre Carlo.

parent 357981e9
......@@ -3840,21 +3840,21 @@ def proxysuper():
p = Proxy(obj)
vereq(C.__dict__["f"](p), "B.f->C.f")
def verrecarlo():
def carloverre():
if verbose:
print "Testing prohibition of Verre Carlo's hack..."
print "Testing prohibition of Carlo Verre's hack..."
try:
object.__setattr__(str, "foo", 42)
except TypeError:
pass
else:
raise TestFailed, "Verre Carlo __setattr__ suceeded!"
raise TestFailed, "Carlo Verre __setattr__ suceeded!"
try:
object.__delattr__(str, "lower")
except TypeError:
pass
else:
raise TestFailed, "Verre Carlo __delattr__ succeeded!"
raise TestFailed, "Carlo Verre __delattr__ succeeded!"
def test_main():
......@@ -3945,7 +3945,7 @@ def test_main():
meth_class_get()
isinst_isclass()
proxysuper()
verrecarlo()
carloverre()
if verbose: print "All OK"
......
......@@ -3575,7 +3575,7 @@ wrap_cmpfunc(PyObject *self, PyObject *args, void *wrapped)
}
/* Helper to check for object.__setattr__ or __delattr__ applied to a type.
This is called the Verre Carlo hack after its discoverer. */
This is called the Carlo Verre hack after its discoverer. */
static int
hackcheck(PyObject *self, setattrofunc func, char *what)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment