[issue32711] Fix warnings for Python/ast_unparse.c

Serhiy Storchaka report at bugs.python.org
Thu Feb 1 05:34:39 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I think it is better to not add the default case in switch statements. If once we will add a new binary or unary operator, but forgot to update ast_unparse.c the compiler will immediately warn about this if there are no default cases. But if there is a default case the compiler will be silent.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32711>
_______________________________________


More information about the Python-bugs-list mailing list