Skip to content

Support 'R' prefix for raw string literals #2522

Open
@bmeisels

Description

@bmeisels

Following the discussion on adafruit/Adafruit_CircuitPython_IL0373#7

Circuitpython currently supports raw string / byte literals with the 'r' prefix but doesn't support the 'R' prefix.

This should be changed to support compatibility with CPython.

"Both string and bytes literals may optionally be prefixed with a letter 'r' or 'R'; such strings are called raw strings and treat backslashes as literal characters." (excerpt from https://docs.python.org/3.7/reference/lexical_analysis.html)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions