2006-11-23 14:38:15 +00:00
|
|
|
# pylint: disable-msg=R0903,W0212,W0403,W0406
|
2006-04-26 10:48:09 +00:00
|
|
|
"""test for call to __init__ from a non ancestor class
|
|
|
|
"""
|
|
|
|
|
|
|
|
__revision__ = '$Id: func_w0233.py,v 1.2 2004-09-29 08:35:13 syt Exp $'
|
|
|
|
|
|
|
|
class AAAA:
|
|
|
|
"""ancestor 1"""
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
print 'init', self
|
2006-11-23 14:38:15 +00:00
|
|
|
BBBBMixin.__init__(self)
|
2006-04-26 10:48:09 +00:00
|
|
|
|
2006-11-23 14:38:15 +00:00
|
|
|
class BBBBMixin:
|
2006-04-26 10:48:09 +00:00
|
|
|
"""ancestor 2"""
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
print 'init', self
|
2006-11-23 14:38:15 +00:00
|
|
|
|
|
|
|
import nonexistant
|
|
|
|
import func_w0233
|
|
|
|
class CCC(BBBBMixin, func_w0233.AAAA, func_w0233.BBBB, nonexistant.AClass):
|
|
|
|
"""mix different things, some inferable some not"""
|
|
|
|
def __init__(self):
|
|
|
|
BBBBMixin.__init__(self)
|
|
|
|
func_w0233.AAAA.__init__(self)
|
|
|
|
func_w0233.BBBB.__init__(self)
|
|
|
|
nonexistant.AClass.__init__(self)
|