Well, I finally ran into a Python Unicode problem, sort of
Marko Rauhamaa
marko at pacujo.net
Sun Jul 3 10:39:00 EDT 2016
Christian Gollwitzer <auriocus at gmx.de>:
> Am 03.07.16 um 13:22 schrieb Marko Rauhamaa:
>> Christian Gollwitzer <auriocus at gmx.de>:
>>> Am 03.07.16 um 13:01 schrieb Marko Rauhamaa:
>>>> Scheme allows *any* characters whatsoever in identifiers.
>>> Parentheses?
>> Yes.
>
> My knowledge of Scheme is rusty. How do you do that?
Moreover, all characters whose Unicode scalar values are greater than
127 and whose Unicode category is Lu, Ll, Lt, Lm, Lo, Mn, Mc, Me, Nd,
Nl, No, Pd, Pc, Po, Sc, Sm, Sk, So, or Co can be used within
identifiers. In addition, any character can be used within an
identifier when specified via an <inline hex escape>. For example,
the identifier H\x65;llo is the same as the identifier Hello, and the
identifier \x3BB; is the same as the identifier λ.
<URL: http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-7.html#node_sec_4.2.4>
Guile doesn't support the R6RS inline hex escape notation. Instead, it
natively supports a notation of its own:
#{foo bar}#
#{what
ever}#
#{4242}#
Or the R7RS notation:
|foo bar|
|\x3BB; is a greek lambda|
|\| is a vertical bar|
<URL: https://www.gnu.org/software/guile/manual/html_node/Symbol-Rea
d-Syntax.html#index-r7rs_002dsymbols>
Marko
More information about the Python-list
mailing list