mirror of
https://github.com/github/codeql.git
synced 2026-03-04 22:56:47 +01:00
27 lines
319 B
Python
27 lines
319 B
Python
|
|
|
|
def foo(x = []):
|
|
return x.append("x")
|
|
|
|
def bar(x = []):
|
|
return len(x)
|
|
|
|
foo()
|
|
bar()
|
|
|
|
class Owner(object):
|
|
|
|
@classmethod
|
|
def cm(cls, arg):
|
|
return cls
|
|
|
|
@classmethod
|
|
def cm2(cls, arg):
|
|
return arg
|
|
|
|
#Normal method
|
|
def m(self):
|
|
a = self.cm(0)
|
|
return a.cm2(1)
|
|
|