You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the ability to implement delegates with ref and out parameters in Python, by returning the modified parameter values in a tuple.
BREAKING: MethodBinder omits a void return type when returning a tuple of out parameters.
DelegateManager unpacks a tuple of out parameters from Python (reversing the logic in MethodBinder) and sets the out parameters of the delegate.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
12
12
- Ability to instantiate new .NET arrays using `Array[T](dim1, dim2, ...)` syntax
13
13
- Python operator method will call C# operator method for supported binary and unary operators ([#1324][p1324]).
14
14
- Add GetPythonThreadID and Interrupt methods in PythonEngine
15
+
- Ability to implement delegates with `ref` and `out` parameters in Python, by returning the modified parameter values in a tuple. ([#1355][i1355])
15
16
16
17
### Changed
17
18
- Drop support for Python 2, 3.4, and 3.5
@@ -32,6 +33,7 @@ details about the cause of the failure
32
33
- floating point values passed from Python are no longer silently truncated
33
34
when .NET expects an integer [#1342][i1342]
34
35
- More specific error messages for method argument mismatch
36
+
- BREAKING: Methods with `ref` or `out` parameters and void return type return a tuple of only the `ref` and `out` parameters.
35
37
36
38
### Fixed
37
39
@@ -48,8 +50,8 @@ when .NET expects an integer [#1342][i1342]
48
50
- Fixed issue when calling PythonException.Format where another exception would be raise for unnormalized exceptions
49
51
- Made it possible to call `ToString`, `GetHashCode`, and `GetType` on inteface objects
50
52
- Fixed objects returned by enumerating `PyObject` being disposed too soon
51
-
- Incorrectly using a non-generic type with type parameters now produces a helpful Python error instead of throwing NullReferenceException
52
-
-`import` may now raise errors with more detail than "No module named X"
53
+
- Incorrectly using a non-generic type with type parameters now produces a helpful Python error instead of throwing NullReferenceException ([#1325][i1325])
54
+
-`import` may now raise errors with more detail than "No module named X"
53
55
- Providing an invalid type parameter to a generic type or method produces a helpful Python error
0 commit comments