A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-April/134366.html below:

[Python-Dev] Multiple inheritance from builtin (C) types [still] supported in Python3?

[Python-Dev] Multiple inheritance from builtin (C) types [still] supported in Python3?Paul Sokolovsky pmiscml at gmail.com
Mon Apr 28 20:42:02 CEST 2014
Hello,

On Mon, 28 Apr 2014 20:24:58 +0200
Antoine Pitrou <solipsis at pitrou.net> wrote:

> On Mon, 28 Apr 2014 20:45:48 +0300
> Paul Sokolovsky <pmiscml at gmail.com> wrote:
> > 
> > So, is that it, or disjoint native types are supported as bases
> > somehow? Also, would someone know if a class-subclass case happens
> > for example in stdlib?
> 
> Well, for instance this trivial example works:
> 
> >>> class C(list, object): pass
> ... 
> >>> 

Well, it's easy to treat "object" class as a special-case, "null"
class. So, let's re-formulate questions above with "where such
native base classes are not 'object'".

> 
> Basically, if two classes have compatible layouts, you can inherit
> from both at once.

How is "compatible layout" defined? Or "layout" for that matter at
all?

> 
> Regards
> 
> Antoine.


-- 
Best regards,
 Paul                          mailto:pmiscml at gmail.com
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