On Tue, Nov 2, 2021 at 7:21 AM Petr Viktorin <encukou@gmail.com> wrote:
That brings us to possible changes in Python in this  area, which is an
interesting topic.

Is there a use case or need for allowing the comment-starting character “#” to occur when text is still in the right-to-left direction? Disallowing that would prevent Petr’s examples in which active code is displayed after the comment mark, which to me seems to be one of the more egregious examples. Or maybe this case is no worse than others and isn’t worth singling out.

—Chris





As for \0, can we ban all ASCII & C1 control characters except
whitespace? I see no place for them in source code.


For homoglyphs/confusables, should there be a SyntaxWarning when an
identifier looks like ASCII but isn't?

For right-to-left text: does anyone actually name identifiers in
Hebrew/Arabic? AFAIK, we should allow a few non-printing
"joiner"/"non-joiner" characters to make it possible to use all Arabic
words. But it would be great to consult with users/teachers of the
languages.
Should Python run the bidi algorithm when parsing and disallow reordered
tokens? Maybe optionally?
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-leave@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/TGB377QWGIDPUWMAJSZLT22ERGPNZ5FZ/
Code of Conduct: http://python.org/psf/codeofconduct/