[Python-Dev] PEP 451 update (original) (raw)
Brett Cannon brett at python.org
Fri Oct 25 18🔞10 CEST 2013
- Previous message: [Python-Dev] PEP 451 update
- Next message: [Python-Dev] PEP 451 update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 25, 2013 at 11:44 AM, Eric Snow <ericsnowcurrently at gmail.com>wrote:
On Fri, Oct 25, 2013 at 9:40 AM, Brett Cannon <brett at python.org> wrote: > After reading Eric's doc patch, I realized there is one change I want to > make to the current semantics and that's not to backfill package when > set to None. Since import is now going to take over the job of setting > package (along with other attributes), this seems like a slight waste of > effort. It also kills (or at least complicates) having a loader which does > lazy loading since reading the attribute to see if it is None would trigger > the load before leaving the import code, thus killing any postponed loading.
Fine with me. I may have time today to make the outstanding updates to the PEP.
I should also mention this applies to loader as well. Basically everything from http://hg.python.org/cpython/file/eb1edc9e3722/Lib/importlib/_bootstrap.py#l1575on down. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20131025/85dbd605/attachment.html>
- Previous message: [Python-Dev] PEP 451 update
- Next message: [Python-Dev] PEP 451 update
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]