Re: PEP 420: Implicit Namespace Packages

Barry Warsaw <[email protected]>
Newsgroups gmane.comp.python.import
Organization Damn Crazy Followers of the Horn
Message-ID <[email protected]>
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

_______________________________________________
Import-SIG mailing list
[email protected]
http://mail.python.org/mailman/listinfo/import-sig
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJPpDObAAoJEBJutWOnSwa/8e0QAIBldYVcle0xrQdY4iHOPVWA
RT2oR16D1Y/UJ2Sisk2CIUpJAkmHU1AMnYPJ+NiBUbqYBz9pFdJVGt+ANgYQUkyZ
w+p8HZHsG7AYCoPyN5BumBGRGYYu3gCuIuxxu57VKUNWqEVh9lDwnyEhuOK+wSXG
as+KqszqJ74qFogNypGnBc88zuL6YYRYpJuPnHwULuCBLSAKPATDJihZ/SPWeNdQ
0kujNRWAJp5R3S8tpzIdjJsoo16Yan2i37epEmY++HGGMDfnpJx+5RWuzvl+8Rh+
g8QWyJqzCASqz76Ez3KYTTRV4ErkyUxhj5RKbJxZQLSi/kPhXT0l66jNLct0jCB+
xgGl79CWpmErTdEnGbMS0x03VbUYK9dmt5SH9BZR+0K345R/1i24c9VxgtSJof+v
d8FyOB7BNFGwWwZ8djEcH+JgTslx+R6223oUtq16OL1s8PtNeVQNAgIb1EFp2I4i
VbzZ8sACru1TMpvJdWFvHR/ezkFe6aTNjAdYoHB7fZlsZ4eDyv7paAzzOZu8+x18
M9mJ8wVIbvUrJDXr2meiSdKbceDHgYSFuVuW3E9I6IF2UMy/QlXMQt3loV2+okFN
+ZYnNiH9jAYH+mPodIeijpyT6X9f9Cbkm2FHq0QUrDBHAYZZtrpqsF7I3gq8xAJo
RHPQ4oTYpOQwJah/oBq6
=Ccj2
-----END PGP SIGNATURE-----
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.