mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
46 lines
629 B
Python
46 lines
629 B
Python
def deco(fun):
|
|
return fun # valid
|
|
|
|
class FooClass:
|
|
staticField = deco
|
|
globs = globals()
|
|
def __init__(self):
|
|
self.instanceField = 2
|
|
|
|
@deco
|
|
def fooFunction(fooParam1, fooParam2=0) :
|
|
notAField = 3
|
|
pass
|
|
|
|
def topLevelFunction(tlfp1, tlfp2) :
|
|
pass
|
|
|
|
top1 = 1
|
|
if True:
|
|
top2 = 2
|
|
|
|
class BarClass(object):
|
|
__value = 0
|
|
|
|
def __get(self):
|
|
return self.__value
|
|
|
|
def __set(self, val):
|
|
self.__value = val
|
|
|
|
value = property(__get)
|
|
setvalue = property(fset=__set)
|
|
|
|
class BazClass(object):
|
|
__x = 1
|
|
|
|
@property
|
|
def x(self):
|
|
return self.__x
|
|
|
|
@x.setter
|
|
def x(self, v):
|
|
self.__x = v
|
|
|
|
|