import sys

counter = 0

def pr(*args):
	global counter
	counter += 1
	print("pr has been called %d time%s already" % (counter, counter > 1 and "s" or ""))

sys.settrace(pr)

min(10,5)
max(10,5)
min(10,5)
max(10,5)

def decor(func): 
	return func

l = lambda x,y: 5

@decor
def func():
	print("func called")

func()

print("before class definition")

class A():
	def __init__(self):
		print("A init called")
		
	def m(self):
		print("A method called")
		
class B():
	def m(self):
		print("B method called")
	
	def __repr__(self):
		return "<__main__.B object at " + hex(id(a) + 128) + ">"

print("after class definition")

a = A()
print("instance of A created")
a.m()

b = B()
print("instance of B created")
b.m()

print("repr?")

print(a)
print(b)