diff options
Diffstat (limited to 'test/input/func_e0214.py')
-rw-r--r-- | test/input/func_e0214.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/input/func_e0214.py b/test/input/func_e0214.py new file mode 100644 index 000000000..8a4ad323c --- /dev/null +++ b/test/input/func_e0214.py @@ -0,0 +1,18 @@ +"""mcs test""" + +__revision__ = 1 + +class MetaClass(type): + """a very intersting metaclass""" + def __new__(mcs, name, bases, cdict): + print mcs, name, bases, cdict + return type.__new__(mcs, name, bases, cdict) + + def whatever(self): + """should have mcs has first arg""" + print self + + def whatever_really(hop): + """could have anything has first arg""" + print hop + whatever_really = staticmethod(whatever_really) |