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/2005-February/051721.html below:

[Python-Dev] Requesting that a class be a new-style class

[Python-Dev] Requesting that a class be a new-style class [Python-Dev] Requesting that a class be a new-style classPhillip J. Eby pje at telecommunity.com
Sun Feb 20 18:15:44 CET 2005
At 09:15 AM 2/20/05 +0100, Alex Martelli wrote:
>This is because types.ClassType turns somersaults to enable this: in this 
>latter construct, Python's mechanisms determine ClassType as the metaclass 
>(it's the metaclass of the first base class), but then ClassType in turn 
>sniffs around for another metaclass to delegate to, among the supplied 
>bases, and having found one washes its hands of the whole business;-).

To be pedantic, the actual algorithm in 2.2+ has nothing to do with the 
first base class; that's the pre-2.2 algorithm.  The 2.2 algorithm looks 
for the most-derived metaclass of the base classes, and simply ignores 
classic bases altogether.

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