Patch (by Andrew Kuchling of course) to prevent named back references

in the pattern to wear out the reference count on small integers.
This commit is contained in:
Guido van Rossum 1997-12-15 17:33:24 +00:00
parent f0413d4841
commit 1eadb41036

View File

@ -1832,7 +1832,7 @@ for (;; ptr++)
}
refnum = PyInt_AsLong(intobj);
Py_DECREF(string); Py_DECREF(intobj);
Py_DECREF(string);
*code++ = OP_REF;
*code++ = refnum;
/* The continue will cause the top-level for() loop to