Release 3.0.0 #1954
filmor
announced in
Announcements
Release 3.0.0
#1954
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm proud to finally release the first new major version of Python.NET in 7 years.
This is the culmination of over 2 years of work from many contributors to modernise the code base and support modern .NET and Python versions.
Highlights
The new package is available from PyPI and Nuget, respectively. Updated documentation is available here:
https://pythonnet.github.io/pythonnet/
In particular, there is an updated Getting Started section that documents using .NET 6 (coreclr) from Python:
https://pythonnet.github.io/pythonnet/python.html#getting-started
While we tried to keep this release as backwards-compatible as possible, there are still some breaking changes. The changelog is available here:
https://github.com/pythonnet/pythonnet/blob/master/CHANGELOG.md#300---2022-09-29
What's Changed
CheckExceptionOccurred
calls by @amos402 in Remove unnecessaryCheckExceptionOccurred
callsΒ #1175len
work forICollection<>
interface objects by @danabr in Makelen
work forICollection<>
interface objects Β #1253find_libpython
duringimport clr
as Python.Runtime can find it on its own by @lostmsu in Do not callfind_libpython
duringimport clr
as Python.Runtime can find it on its ownΒ #1440__cause__
on overload bind failure and array conversion by @lostmsu in Fixed__cause__
on overload bind failure and array conversionΒ #1442PyType_Ready
in CLR MetaType'stp_new
by @lostmsu in Fixed double call toPyType_Ready
in CLR MetaType'stp_new
Β #1486Py.Import
andPyModule.Import
returnPyObject
instead ofPyModule
by @lostmsu inPy.Import
andPyModule.Import
returnPyObject
instead ofPyModule
Β #1530needsResolution
hack by @lostmsu in RemoveneedsResolution
hackΒ #1531PyObject.As<object>()
by @lostmsu in Allow decoders affectPyObject.As<object>()
Β #1546threading
module afterTestInterrupt
by @lostmsu in Added workaround for warning inthreading
module afterTestInterrupt
Β #1560ClassManager
illegally decrefedClassObject
's refcount on shutdown by @lostmsu inClassManager
illegally decrefedClassObject
's refcount on shutdownΒ #1563PythonEngine
have similarSetUp
andTearDown
by @lostmsu in Ensure tests, that need runningPythonEngine
have similarSetUp
andTearDown
Β #1564tpHandle
inClassBase.tp_clear
- it might be used intp_dealloc
by @lostmsu in Do not cleantpHandle
inClassBase.tp_clear
- it might be used intp_dealloc
Β #1566collections.abc
interfaces by @lostmsu in Mixins for standard collections that implementcollections.abc
interfacesΒ #1543Dispatcher
by @lostmsu in SimplifyDispatcher
Β #1559ResolveHandler
, and use official assembly name parsing by @lostmsu in Simplify assemblyResolveHandler
, and use official assembly name parsingΒ #1570FileLoadException
when tryingclr.AddReference('/full/path.dll')
by @lostmsu in FixedFileLoadException
when tryingclr.AddReference('/full/path.dll')
Β #1573BadPythonDllException
instead of confusingTypeLoadException
whenPythonDLL
was not configured properly by @lostmsu in RaiseBadPythonDllException
instead of confusingTypeLoadException
whenPythonDLL
was not configured properlyΒ #1577PyScope
/PyModule
API cleanup by @lostmsu inPyScope
/PyModule
API cleanupΒ #1569PyType
is allocated by @lostmsu in When reflecting nested types, ensure their correspondingPyType
is allocatedΒ #1579GetAttr(name, default)
by @lostmsu in SaferGetAttr(name, default)
Β #1578PyType.Get
by @lostmsu in ExposePyType.Get
Β #1581PySequence
andPyIterable
by @lostmsu in Allow user-created instances ofPySequence
andPyIterable
Β #1580IPyObjectDecoder.CanDecode
by @lostmsu in Changed signature ofIPyObjectDecoder.CanDecode
Β #1583float
andbool
implicit conversions by @lostmsu in Disabledfloat
andbool
implicit conversionsΒ #1584__call__
method callable from Python by @lostmsu in Make .NET objects that have__call__
method callable from PythonΒ #1589PythonMethodAttribute
by @lostmsu in Remove unusedPythonMethodAttribute
Β #1609ShutdownMode
. Now always behaves like originalReload
by @lostmsu in RemovedShutdownMode
. Now always behaves like originalReload
Β #1638Py
class into its own file by @lostmsu in MovedPy
class into its own fileΒ #1649__int__
instance method on enum types to supportint(Enum.Member)
by @lostmsu in Provide__int__
instance method on enum types to supportint(Enum.Member)
Β #1661PyBuffer
a bit by @lostmsu in CleanupPyBuffer
a bitΒ #1662PyObject
conversion toIEnumerable
by @lostmsu in Allow dynamicPyObject
conversion toIEnumerable
Β #1697PyObject
inherited from its base .NET classes GIL-safe by @lostmsu in Make methods ofPyObject
inherited from its base .NET classes GIL-safeΒ #1711BigInteger
(C#) <->PyInt
by @lostmsu in Support forBigInteger
(C#) <->PyInt
Β #1710NativeTypeSpec
on 32 bit platforms by @lostmsu in Fix layout ofNativeTypeSpec
on 32 bit platformsΒ #1765Min
/MaxSupportedVersion
andIsSupportedVersion
onPythonEngine
by @filmor inMin
/MaxSupportedVersion
andIsSupportedVersion
onPythonEngine
Β #1799Min
/MaxSupportedVersion
andIsSupportedVersion
onPythonEngine
by @lostmsu inMin
/MaxSupportedVersion
andIsSupportedVersion
onPythonEngine
Β #1798NewReference.Move
by @lostmsu in Fixed a leak inNewReference.Move
Β #1873Initialize
andBeginAllowThreads
in the README by @lostmsu in Mention the need forInitialize
andBeginAllowThreads
in the READMEΒ #1897New Contributors
Full Changelog: v2.5.2...v3.0.0
This discussion was created from the release Release 3.0.0.
Beta Was this translation helpful? Give feedback.
All reactions