Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pythonnet/pythonnet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.0-rc1
Choose a base ref
...
head repository: pythonnet/pythonnet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.2.0-rc2
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Sep 25, 2026

  1. Python exception raised on conversion failure (#2741)

    Converting a CLR value to Python can throw after the call has
    succeeded, eg if an encoder's TryEncode throws, or if calling
    enumerator.Current throws. Previously the exception was never
    converted to a Python exception making it uncatchable even
    instead, so Python code could not catch it, not even using
    except BaseException
    
    - MethodBinder.Invoke guarded only the invocation, and converted the
      result and out parameters after its try/catch
    - Iterator.tp_iternext guarded MoveNext but not Current or the
      conversion of the item
    - ArrayObject indexing converted items with no guard at all
    
    Each now reports the failure through Exceptions.SetError, as the
    existing catch already does for the call itself. Property and field
    getters already convert inside their try and are unchanged.
    macaronikazoo authored Sep 25, 2026
    Configuration menu
    Copy the full SHA
    a7af7a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72df9ae View commit details
    Browse the repository at this point in the history
Loading