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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, brett.cannon, dmalcolm, georg.brandl, ncoghlan
Date 2010-11-11.21:22:43
SpamBayes Score 0.009251593
Marked as misclassified No
Message-id <1289510566.54.0.389761541449.issue10391@psf.upfronthosting.co.za>
In-reply-to
Content
IMO a better patch would be to use the %R format specification:
  PyErr_Format(
      PyExc_TypeError, "expected some sort of mod, but got %R", obj);
And no need to use PyObject_Repr and the temporary variable!
History
Date User Action Args
2010-11-11 21:22:46amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, dmalcolm
2010-11-11 21:22:46amaury.forgeotdarcsetmessageid: <1289510566.54.0.389761541449.issue10391@psf.upfronthosting.co.za>
2010-11-11 21:22:43amaury.forgeotdarclinkissue10391 messages
2010-11-11 21:22:43amaury.forgeotdarccreate