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/2014-April/134425.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? [Python-Dev] Multiple inheritance from builtin (C) types [still] supported in Python3?Guido van Rossum guido at python.org
Wed Apr 30 16:30:29 CEST 2014
It would be a disaster if the base class's slot descriptors would be broken
by that though, so the implementation of slot descriptors would have to
become more complicated. (It's worth understanding how __slots__ works. the
interpreter first finds the slot on the class and then calls its __get__
method to retrieve the actual value from the instance. Each slot
descriptor, in the current implementation, knows the offset of its slot
within the instance.


On Tue, Apr 29, 2014 at 11:48 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:

> Paul Sokolovsky wrote:
>
>  Well, here it itches to ask if C++-like offsetting of subclass to base
>> class "this" pointer was considered,
>>
>
> I suppose in theory it would be possible to build a new
> set of __slot__ descriptors for the subclass. It mightn't
> even be all that difficult. My guess would be that it
> wasn't considered worth the effort, if it was considered
> at all.
>
> --
> Greg
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> guido%40python.org
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140430/0dd80954/attachment.html>
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