On Mon, Aug 15, 2011 at 10:17 PM, Antoine Pitrou <solip...@pitrou.net> wrote: > AFAICT, often with True and False: > > x = (some condition) ? Py_True : Py_False; > Py_INCREF(x); > return x;
And that's an idiom that works better with a Py_RETURN macro than it would separate macros: Py_RETURN(cond ? Py_True : Py_False); OK, I'm persuaded that "Py_RETURN(Py_NotImplemented);" would be a better way to handle this change: +1 Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com