]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122188: Move magic number to its own file (#122243)
authorMichael Droettboom <mdboom@gmail.com>
Tue, 30 Jul 2024 19:31:05 +0000 (15:31 -0400)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2024 19:31:05 +0000 (15:31 -0400)
commitaf0a00f022d0fb8f1edb4abdda1bc6b915f0448d
treeb31a38a60fccae419c4ed3b38a18795bb9bed0a0
parent2b163aa9e796b312bb0549d49145d26e4904768e
gh-122188: Move magic number to its own file (#122243)

* gh-122188: Move magic number to its own file

* Add versionadded directive

* Do work in C

* Integrate launcher.c

* Make _pyc_magic_number private

* Remove metadata

* Move sys.implementation -> _imp

* Modernize comment

* Move _RAW_MAGIC_NUMBER to the C side as well

* _pyc_magic_number -> pyc_magic_number

* Remove unused import

* Update docs

* Apply suggestions from code review

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* Fix typo in tests

---------

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Include/internal/pycore_magic_number.h [new file with mode: 0644]
InternalDocs/compiler.md
Lib/importlib/_bootstrap_external.py
Lib/importlib/util.py
Lib/test/test_import/__init__.py
Lib/zipimport.py
Python/import.c