Closed
Description
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.