[Import-SIG] PEP 420: Implicit Namespace Packages

PJ Eby pje at telecommunity.com
Thu May 3 18:11:00 CEST 2012

On Thu, May 3, 2012 at 2:23 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> Standardising on a pattern also opens up the possibility of doing
> something meaningful with it in get_data() later. One of the
> guarantees of PEP 302 if that you should be able to do this:
>  data_ref = os.path.join(__file__, relative_ref)
>  data =  __loader__.get_data(data_ref)

Um, namespace package modules shouldn't have a __loader__ either, should
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/import-sig/attachments/20120503/19dfcf40/attachment.html>

More information about the Import-SIG mailing list