[Python-Dev] Extend reST spec to allow automatic recognition of identifiers in comments? (original) (raw)

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Sun Jan 6 09:55:27 CET 2008


-On [20080105 22:44], Jameson Chema Quinn (jquinn at cs.oberlin.edu) wrote:

The "syntax" of what goes inside these is very loose. identifierlist ::= [] { } , with no whitespace after initialword, and where separatorsymbol is the set of symbols ".,<>{}[]+-*^%=|/()[]{}" MINUS closingsymbol. contentword could maybe be a quoted string, too. In the "function name", no whitespace is allowed, but the symbols ".,*^=><-" are. Thus::

Given the fact Python 3k will use unicode natively for strings and, IIRC, UTF-8 as standard encoding for Python files, have you thought about the half-width and full-width characters like the ones you describe above? 「」 are, for example, very common in Japanese where English would use quotes.

-- Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Possession is nine points of the law...



More information about the Python-Dev mailing list