This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Please document pyc format guarantees
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: nnorwitz, piman
Priority: normal Keywords:

Created on 2006-01-02 19:27 by piman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg27214 - (view) Author: Joe Wreschnig (piman) Date: 2006-01-02 19:27
There's conventional wisdom that .pyc files are
compatible within a single minor revision of Python,
but I can't find any documentation that says this
explicitly.

This assumption is important to Debian's Python
packaging policy, so if it's true, could it be
documented somewhere (probably the marshal or
compileall module documentation)?

Thanks.
msg27215 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-01-05 05:52
Logged In: YES 
user_id=33168

It is documented here: http://www.python.org/peps/pep-0006.html

Is that sufficient?

It's also effectively documented here:
http://svn.python.org/projects/python/trunk/Python/import.c

That is a list of all magic numbers which denote the python
revision.
msg27216 - (view) Author: Joe Wreschnig (piman) Date: 2006-01-05 06:19
Logged In: YES 
user_id=796

Yes, PEP 6 is great, thank you! Sorry that I forgot to check
there.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42748
2006-01-02 19:27:36pimancreate