mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
GH-98522: Add version number to code objects. (GH-98525)
* Add version number to code object for better versioning of functions. * Improves specialization for closures and list comprehensions.
This commit is contained in:
parent
3c5355496b
commit
fb713b2183
10 changed files with 23 additions and 4 deletions
|
|
@ -14,6 +14,8 @@
|
|||
#include "Python/frozen_modules/importlib._bootstrap_external.h"
|
||||
/* End includes */
|
||||
|
||||
uint32_t _Py_next_func_version = 1;
|
||||
|
||||
/* Empty initializer for deepfrozen modules */
|
||||
int _Py_Deepfreeze_Init(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
Keep this file in sync with Programs/_freeze_module.py.
|
||||
*/
|
||||
|
||||
|
||||
#include <Python.h>
|
||||
#include <marshal.h>
|
||||
#include "pycore_fileutils.h" // _Py_stat_struct
|
||||
|
|
@ -22,6 +23,8 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
uint32_t _Py_next_func_version = 1;
|
||||
|
||||
/* Empty initializer for deepfrozen modules */
|
||||
int _Py_Deepfreeze_Init(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue