A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-July/090656.html below:

[Python-Dev] 2.6 object.__init__ & deling __new__

[Python-Dev] 2.6 object.__init__ & deling __new__ [Python-Dev] 2.6 object.__init__ & deling __new__P.J. Eby pje at telecommunity.com
Wed Jul 15 17:58:42 CEST 2009
At 07:29 PM 7/15/2009 +1200, Greg Ewing wrote:
>P.J. Eby wrote:
>
>>In effect, 2.6 forces you to have a common known base class *other* 
>>than 'object' in order to write co-operative classes.  :-(
>
>You have to do that anyway if you want to make cooperative
>calls to any method *other* that __init__.

I haven't found that to be an issue, actually, since there's usually 
a base where the "bottom" version of those methods live, and anything 
implementing those methods is going to inherit it via the mixin.  The 
problem is that for at least __init__ and __new__, 'object' *is* the 
"bottom" -- and there may be more than one family of mixins that need 
to call it.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4