Re: PEP for the removal of PYO files

Barry Warsaw <[email protected]> Mon, 2 Mar 2015 17:38:42 -0500
Newsgroups gmane.comp.python.import
Organization Damn Crazy Followers of the Horn
Message-ID <[email protected]>
On Feb 28, 2015, at 09:08 PM, Brett Cannon wrote:

>On Sat, Feb 28, 2015 at 11:50 AM Nick Coghlan <[email protected]> wrote:
>> * Can we make "opt-0" implied so normal pyc file names don't change at all?
>
>Sure, but why specifically? EIBTI makes me not want to have some optional
>bit in the file name just make someone's life who didn't use
>cache_from_source() a little easier.

I'd rather like opt-0 to be implied too, just because I think it will be the
common case and it's less clutter, but I could be convinced that for
consistency, opt-0 should be explicit.

Just like with old .pyo files, you'll still have to support *loading* implicit
opt-0 __pycache__ .pyc files.  Even if the bytecode has to be regenerated for
Python 3.5, you can't guarantee what tool will be generating it.  So for
backward compatibility with third party tools, I think you still have to
support loading the old file names for 3.5, but only if the new name doesn't
exist.

Cheers,
-Barry

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

iQIcBAEBCAAGBQJU9OZyAAoJEBJutWOnSwa/0jwP+waiCpnM8zVRGll7MxSpa8ZP
Kr/KDff3aoqu0kcHoEgHx6wID5M/2mkSO6TPu+RsaTazE5mI27OJBwNO7Pl399dI
YkesmBz2WvnXXw+6UGW1crfMXWHxfFoOyAK/7AHVrIeoXe4roPwdLHgCAiKMeOz+
twbcI0fd87EDbtOofZNY0xB7jQ0+AHZ6Qyr3c4zPGKXTDWmo/Qi+sY3XdJ/lRYdK
tVoy99dTwNbQQYgqFo0F9gUvQnTpzzSlFSX2jwlhkLdq3ooqkT+q/pW2Z5dPQ4gX
AiX3dKrdD71Usk8HyDPYwC8QrLHFbNCPX1eiJh+pQmM8sWgMaZkIOmvlUNhck9Ux
XcM1/SANbiaVjYbjBcAFQwWcjvczLMf3Fsc6GRXYcqLI1okDXvBDZGuud+PDqKYe
Lkrb0uSakGZZ+ulgWwJBP9NQx6W1NQ5eg4JALMVs/MMzh3/2PoqBdW1alLhJttJl
S7dJk/HeTrLZWaXrtM+TjZrC/ocwidATn0xbWhpiGn1KD3/n5xEBWTGrHiP5oo9q
6zpeiLDTu5XOlgBHINrYkcEuXpkWjXW9584Rayqiq8qZoZRoI+4oXFZ+n5sTv204
p9PtqypcqpqFB8c6xs9j9CALJzLYtnOCXvq+LS6za3AiIWpXkKfX4L7VTctVk9Gz
KffJ1sQI4adqmExKUd5A
=A+4J
-----END PGP SIGNATURE-----