Steve Dower
de33df27aa
gh-89545: Updates platform module to use new internal _wmi module on Windows to directly query OS properties (GH-96289)
2022-09-07 21:09:20 +01:00
Steve Dower
4114bcc9ef
gh-96577: Fixes buffer overrun in _msi module (GH-96633)
2022-09-07 18:01:35 +01:00
Steve Dower
80a9bd2e94
gh-96559: Fixes Windows launcher handling of defaults using old-style tags, and adds What's New section (GH-96595)
2022-09-05 20:06:30 +01:00
Erlend E. Aasland
f07adf82f3
gh-90928: Improve static initialization of keywords tuple in AC ( #95907 )
2022-08-13 12:09:40 +02:00
Eric Snow
6f6a4e6cc5
gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code (gh-95860)
...
We only statically initialize for core code and builtin modules. Extension modules still create
the tuple at runtime. We'll solve that part of interpreter isolation separately.
This change includes generated code. The non-generated changes are in:
* Tools/clinic/clinic.py
* Python/getargs.c
* Include/cpython/modsupport.h
* Makefile.pre.in (re-generate global strings after running clinic)
* very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c
All other changes are generated code (clinic, global strings).
2022-08-11 15:25:49 -06:00
Steve Dower
73d8ffefe9
gh-95733: Allow installing Store package on older Windows versions (GH-95862)
2022-08-11 00:47:58 +01:00
Petr Viktorin
656dad702d
gh-93274: Expose receiving vectorcall in the Limited API (GH-95717)
2022-08-08 14:12:05 +02:00
Steve Dower
67840edb28
gh-94399: Restore PATH search behaviour of py.exe launcher for '/usr/bin/env' shebang lines (GH-95582)
2022-08-03 22:18:51 +01:00
Derek Kim
ebd660156d
gh-95423: Update winreg.DeleteKeyEx documentation and remove dynamic function load (GH-95521)
2022-08-03 21:55:03 +01:00
Steve Dower
38bb2068fe
gh-95359: Fix py.exe launcher handling of per-user py.ini and command names (GH-95399)
2022-07-28 21:11:17 +01:00
Christian Heimes
8b24d60f1b
gh-95174: WASI: skip missing sockets functions (GH-95179)
2022-07-27 08:19:23 +02:00
Steve Dower
7ac5bb3e6a
gh-95285: py.exe launcher fails with short argv0 (GH-95295)
2022-07-26 21:24:44 +01:00
Christian Heimes
0d35a59ce3
gh-95174: Handle missing dup() and constants in WASI (GH-95229)
...
- check for ``dup()`` libc function
- handle missing ``F_DUPFD`` in ``dup2()`` replacement function
- add workaround for WASI libc bug in MSG_TRUNC
- ESHUTDOWN is missing, use EPIPE instead
- POLLPRI is missing, define as 0 (no-op)
2022-07-26 11:16:51 +02:00
Steve Dower
4b4439daed
gh-90844: Allow virtual environments to correctly launch when they have spaces in the path (GH-94903)
2022-07-16 17:38:36 +01:00
Paul Moore
407ff6556c
gh-94772: Fix off-by-one error in Windows launcher (GH-94779)
2022-07-16 10:02:22 +01:00
Oleg Iarygin
9b50f76fcd
gh-94512: Fix forced arg format in AC-processed winreg (GH-94513)
2022-07-04 14:10:10 +01:00
Oleg Iarygin
21f6b4d783
gh-94512: Fix forced arg format in AC-processed msvcrtmodule (GH-94514)
2022-07-04 14:09:34 +01:00
Oleg Iarygin
9ef50c1d46
Delete DOS-only PC/testpy.py (GH-94419)
2022-06-30 14:17:35 +01:00
Oleg Iarygin
63c772d5ae
Delete unused PC/empty.c (GH-94418)
2022-06-29 15:58:56 +01:00
Victor Stinner
47e35625ff
gh-84623: Remove unused imports ( #94132 )
2022-06-22 19:14:27 +02:00
Christian Heimes
3124d9a5aa
gh-93491: Add support tier detection to configure (GH-93492)
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-06-10 15:25:33 +02:00
Kumar Aditya
cb04a09d2d
GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h ( #93215 )
2022-05-27 13:30:45 +02:00
Wenzel Jakob
5e34b494a0
gh-60074: add new stable API function PyType_FromMetaclass (GH-93012)
...
Added a new stable API function ``PyType_FromMetaclass``, which mirrors
the behavior of ``PyType_FromModuleAndSpec`` except that it takes an
additional metaclass argument. This is, e.g., useful for language
binding tools that need to store additional information in the type
object.
2022-05-27 10:27:39 +02:00
Steve Dower
949dbf97ba
gh-93005: Fixes launcher test when no Python install is available (GH-93007)
2022-05-23 17:04:26 +01:00
Mori Bellamy
9bc616cb4c
gh-91061: also accept pathlib.Path for winsound.PlaySound ( #91489 )
...
Fixes #91061
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-22 18:54:24 -07:00
Steve Dower
73473fdeac
gh-92817: Fix precedence of options to py.exe launcher (GH-92988)
2022-05-19 23:45:41 +01:00
Inada Naoki
f9c9354a7a
gh-92536: PEP 623: Remove wstr and legacy APIs from Unicode (GH-92537)
2022-05-12 14:48:38 +09:00
CAM Gerlach
f1bbcba74f
gh-76773: Update docs mentioning no-longer-supported Windows versions & features (GH-92529)
2022-05-10 09:30:32 +03:00
Dong-hee Na
d284e8b3e3
Update CPyhton configuration for 3.12 ( #92451 )
...
* Update CPyhton configuration for 3.12
* Fix PC/pyconfig.h
* Add expect failure
2022-05-08 13:44:12 +01:00
Victor Stinner
b270b82f11
gh-91320: Argument Clinic uses _PyCFunction_CAST() ( #32210 )
...
Replace "(PyCFunction)(void(*)(void))func" cast with
_PyCFunction_CAST(func).
2022-05-03 20:25:41 +02:00
Ganesh Kathiresan
d414f7ece8
gh-90822: Make `PY_SSIZE_T_MAX` and `PY_SSIZE_T_MIN` constant expression (GH-92071)
2022-05-02 17:23:28 +09:00
Petr Viktorin
6dcbc08c95
gh-91324: List feature macros in the stable ABI manifest, improve tests (GH-32415)
2022-04-28 16:30:28 +02:00
Petr Viktorin
ac4ffd3be2
bpo-47169: Export PyOS_CheckStack on Windows (GH-32414)
2022-04-21 18:03:25 +02:00
Barry Warsaw
7173fd5de0
Remove the ancient Pynche color editor ( #91554 )
...
Closes #91551
2022-04-17 15:38:44 -07:00
Irit Katriel
5d421d7342
gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledException (GH-30531)
2022-04-15 19:57:47 +01:00
Steve Dower
2390b2236d
bpo-47239: Fixes py.exe output when run in a virtual environment. (GH-32364)
2022-04-07 00:09:54 +01:00
Steve Dower
bad86a621a
bpo-46566: Add new py.exe launcher implementation (GH-32062)
2022-03-29 00:21:08 +01:00
Steve Dower
3751b6b030
bpo-47086: Remove .chm from Windows installer and add HTML docs (GH-32038)
2022-03-22 01:08:37 +00:00
Victor Stinner
4657bf7016
bpo-1635741: Fix winreg reference leaks (GH-31560)
...
Clear also the PyHKEY_Type static type at exit.
2022-02-25 12:34:00 +01:00
Steve Dower
3a5afc14e1
bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130)
2022-02-07 16:59:40 +00:00
Steve Dower
9b4e3d94a5
bpo-46629: Update classicAppCompat.sccd for new signing certificate (GH-31111)
2022-02-04 16:11:19 +00:00
Manish Kumar ⛄
ba650af7d6
Optimize images by IMGbot (GH-21348)
...
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2022-02-04 15:49:43 +09:00
Oleg Iarygin
38e0b9efdf
bpo-37705: Remove orphaned PC/errmap.mak (GH-29724)
...
After GH-15623 deleted `generrmap.c`, a related mak-file stopped working. The mak contains generrmap-related rules only so it should be removed altogether.
Further search for `errmap\.mak|generrmap` regex through content of CPython files shows no dangling reference left.
Since generrmap is already effectively removed, this pull request contains no blurp.
2022-02-02 08:23:30 -08:00
Christian Heimes
f66c857572
bpo-45459: Add Py_buffer to limited API (GH-29991)
...
- [x] ``Py_buffer`` struct
- [x] ``PyBuffer_*()`` API functions
- [x] ``PyBUF_*`` constants
- [x] ``Py_bf_getbuffer`` and ``Py_bf_releasebuffer`` type slots
- [x] ``PyMemoryView_FromBuffer()`` API
- [x] tests for limited API
- [x] ``make regen-limited-abi``
- [x] documentation update
- [ ] export ``PyPickleBuffer*()`` API ???
2022-02-02 07:03:10 -08:00
Christian Heimes
a6ca8eee22
bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507)
2022-01-13 09:46:04 +01:00
Victor Stinner
08bc1bad11
bpo-46303: Fix fileutils.h compiler warnings (GH-30550)
...
Add missing pycore_fileutils.h include in _tkinter.c and
_testconsole.c.
2022-01-12 00:35:26 +01:00
Mark Shannon
e028ae99ec
bpo-45923: Handle call events in bytecode (GH-30364)
...
* Add a RESUME instruction to handle "call" events.
2022-01-06 13:09:25 +00:00
Benjamin Peterson
ba00f0d93a
Update copyright year to 2022. (GH-30335)
...
Automerge-Triggered-By: GH:benjaminp
2022-01-02 12:08:48 -08:00
Gabriele N. Tornetta
50669083fe
bpo-43931: Export Python version as API data (GH-25577)
...
When Python is embedded in other applications, it is not easy to determine which version of Python is being used. This change exposes the Python version as part of the API data. Tools like Austin (https://github.com/P403n1x87/austin ) can benefit from this data when targeting applications like uWSGI, as the Python version can then be inferred systematically by looking at the exported symbols rather than relying on unreliable pattern matching or other hacks (like remote code execution etc...).
Automerge-Triggered-By: GH:pablogsal
2021-12-09 17:52:05 -08:00
Mark Shannon
8319114fee
bpo-45947: Place dict and values pointer at fixed (negative) offset just before GC header. (GH-29879)
...
* Place __dict__ immediately before GC header for plain Python objects.
* Fix up lazy dict creation logic to use managed dict pointers.
* Manage values pointer, placing them directly before managed dict pointers.
* Convert hint-based load/store attr specialization target managed dict classes.
* Specialize LOAD_METHOD for managed dict objects.
* Remove unsafe _PyObject_GC_Calloc function.
* Remove unsafe _PyObject_GC_Malloc() function.
* Add comment explaning use of Py_TPFLAGS_MANAGED_DICT.
2021-12-07 16:02:53 +00:00