File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ #!coding=utf-8
2+ """
3+ to test pymode motions, please put cursor on each of the lines
4+ and press "vaM" for selecting methods or
5+ "vaC" for selection class.
6+ """
7+
8+ def a_decorator (func ):
9+ print ("chamando func" )
10+ def wrapped (* args , ** kw ):
11+ return func (* args , ** kw )
12+ print ("Pós func" )
13+ return wrapped
14+
15+ def b_decorator (func ):
16+ print ("second chamando func" )
17+ def wrapped (* args , ** kw ):
18+ return func (* args , ** kw )
19+ print ("second Pós func" )
20+ return wrapped
21+
22+ @b_decorator
23+ @a_decorator
24+ def teste ():
25+ print ("Not Selecting Decorator" )
26+
27+ class Teste :
28+ @a_decorator
29+ @b_decorator
30+ def metodo (self ):
31+ print ("Meu método" )
32+
33+
34+ teste ()
35+
36+ testinho = Teste ()
37+ testinho .metodo ()
You can’t perform that action at this time.
0 commit comments