STINNER Victor <vstin...@redhat.com> added the comment:

> Note: "static const int single_input = 305;" cause a complation error on 
> "case single_input": "case label does not reduce to an integer constant".

Ah! A friend gave me another solution, define an enum. Example:

enum {
    single_input = 256,
    ...
};

----------

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

Reply via email to