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 scoder
Recipients scoder
Date 2010-09-11.11:24:43
SpamBayes Score 0.00691486
Marked as misclassified No
Message-id <1284204286.26.0.294776311301.issue9834@psf.upfronthosting.co.za>
In-reply-to
Content
PySequence_GetSlice() in Objects/abstract.c contains the following code:

    mp = s->ob_type->tp_as_mapping;
    if (mp->mp_subscript) {

This crashes when the type's "tp_as_mapping" is NULL. The obvious fix is to simply write

    if (mp && mp->mp_subscript)

as basically everywhere else around that function. The problem seems to have occurred during a rewrite for Python 3, it's ok in the 2.x series.
History
Date User Action Args
2010-09-11 11:24:46scodersetrecipients: + scoder
2010-09-11 11:24:46scodersetmessageid: <1284204286.26.0.294776311301.issue9834@psf.upfronthosting.co.za>
2010-09-11 11:24:44scoderlinkissue9834 messages
2010-09-11 11:24:43scodercreate