1419 static PyObject*
1420 _putpixel(ImagingObject* self, PyObject* args)
1421 {
1422 Imaging im;
1423 char ink[4];
1424
1425 int x, y;
1426 PyObject* color;
1427 if (!PyArg_ParseTuple(args, "(ii)O", &x, &y, &color))
when PyArg_ParseTuple() succeeds
taking False path
1428 return NULL;
1429
1430 im = self->image;
1431
1432 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize) {
when considering range: 0 <= value <= 0x7fffffff
taking False path
when treating unknown struct ImagingMemoryInstance * from _imaging.c:1430 as non-NULL
when taking False path
when considering range: 0 <= value <= 0x7fffffff
taking False path
when taking False path
1433 PyErr_SetString(PyExc_IndexError, outside_image);
1434 return NULL;
1435 }
1436
1437 if (!getink(color, im, ink))
when treating unknown char * from _imaging.c:1437 as NULL
taking True path
1438 return NULL;
1439
1440 if (self->access)
1441 self->access->put_pixel(im, x, y, ink);
1442
1443 Py_INCREF(Py_None);
1444 return Py_None;
1445 }
returning (PyObject*)NULL without setting an exception