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/2002-December/031337.html below:

[Python-Dev] New Import Hooks PEP, a first draft (and req. for PEP #)

[Python-Dev] New Import Hooks PEP, a first draft (and req. for PEP #) [Python-Dev] New Import Hooks PEP, a first draft (and req. for PEP #)Moore, Paul Paul.Moore@atosorigin.com
Fri, 20 Dec 2002 09:39:07 -0000
Aahz said:
> Any reason we can't require importer objects to be new-style
> classes, which could then use __new__?  (I vaguely recall
> some discussion about this, but it should be documented in
> the PEP.)

Basically, why bother? It just makes writing importers (mildly)
more complex (most people know about __init__ whereas __new__
is ... err ... newer), where the existing proposal works fine.

But you're right, a comment in the PEP would be good.

Paul



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