[Python-ideas] PEP: Shorthand Symbol for "self"

Jim Jewett jimjjewett at gmail.com
Wed Aug 27 20:19:55 CEST 2008

On Mon, Aug 25, 2008 at 11:46 AM, Terry Reedy > 3.0 uses the standard
Unicode syntax for identifiers:
> "
> identifier  ::=  id_start id_continue*
> id_start    ::=  <all characters in general categories Lu, Ll, Lt, Lm, Lo,
> Nl, the underscore, and characters with the Other_ID_Start property>

Are you sure?

IIRC, the unicode consortion themselves recommend the xid_start and
xid_continue properties instead.

(One of the quirks of unicode is that it will gladly shoot itself in
the foot to support backwards compatibility, and this is one of those
cases.  Characters that really shouldn't be used for identifiers got
mixed in by mistake.  There are even more restrictive proposals for
security, but those were deemed excessive.)


More information about the Python-ideas mailing list