Re: PEP 420: Implicit Namespace Packages

PJ Eby <[email protected]>
Newsgroups gmane.comp.python.import
Message-ID <CALeMXf7LzDM2rwezQCek6L2MMCFNLP1zTaMyf_E-L9vkb0bQNw@mail.gmail.com>
On Thu, May 3, 2012 at 2:23 AM, Nick Coghlan <[email protected]> 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
they?

_______________________________________________
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.