initial creation
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
def void(thing_being_decorated):
|
||||
return 42 # <1>
|
||||
|
||||
name = "Guido"
|
||||
x = void(name)
|
||||
|
||||
@void # <2>
|
||||
def hello():
|
||||
print("Hello, world")
|
||||
|
||||
@void
|
||||
def howdy():
|
||||
print("Howdy, world")
|
||||
|
||||
print(hello, type(hello)) # <3>
|
||||
print(howdy, type(howdy)) # <3>
|
||||
print(x, type(x))
|
||||
Reference in New Issue
Block a user