Re: [PATCH] Reject non-pure decimal tuple indexes.

2021-06-25 Thread Mark Wielaard
021 19:37:11 +0200 Subject: [PATCH] Reject non-pure decimal tuple indexes. Tuple indexes should be pure decimal integer literals. But the parser just sees an integer literal. Fix this by introducing a new type hint CORETYPE_PURE_DECIMAL. This doesn't conflict with any existing type hints sinc

[PATCH] Reject non-pure decimal tuple indexes.

2021-06-25 Thread Mark Wielaard
Tuple indexes should be pure decimal integer literals. But the parser just sees an integer literal. Fix this by introducing a new type hint CORETYPE_PURE_DECIMAL. This doesn't conflict with any existing type hints since a pure decimal doesn't have a type suffix. Introduce a new method is_pure_d