[New-bugs-announce] [issue30128] xid_start definition for Unicode identifiers refers to xid_continue

Ralph Corderoy report at bugs.python.org
Fri Apr 21 10:27:21 EDT 2017


New submission from Ralph Corderoy:

https://docs.python.org/3/reference/lexical_analysis.html#identifiers has a grammar.

    identifier   ::=  xid_start xid_continue*
    id_start     ::=  <all characters in general categories Lu, Ll, Lt, Lm, Lo, Nl, the underscore, and characters with the Other_ID_Start property>
    id_continue  ::=  <all characters in id_start, plus characters in the categories Mn, Mc, Nd, Pc and others with the Other_ID_Continue property>
    xid_start    ::=  <all characters in id_start whose NFKC normalization is in "id_start xid_continue*">
    xid_continue ::=  <all characters in id_continue whose NFKC normalization is in "id_continue*">

I struggle to make sense of it unless I remove `xid_continue*' from `xid_start's definition.
I suspect it ended up there due to cut and paste.

----------
assignee: docs at python
components: Documentation
messages: 292049
nosy: docs at python, ralph.corderoy
priority: normal
severity: normal
status: open
title: xid_start definition for Unicode identifiers refers to xid_continue
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30128>
_______________________________________


More information about the New-bugs-announce mailing list