2015-06-09 11:58:07 +01:00
|
|
|
|
# test unicode in identifiers
|
|
|
|
|
|
|
|
|
|
# comment
|
|
|
|
|
# αβγδϵφζ
|
|
|
|
|
|
|
|
|
|
# global identifiers
|
|
|
|
|
α = 1
|
|
|
|
|
αβγ = 2
|
|
|
|
|
bβ = 3
|
|
|
|
|
βb = 4
|
|
|
|
|
print(α, αβγ, bβ, βb)
|
|
|
|
|
|
2023-02-02 00:51:48 +00:00
|
|
|
|
|
2015-06-09 11:58:07 +01:00
|
|
|
|
# function, argument, local identifiers
|
|
|
|
|
def α(β, γ):
|
|
|
|
|
δ = β + γ
|
|
|
|
|
print(β, γ, δ)
|
2020-03-23 02:26:08 +00:00
|
|
|
|
|
|
|
|
|
|
2015-06-09 11:58:07 +01:00
|
|
|
|
α(1, 2)
|
|
|
|
|
|
2023-02-02 00:51:48 +00:00
|
|
|
|
|
2015-06-09 11:58:07 +01:00
|
|
|
|
# class, method identifiers
|
|
|
|
|
class φ:
|
|
|
|
|
def __init__(self):
|
|
|
|
|
pass
|
2020-03-23 02:26:08 +00:00
|
|
|
|
|
2015-06-09 11:58:07 +01:00
|
|
|
|
def δ(self, ϵ):
|
|
|
|
|
print(ϵ)
|
2020-03-23 02:26:08 +00:00
|
|
|
|
|
|
|
|
|
|
2015-06-09 11:58:07 +01:00
|
|
|
|
zζzζz = φ()
|
|
|
|
|
if hasattr(zζzζz, "δ"):
|
|
|
|
|
zζzζz.δ(ϵ=123)
|