Skip to content

\N not properly documented in re module documentation #102111

Closed
@petitchou

Description

@petitchou

Documentation

In the re module, the \N escape is documented in the changelog from Python 3.8 but never actually explained in the documentation proper.

The changelog entry (which is quite helpful) says the following:

Changed in version 3.8: The '\N{name}' escape sequence has been added. As in string literals, it expands to the named Unicode character (e.g. '\N{EM DASH}').

While this pretty much hits all the high points of how you'd use \N, it still probably ought to be written out a little more formally in the documentation somewhere especially given how thoroughly and with what care the standard library tends to be documented.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions