Message93069
About _json_encoder_init.patch, an alternative patch is to write
arguments references (addresses) in local variables, and only copy them
on success. Something like:
PyObject *arg;
if (!PyTuple_ParseArgs(..., &arg)) return NULL;
Py_INCREF(arg);
self->arg = arg;
I prefered to write a shorter patch.
Tell me if you prefer the alternative fix, and if you would like unit tests. |
|
Date |
User |
Action |
Args |
2009-09-24 11:23:29 | vstinner | set | recipients:
+ vstinner |
2009-09-24 11:23:28 | vstinner | set | messageid: <1253791408.71.0.85939686046.issue6986@psf.upfronthosting.co.za> |
2009-09-24 11:23:27 | vstinner | link | issue6986 messages |
2009-09-24 11:23:26 | vstinner | create | |
|