Skip to content

Replace - with : in slices indexes. #181

Description

@python-processing-unit

According to the specification section 2.2:

The character - MUST be interpreted only as the leading sign of a numeric literal or as the dash used by slice syntax lo-hi. Any unsupported use of - MUST raise a syntax error.

and the specification section 4.4.2:

Slice indexing MUST be supported in any index position using a range of the form lo-hi. The selected slice MUST be inclusive of both endpoints.

Use colon : instead of dash - between the beginning and ending of slices.

Update the implementation, specification, tests, and stdlib.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestinterpreterRequires a code change in the interpreter.majorRequires a major version change.testSomething related to the test suite.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions