circuitpython/tests/unicode/unicode_id.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
435 B
Python
Raw Normal View History

# test unicode in identifiers
# comment
# αβγδϵφζ
# global identifiers
α = 1
αβγ = 2
= 3
βb = 4
print(α, αβγ, , βb)
2023-02-01 03:08:41 -05:00
# function, argument, local identifiers
def α(β, γ):
δ = β + γ
print(β, γ, δ)
2021-03-15 09:57:36 -04:00
α(1, 2)
2023-02-01 03:08:41 -05:00
# class, method identifiers
class φ:
def __init__(self):
pass
2021-03-15 09:57:36 -04:00
def δ(self, ϵ):
print(ϵ)
2021-03-15 09:57:36 -04:00
zζzζz = φ()
if hasattr(zζzζz, "δ"):
zζzζz.δ(ϵ=123)