Victor Stinner
68266c1f01
gh-141341: Rename COMPILER macro to _Py_COMPILER on Windows ( #141342 )
2025-11-10 15:50:51 +01:00
AN Long
bea0d3d12b
gh-140826: Update winreg's docstring (GH-141050)
2025-11-06 17:33:30 +02:00
AN Long
11fc411f98
gh-140916: Remove unused codes in winreg.c ( #140934 )
2025-11-05 22:49:45 +01:00
Petr Viktorin
589a03a8ce
gh-140550: Initial implementation of PEP 793 – PyModExport (GH-140556)
...
Co-authored-by: Victor Stinner <vstinner@python.org >
Co-authored-by: Kumar Aditya <kumaraditya@python.org >
2025-11-05 12:31:42 +01:00
AN Long
248ce9fa8c
gh-140826: Compare winreg.HKEYType by the internal handle value (GH-140843)
2025-11-03 10:14:22 +02:00
Serhiy Storchaka
dcf3cc5796
gh-81313: Add the math.integer module (PEP-791) (GH-133909)
2025-10-31 16:13:43 +02:00
Steve Dower
c46265d94a
gh-139810: Always generate -dev tags for PyManager packages (GH-139814)
2025-10-13 20:43:14 +01:00
Stan Ulbrych
2e8f64c931
gh-71648: Optimize PNG files (GH-138842)
...
* Only keep > 1 kb savings
2025-09-12 20:13:05 +00:00
Petr Viktorin
097c563e7b
gh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h (GH-138545)
...
Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h
This allows removing #include "modsupport.h" from python_ver_rc.h,
which allows modsupport.h to use common helpers from Python.h --
specifically, `_Py_PACK_VERSION` for defining limited API.
2025-09-08 12:02:13 +02:00
Petr Viktorin
0c74fc8af0
gh-137210: Add a struct, slot & function for checking an extension's ABI (GH-137212)
...
Co-authored-by: Steve Dower <steve.dower@microsoft.com >
2025-09-05 16:23:18 +02:00
AN Long
b3e785c76c
gh-138314: Add winreg.DeleteTree (GH-138388)
2025-09-02 17:04:57 +00:00
Peter Bierma
4f6ecd10c2
gh-138342: Use a common utility for visiting an object's type (GH-138343)
...
Add `_PyObject_VisitType` in place of `tp_traverse` functions that only visit the object's type.
2025-09-01 16:20:33 +00:00
Adam Turner
918e3ba6c0
GH-137623: Use an AC decorator for docstring line length enforcement ( #137690 )
2025-08-18 18:29:00 +01:00
AN Long
d53199101c
gh-136586: Improve winreg's module docstring (GH-136587)
2025-07-28 20:19:01 +01:00
Serhiy Storchaka
e18829a8ad
gh-132629: Deprecate accepting out-of-range values for unsigned integers in PyArg_Parse (GH-132630)
...
For unsigned integer formats in the PyArg_Parse* functions,
accepting Python integers with value that is larger than
the maximal value the corresponding C type or less than
the minimal value for the corresponding signed integer type
is now deprecated.
2025-07-13 12:44:54 +03:00
Steve Dower
afc5ab6cce
gh-135455: Fix version and architecture detection in PC/layout script. (GH-135461)
2025-06-13 16:04:43 +01:00
Serhiy Storchaka
bac3fcba5b
gh-108512: Add and use new replacements for PySys_GetObject() (GH-111035)
...
Add functions PySys_GetAttr(), PySys_GetAttrString(),
PySys_GetOptionalAttr() and PySys_GetOptionalAttrString().
2025-05-28 20:11:09 +03:00
Chris Eibl
e4fbfb1288
GH-130727: Avoid race condition in _wmimodule by copying shared data (GH-134313)
2025-05-20 22:21:25 +01:00
Steve Dower
986c367028
gh-133779: Revert Windows generation of pyconfig.h and go back to a static header. (GH-133966)
...
Extension builders must specify Py_GIL_DISABLED if they want to link to the free-threaded builds.
This was usually the case already, but this change guarantees it in all circumstances.
2025-05-19 11:35:22 +01:00
AN Long
7a504b3d5d
gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001)
2025-05-16 00:00:06 +01:00
Max Bachmann
74c4e35ff1
Let PyUnicode_FromWideChar calculate the input length (GH-134045)
2025-05-15 11:56:50 +00:00
Xuehai Pan
f0f93ba5fa
gh-131942: Use the Python-specific Py_DEBUG macro rather than _DEBUG in Windows-related C code (GH-131944)
2025-05-08 15:01:25 +00:00
Zachary Ware
74e2acddf6
Test fixes for 3.15 (GH-133599)
...
Followup to 942673ed19 (GH-133588)
* Update configure for Python 3.15
* Update magic number for 3.15
* Remove deprecated 'check_home' argument from sysconfig.is_python_build
* Add warningignore entries for Modules/_sqlite/clinic/connection.c.h
* Work around c-analyzer complaints about _testclinic deprecation tests
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
2025-05-07 14:50:39 -05:00
Hugo van Kemenade
9748fb3867
Python 3.15.0a0
2025-05-07 18:47:42 +03:00
Steve Dower
ed039b801d
gh-132930: Include IDLE path in registry for PyManager packages (GH-133246)
2025-05-01 14:41:17 +01:00
Steve Dower
ae37f3d3c0
gh-132930: Fixes PEP 514 registration for PyManager packages on x64 (GH-133154)
2025-04-29 16:20:41 +01:00
Adam Turner
208d06fd51
gh-132930: Fix use of ALIAS_WPREFIX in pymanager builds (GH-133120)
2025-04-29 08:53:43 +00:00
Adam Turner
4d54e9cdf6
GH-132930: Display 'free-threaded' in pymanager builds (GH-133119)
2025-04-29 09:28:04 +01:00
Steve Dower
3940e1f873
gh-132930: Improve the names of IDLE and PyDoc shortcuts (GH-133091)
2025-04-28 19:09:20 +01:00
Steve Dower
e20ca6d1b0
gh-132930: Implement PEP 773 (GH-132931)
...
This change to the core CPython repo:
* Adds PyManager support to PC/layout
* Adds a warning message to the legacy py.exe if subcommands are invoked
* Add deprecation message to traditional installer
* Updates using/windows docs
2025-04-28 13:57:47 +01:00
Bénédikt Tran
96bc1721d2
gh-111178: fix incorrect function signatures for Windows builds ( #133072 )
2025-04-28 13:05:39 +02:00
Steve Dower
09b624b80f
gh-132639: Adds PyLong_AsNativeBytes, PyLong_FromNativeBytes and PyLong_FromUnsignedNativeBytes to the limited API (GH-132640)
2025-04-21 15:59:03 +01:00
Steve Dower
b87189deae
gh-132649: Allow passing --include-tcltk to PC\layout on Windows ARM64 (GH-132650)
2025-04-17 20:14:00 +01:00
Adam Turner
231a50fa9a
gh-109599: Expose CapsuleType via the _types module ( #131969 )
2025-04-04 23:37:41 +01:00
Bénédikt Tran
0a97427ee5
gh-99108: Implement HACL* HMAC ( #130157 )
...
A new extension module, `_hmac`, now exposes the HACL* HMAC (formally verified) implementation.
The HACL* implementation is used as a fallback implementation when the OpenSSL implementation of HMAC
is not available or disabled. For now, only named hash algorithms are recognized and SIMD support provided
by HACL* for the BLAKE2 hash functions is not yet used.
2025-04-04 19:04:00 +02:00
Chris Eibl
7cbcb6efd9
GH-131296: Fix parenthesis warnings on Windows-specific code (GH-131905)
2025-03-31 15:54:30 +01:00
Michael Droettboom
8614f86b71
gh-131525: Cache the result of tuple_hash ( #131529 )
...
* gh-131525: Cache the result of tuple_hash
* Fix debug builds
* Add blurb
* Fix formatting
* Pre-compute empty tuple singleton
* Mostly set the cache within tuple_alloc
* Fixes for TSAN
* Pre-compute empty tuple singleton
* Fix for 32-bit platforms
* Assert that op != NULL in _PyTuple_RESET_HASH_CACHE
* Use FT_ATOMIC_STORE_SSIZE_RELAXED macro
* Update Include/internal/pycore_tuple.h
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
* Fix alignment
* atomic load
* Update Objects/tupleobject.c
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com >
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com >
2025-03-27 09:57:06 -04:00
Victor Stinner
9ef9d687ff
gh-131712: Build _suggestions extension on Windows ( #131759 )
...
Add a test checking that the '_suggestions' extension is available.
2025-03-27 09:53:39 +01:00
Chris Eibl
a04c0a9658
GH-131296: Remove unused variable from _wmimodule.cpp (GH-131587)
2025-03-24 14:57:07 +00:00
AN Long
00a9844888
gh-131453: Add additional constants to winsound module (GH-131454)
2025-03-20 16:35:52 +00:00
Victor Stinner
486d537065
Fix Windows build warnings ( #131487 )
...
Fix the following warnings:
* Modules\_io\fileio.c(1296,13): unused variable 'self'
* Modules\_io\winconsoleio.c(334,9): unused variable 'fd_is_own'
* Modules\faulthandler.c(409,11): unused variable 'flags'
* Modules\posixmodule.c(5699,9): unused variable 'pathError'
* PC\winreg.c(2077,5): suggest braces around initialization of
subobject
* PC\winreg.c(34,13): unused variable 'errNotAHandle'
* Python\fileutils.c(132,12): result of comparison of constant
1114111 with expression of type 'wchar_t' (aka 'unsigned short') is
always false
* Python\fileutils.c(58,21): unused variable 'INCOMPLETE_CHARACTER'
* Python\sysmodule.c(2534,21): unused variable 'perf_map_state'
2025-03-20 12:03:20 +01:00
Steve Dower
63a638c43f
gh-91349: Replace zlib with zlib-ng in Windows build (GH-131438)
2025-03-19 19:03:25 +00:00
Chris Eibl
ef4fe70785
GH-131291: Suppress clang-specific warning in python_uwp.cpp (GH-131292)
2025-03-17 16:22:25 +00:00
AN Long
bf4c1bf344
gh-131327: Document winsound.SND_APPLICATION ( #131328 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
2025-03-16 16:27:24 +01:00
Chris Eibl
e82c2ca2a5
GH-131296: fix clang-cl warnings on Windows in pyshellext.cpp (GH-131300)
...
fix unused warnings in pyshellext.cpp
2025-03-15 18:55:00 +00:00
Chris Eibl
36ef3bfe39
gh-131020: py.exe launcher does not correctly detect a BOM when searching for the shebang (GH-131021)
2025-03-10 17:59:23 +00:00
Jean-Christophe Fillion-Robin
c3487c941d
gh-82909: Update PC/pyconfig.h to allow disabling pragma based auto-linking (GH-19740)
...
Define Py_NO_LINK_LIB to build extension disabling pragma based auto-linking. This is relevant when using build-system generator (e.g CMake) where the linking is explicitly handled
2025-03-10 17:40:17 +00:00
Erlend E. Aasland
537296cdcd
gh-111178: Generate correct signature for most self converters ( #128447 )
2025-01-20 12:40:18 +01:00
Victor Stinner
81159fce36
gh-59705: Make PYTHREAD_NAME_MAXLEN macro private ( #128945 )
...
Rename PYTHREAD_NAME_MAXLEN to _PYTHREAD_NAME_MAXLEN.
2025-01-18 15:10:29 +00:00
Victor Stinner
d7f703d54d
gh-59705: Implement _thread.set_name() on Windows ( #128675 )
...
Implement set_name() with SetThreadDescription() and _get_name() with
GetThreadDescription(). If SetThreadDescription() or
GetThreadDescription() is not available in kernelbase.dll, delete the
method when the _thread module is imported.
Truncate the thread name to 32766 characters.
Co-authored-by: Eryk Sun <eryksun@gmail.com >
2025-01-17 14:55:43 +01:00