blob: 18d3422271fe2a3020d7daf8ea656eca3d5630ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class Spam:
def __init__(self, w):
self.weight = w
def serve(self):
print self.weight, u"tons of spam!"
def order():
"""
>>> order()
42 tons of spam!
"""
s = Spam(42)
s.serve()
|