#
#   Test __cocall__ method of bound method
#

class C:

	def __init__(self, a):
		self.a = a

	codef m(self, *args):
		print("m:", args)
		yield self.a

c = C(42)
b = c.m
g = b.__cocall__("eggs")
print(next(g))
