Raymond Hettinger added the comment:

Have you checked all the possibly code paths to be sure?   "Seems to be 
unnecessary" is insufficient reason for undoing Guido's code that has stood 
since 1997.   


Looking at the snarl of possible code paths, I not finding it obvious why some 
of the paths require Py_XDECREF and others don't.   Even if you are sure, then 
the patch needs to include assertions at key checkpoints (i.e. after a given 
assignment to "type" or "value" can we reliably assert the value is non-null) 
and/or comments showing what the reasoning is.  Otherwise, even if the patch 
happens to be correct, it increases the risk that future maintenance will 
introduce a bug when the current code would have allowed the maintenance in a 
safer context.

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

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

Reply via email to