Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] perplexed by mro

Greg Ewinggreg@cosc.canterbury.ac.nz
Fri, 04 Oct 2002 14:29:27 +1200 (NZST)


Guido:> No, the whole point here is that the most inherited class's MRO> (i.e. z) can insert things in a base class's MRO.It worries me that when I write a super call, I'llnever be sure which method is going to be called,because someone might inherit me and mess withmy mro.But I can see that there are cases where thisbehaviour is desirable. I guess it's okay as longas I have the option of explicitly specifyingthe base class. (You're not going to take thataway, are you?)Greg Ewing, Computer Science Dept, +--------------------------------------+University of Canterbury,   | A citizen of NewZealandCorp, a  |Christchurch, New Zealand   | wholly-owned subsidiary of USA Inc.  |greg@cosc.canterbury.ac.nz   +--------------------------------------+


[8]ページ先頭

©2009-2025 Movatter.jp