Re: Round 2 for "A ModuleSpec Type for the Import System"

Eric Snow <[email protected]>
Newsgroups gmane.comp.python.import
Message-ID <CALFfu7CLwzFfJsqT3OhxiWn7q040LZa82LvR+6-w0a+9QyAxjQ@mail.gmail.com>
On Aug 28, 2013 3:26 AM, "Nick Coghlan" <[email protected]> wrote:
> I realised that if we're going to allow mutating the spec in create,
we're going to have to promise not to reuse them across load calls. So
loaders can be shared, but specs can't.

The latest version of the PEP already specifies that each module will have
its own copy, even if the spec is otherwise the same.  Perhaps it should
also make clear that loading_info should not be shared between specs.  It
wouldn't hurt to also say something about allowing only one call to load()
or something along those lines.

-eric

_______________________________________________
Import-SIG mailing list
[email protected]
http://mail.python.org/mailman/listinfo/import-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.