#! /usr/local/bin/python3 class Foo: xx = 100 def xxx(x=xx): return x v = Foo.xxx() print(v)