Added ToPythonAs<T>() extension method to allow for explicit conversion
using a specific type. (#2311[i2311])
Added IComparable and IEquatable implementations to PyInt, PyFloat,
and PyString to compare with primitive .NET types like long.
Changed
Added a FormatterFactory member in RuntimeData to create formatters with
parameters. For compatibility, the FormatterType member is still present
and has precedence when defining both FormatterFactory and FormatterType
Added a post-serialization and a pre-deserialization step callbacks to
extend (de)serialization process
Added an API to stash serialized data on Python capsules
Fixed
Fixed RecursionError for reverse operators on C# operable types from python. See #2240
Fixed crash when .NET event has no AddMethod
Fixed probing for assemblies in sys.path failing when a path in sys.path
has invalid characters. See #2376
Fixed possible access violation exception on shutdown. See (#1977[i1977])
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on pythonnet to permit the latest version.
Release notes
Sourced from pythonnet's releases.
Changelog
Sourced from pythonnet's changelog.
... (truncated)
Commits
6690310
Bump to 3.0.4ea059ca
Merge pull request #2386 from Frawak/fix/1977-access-violation-gc6cdd6d7
Move reflected object creation blockc99cdf3
Throw exception trying to add a reflected object after the hashset is cleared9ebfbde
Fix crash when event does not haveAdd
method and improve message for some ...f82aeea
Simplify UTF8 StrPtr usage (#2374)6f0f671
Restrict first garbage collection4e5afdf
Fix access violation exception on shutdown (#1977)b112885
handle bad paths in sys.path (#2383)32051cb
Expose serialization api (#2336)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show