[Python-3000] PEP 3131 - the details
"Martin v. Löwis"
martin at v.loewis.de
Tue May 22 00:19:33 CEST 2007
> i thought of simply treating Cf chars as whitespace -- i.e., they
> are allowed BETWEEN identifiers, but not INSIDE of them.
Ok - that would also work. Are you proposing that the PEP is changed
in that way, or are you merely stating that it would "work"? (ie.
would you prefer to see it changed that way)
> without the LTR marker, it would read one-aleph, which also *looks* like
> an invalid indentifier, because it begins with a number (although it
> the point is -- you must allow such markers to appear inside tokens.
That seems to be a different specification now - you are now saying
that they should *not* be treated like whitespace.
So I'm still at a loss what the PEP should say about Cf characters.
> allowing me to use greek symbols in equations, but NOT allowing me
> to use hebrew ones, is just wrong. either you allow latin-only, or you
> allow every character supported by unicode. there's no justification
> for compromises, as the motivation of the PEP is localization, and
> you can't discriminate one locale from another.
But the PEP does not do that! It allows to use both Hebrew and Greek
letters in identifiers.
> it's getting complicated. that's why i was against it from the very start.
> i mean, i wouldn't mind having it, but being familiar with RTL languages,
> i know how complex it is.
Sure. If there isn't a clearly "correct" specification, the conservative
approach requested by several people here would require to reject Cf
characters - they are not letters, so they are *not* similar to Greek
letters (not sure whether you suggested that they are).
Then, if later there is a demonstrated need for formatting characters,
they still could be added.
More information about the Python-3000