FEEDBACK WANTED: Type/class unification

Jiba a11w at SoftHome.net
Fri Aug 10 17:41:53 CEST 2001


I've just read http://www.python.org/2.2/descrintro.html :

> There's one very specific (and fortunately uncommon) bug that used to go undetected, but which is now reported as an error: 

class A:
	def foo(self): pass

class B(A): pass

class C(A):
	def foo(self):
		B.foo(self)

What about using wrappers ? Say, i've an instance o of class O. I can
call :

O.method(o)

but what occurs if o is a wrapper to oo, an instance of O (Like a
Bastion-wrapper) ?

Obviously, if o is a wrapper, we can call o.method(), but...
By the way, it's interesting to notice that, for wrapper, o.method() is
not the same think than O.method(o)...

Jiba





More information about the Python-list mailing list