Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow decoding instanceless exceptions#1544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lostmsu merged 1 commit intopythonnet:masterfromlosttech:decode-instanceless-exn
Sep 22, 2021

Conversation

lostmsu
Copy link
Member

@lostmsulostmsu commentedSep 5, 2021
edited
Loading

What does this implement/fix? Explain your changes.

Added new Python classclr.interop.PyErr with optionaltype,value, andtraceback attributes. User can register decoders for it, that would let them decode instanceless (and even typeless) Python exceptions.

These decoders will be invoked before the regular exception instance decoders.

This allows decoding exceptions before they are normalized (which is not always possible).

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Updated theCHANGELOG

@lostmsulostmsuforce-pushed thedecode-instanceless-exn branch from3180f29 toc5607ecCompareSeptember 5, 2021 19:21
@lostmsulostmsuforce-pushed thedecode-instanceless-exn branch 2 times, most recently from8a3647d tobb54fc6CompareSeptember 21, 2021 19:02
Added new class clr.interop.PyErr with optional type, value, and traceback attributes. User can register decoders for it, that would let them decode instanceless (and even typeless) Python exceptions.These decoders will be invoked before the regular exception instance decoders.
@lostmsulostmsu merged commit832126c intopythonnet:masterSep 22, 2021
@lostmsulostmsu deleted the decode-instanceless-exn branchSeptember 22, 2021 21:05
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorAwaiting requested review from filmor

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp