This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2009-09-24.11:23:26
SpamBayes Score 0.029488971
Marked as misclassified No
Message-id <1253791408.71.0.85939686046.issue6986@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-09-24 11:23:29vstinnersetrecipients: + vstinner
2009-09-24 11:23:28vstinnersetmessageid: <1253791408.71.0.85939686046.issue6986@psf.upfronthosting.co.za>
2009-09-24 11:23:27vstinnerlinkissue6986 messages
2009-09-24 11:23:26vstinnercreate