Message116092
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. |
|
Date |
User |
Action |
Args |
2010-09-11 11:24:46 | scoder | set | recipients:
+ scoder |
2010-09-11 11:24:46 | scoder | set | messageid: <1284204286.26.0.294776311301.issue9834@psf.upfronthosting.co.za> |
2010-09-11 11:24:44 | scoder | link | issue9834 messages |
2010-09-11 11:24:43 | scoder | create | |
|