[Python-Dev] cpython: Add Py_RETURN_NOTIMPLEMENTED macro. Fixes #12724. (original) (raw)

Brett Cannon brett at python.org
Mon Aug 15 04:34:38 CEST 2011


On Thu, Aug 11, 2011 at 00:02, Antoine Pitrou <solipsis at pitrou.net> wrote:

Le Thu, 11 Aug 2011 03:34:37 +0200, brian.curtin <python-checkins at python.org> a écrit : > http://hg.python.org/cpython/rev/77a65b078852 > changeset: 71809:77a65b078852 > parent: 71803:1b4fae183da3 > user: Brian Curtin <brian at python.org> > date: Wed Aug 10 20:05:21 2011 -0500 > summary: > Add PyRETURNNOTIMPLEMENTED macro. Fixes #12724.

It would sound more useful to have a generic PyRETURN() macro rather than some specific forms for each and every common object.

Since the macro is rather generic, sure, but the name should probably be better since it doesn't necessarily convene the fact that a INCREF has occurred. So maybe Py_INCREF_RETURN()?

Regards Antoine.


Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/brett%40python.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20110814/1415fae5/attachment.html>



More information about the Python-Dev mailing list