Translating keywords

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Apr 8 02:32:33 EDT 2008


En Tue, 08 Apr 2008 03:03:13 -0300, Torsten Bronger  
<bronger at physik.rwth-aachen.de> escribió:

> Gabriel Genellina writes:
>>
>> Python 3 allows for unicode identifiers, but I don'k know any
>> plans for using unicode keywords too. Looks funny:
>>
>> ∀ x ∈ values:
>>   if x ∉ forbidden ∧ x ≠ y:
>>     print(x, Γ(x), √(x))
>> print(∑(values))
>> near = λ a,b,ε=0.01: a-ε ≤ b ≤ a+ε
>
> As far as I've understood it, only letters are allowed in
> identifiers rather than arbitrary Unicode code points.

Yes, this was of course a futuristic exercise of imagination, even  
replacing keywords with some symbols. Anyway the only non-alphabetic  
identifier is √; Σ could replace ∑, and all others are allowed letters in  
Python 3.

-- 
Gabriel Genellina




More information about the Python-list mailing list