[issue14656] Add a macro for unreachable code

Martin v. Löwis report at bugs.python.org
Wed May 2 17:54:05 CEST 2012


Martin v. Löwis <martin at v.loewis.de> added the comment:

> I was just attempting to provide a standard way of marking unreachable code.

I'm -1 for the proposed patch (and probably -0 on the general idea). I think the patch has the potential *introducing* new warnings, as compilers might warn that a return is lacking in these functions. 

I'm -0 on the general idea, as I think the status quo is just fine.

As for Victor's second use case (run-time checking that supposedly-unreachable code is indeed not reached, in release mode), I'm -0 also: we check that in debug mode; this looks sufficient to me.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14656>
_______________________________________


More information about the Python-bugs-list mailing list