FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update changelog and adjust docs · pythonnet/pythonnet@b79b58a · GitHub

Repository navigation

Commit b79b58a

Browse files
committed
Update changelog and adjust docs
1 parent 03e5ee6 commit b79b58a

6 files changed

Lines changed: 117 additions & 248 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,25 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
99

1010
### Added
1111

12+
- Support for Python 3.15 (#2729)
13+
- Support for free-threaded Python 3.14 (`Py_GIL_DISABLED`) (#2721)
14+
- Threading documentation covering GIL ownership, managed threads, and
15+
free-threaded Python (#2721)
16+
1217
### Changed
1318

19+
- Raise the minimum supported Python version from 3.10 to 3.11 (#2729)
20+
- Make runtime caches and CLR type binding safe for concurrent access (#2721)
21+
- Migrate the Visual Studio solution to the `.slnx` format (#2733)
22+
- Update GitHub Actions dependencies (#2739)
23+
1424
### Fixed
1525

26+
- Fix races in finalization, buffer disposal, assembly path updates, and
27+
Python subclass creation (#2721)
28+
- Fix method binding initialization when methods are first accessed (#2721)
29+
- Fix wheel and NuGet preview package builds
30+
1631
## 3.1.0 - 2026-05-23
1732

1833
### Added

‎doc/source/index.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ speeds for Python code. If you are interested in a pure managed-code
2323
implementation of the Python language, you should check out the
2424
`IronPython`_ project.
2525

26-
Python.NET is currently compatible and tested with Python releases from 3.7
27-
onwards.
26+
Python.NET is currently compatible and tested with Python releases 3.11
27+
through 3.15. Free-threaded CPython is supported starting with Python 3.14;
28+
see :doc:`threading` for the threading and GIL guidance.
2829

2930
Current releases are available on `PyPi <https://pypi.org/project/pythonnet/>`_
3031
and `Nuget.org <https://nuget.org/packages/pythonnet>`_.

‎doc/source/python.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ Python idioms:
481481
name = item.GetName()
482482
483483
Using Context Managers (IDisposable)
484-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
484+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
485485

486486
.NET types that implement ``IDisposable`` can be used with Python's context manager
487487
protocol using the standard ``with`` statement. This automatically calls the object's

‎doc/source/threading.rst‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ Threading
33

44
This page explains how Python.NET interacts with the Python Global Interpreter
55
Lock (GIL) and with managed threads, and what guarantees the runtime makes
6-
when your code is multi-threaded. It covers both classic CPython builds and
7-
the free-threaded build introduced in CPython 3.13 (``Py_GIL_DISABLED``).
6+
when your code is multi-threaded. It covers classic CPython builds for Python
7+
3.11 through 3.15 and the free-threaded builds introduced in CPython 3.13
8+
(``Py_GIL_DISABLED``). Python.NET supports free-threaded CPython starting with
9+
Python 3.14.
810

911
The model in one paragraph
1012
--------------------------
@@ -180,17 +182,18 @@ If you start a managed thread while holding the GIL and the thread needs to
180182
call back into Python, release the GIL first so the new thread can acquire
181183
it::
182184

185+
IntPtr threadState;
183186
using (Py.GIL())
184187
{
185188
var pyCallback = scope.Get("on_done");
186-
PythonEngine.BeginAllowThreads(); // let workers acquire the GIL
189+
threadState = PythonEngine.BeginAllowThreads(); // let workers acquire the GIL
187190
try
188191
{
189192
// spawn workers, wait for them...
190193
}
191194
finally
192195
{
193-
PythonEngine.EndAllowThreads(...);
196+
PythonEngine.EndAllowThreads(threadState);
194197
}
195198
}
196199

‎pyproject.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ classifiers = [
2020
"Intended Audience :: Developers",
2121
"Programming Language :: C#",
2222
"Programming Language :: Python :: 3",
23-
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
2524
"Programming Language :: Python :: 3.12",
2625
"Programming Language :: Python :: 3.13",

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL