This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients barry, brett.cannon, eric.smith, eric.snow, jaraco
Date 2012-04-25.12:47:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335358061.08.0.582800314719.issue14660@psf.upfronthosting.co.za>
In-reply-to
Content
I'd really prefer something like:

  return load_ns_module(fullname, namespace_path)

The point being that load_module() as defined in PEP 302 will never be called on NamespaceLoader. The loader only needs to exist to set module.__loader__, and load_module() would never be called from there.

So we could pass in a callable named load_ns_module to PathFinder.

Then NamespaceLoader's load_module function could be named load_ns_module, made a class or static method.

I think I'll experiment with this.
History
Date User Action Args
2012-04-25 12:47:41eric.smithsetrecipients: + eric.smith, barry, brett.cannon, jaraco, eric.snow
2012-04-25 12:47:41eric.smithsetmessageid: <1335358061.08.0.582800314719.issue14660@psf.upfronthosting.co.za>
2012-04-25 12:47:37eric.smithlinkissue14660 messages
2012-04-25 12:47:37eric.smithcreate