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