This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2018-11-09.14:08:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541772538.37.0.788709270274.issue35197@psf.upfronthosting.co.za>
In-reply-to
Content
> 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,
    ...
};
History
Date User Action Args
2018-11-09 14:08:58vstinnersetrecipients: + vstinner
2018-11-09 14:08:58vstinnersetmessageid: <1541772538.37.0.788709270274.issue35197@psf.upfronthosting.co.za>
2018-11-09 14:08:58vstinnerlinkissue35197 messages
2018-11-09 14:08:58vstinnercreate