Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

This is likely an implementation artifact.  In the abstract API, both 
PyObject_DelItem() and PyObject_SetItem() route through the same slot, 
m->mp_ass_subscript.  The set and delete operations are only differentiated in 
the downstream concrete APIs.  When the *value* parameter is NULL, the 
operation is deemed to be a deletion.

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31218>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to