summaryrefslogtreecommitdiff
path: root/pypers/pep318/pro2.py
diff options
context:
space:
mode:
Diffstat (limited to 'pypers/pep318/pro2.py')
-rwxr-xr-xpypers/pep318/pro2.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/pypers/pep318/pro2.py b/pypers/pep318/pro2.py
new file mode 100755
index 0000000..58cffb4
--- /dev/null
+++ b/pypers/pep318/pro2.py
@@ -0,0 +1,24 @@
+from customdec import *
+
+def f(self): pass
+
+tracedf=tracedmethod(f)
+tracedtracedf=decorated(tracedmethod(f))
+
+class C: pass
+
+c=C()
+
+C.f=tracedtracedf
+
+c.f()
+
+class Chatty(ClassDecorator):
+ def __init__(cls,*args):
+ print 'Chatty.__init__'
+
+class C:pass
+
+
+
+C=Chatty(Chatty(C))