diff options
Diffstat (limited to 'pypers/pep318/x.py')
-rwxr-xr-x | pypers/pep318/x.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pypers/pep318/x.py b/pypers/pep318/x.py new file mode 100755 index 0000000..fb6f93d --- /dev/null +++ b/pypers/pep318/x.py @@ -0,0 +1,17 @@ +"[Decorated]" + +import decorators,customdec; decorators.decorated() + +class desc(object): + def __get__(self,obj,cls): + print obj,cls + +class C(object): + def f(cls): + "[classmethod]" + print cls + g=desc() + + +C.g +C().g |