mirror of
https://github.com/python/cpython.git
synced 2025-10-20 16:33:53 +00:00
23 lines
264 B
Python
23 lines
264 B
Python
![]() |
# line 1
|
||
|
def wrap(foo=None):
|
||
|
def wrapper(func):
|
||
|
return func
|
||
|
return wrapper
|
||
|
|
||
|
# line 7
|
||
|
def replace(func):
|
||
|
def insteadfunc():
|
||
|
print 'hello'
|
||
|
return insteadfunc
|
||
|
|
||
|
# line 13
|
||
|
@wrap()
|
||
|
@wrap(wrap)
|
||
|
def wrapped():
|
||
|
pass
|
||
|
|
||
|
# line 19
|
||
|
@replace
|
||
|
def gone():
|
||
|
pass
|