[Import-SIG] PEP 420: Implicit Namespace Packages

Barry Warsaw barry at python.org
Fri May 4 21:52:58 CEST 2012


On May 04, 2012, at 04:16 PM, Paul Moore wrote:

>+1 and I'd also explicitly allow for loaders to assign other "private"
>metadata as well as __file__, if only to avoid the spectre of __file__
>being a base64-encoded pickled object :-)

That's in PEP 420 now too.

>I wonder whether treating repr specially is the best way, though -
>maybe have a loader method "code_location" which is defined as being a
>human-readable, but otherwise unspecified string. The key use case is
>for repr, but it might be useful elsewhere (IDE tooltips or some such
>usage spring to mind).

Maybe, but I think this is the simplest thing possible, which solves an
existing use case. :)

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/import-sig/attachments/20120504/5f770ef1/attachment.pgp>


More information about the Import-SIG mailing list