Raymond Hettinger added the comment:

I believe this is a safe change.  All of the replaced pairs on consecutive 
lines so there are no intervening operations.

For Modules/xxsubtype.c, I think the code should remain as-is.  It is intended 
to be the simplest possible example of how to make a subtype and its clarity is 
reduced by requiring that someone learn the macro.  That said, it would be 
reasonable to add a comment that this pair could also have been coded as 
Py_RETURN_NONE (i.e. use it as a teachable moment).

----------
assignee:  -> serhiy.storchaka
nosy: +rhettinger

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

Reply via email to