[Python-Dev] PEP 451 update

Eric Snow ericsnowcurrently at gmail.com
Sun Oct 27 02:38:03 CEST 2013


On Fri, Oct 25, 2013 at 9: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.

The changes are in now, as is an update to the doc patch on
issue18864.  If I missed anything, let me know.  Thanks for the
feedback!

-eric


More information about the Python-Dev mailing list