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

RawProxyEncoder#1122

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
filmor merged 4 commits intopythonnet:masterfromlosttech:PR/RawProxyEncoderBase
Apr 29, 2020
Merged

Conversation

@lostmsu
Copy link
Member

@lostmsulostmsu commentedApr 23, 2020
edited
Loading

Now Python host can force raw encoding for autoconverted .NET types.

What does this implement/fix? Explain your changes.

This class allows Python to override some automatic conversions done by Python.NET, which was otherwise impossible.

To do that, Python code can define a class derived fromRawProxyEncoder, and overrideCanEncode to returnTrue for the desired types. Create an instance of this class, and register it withPython.Runtime.PyObjectConversions.RegisterEncoder(instance) (see new test for example)

Does this close any currently open issues?

Enables workaround for#514

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
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

Now Python host can force raw encoding for autoconverted .NET types.Enables workaround forpythonnet#514
@lostmsulostmsuforce-pushed thePR/RawProxyEncoderBase branch froma0fed9a to213afb6CompareApril 23, 2020 18:34
@lostmsulostmsu added this to the2.5.0 milestoneApr 23, 2020
@lostmsulostmsu requested a review fromfilmorApril 27, 2020 21:01
@filmorfilmor merged commitf707698 intopythonnet:masterApr 29, 2020
@lostmsulostmsu deleted the PR/RawProxyEncoderBase branchApril 29, 2020 17:58
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull requestJun 29, 2020
Now Python host can force raw encoding for autoconverted .NET types.Enables workaround forpythonnet#514
@koliyokoliyo mentioned this pull requestMar 8, 2021
@codecov-commenter
Copy link

⚠️ Please install the'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.66%. Comparing base (1fb2e63) to head (407e6df).
⚠️ Report is 940 commits behind head on master.
❗ Your organization needs to install theCodecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@##           master    #1122   +/-   ##=======================================  Coverage   86.66%   86.66%           =======================================  Files           1        1             Lines         300      300           =======================================  Hits          260      260             Misses         40       40
FlagCoverage Δ
setup_linux65.33% <ø> (ø)
setup_windows72.00% <ø> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

2.5.0

Development

Successfully merging this pull request may close these issues.

3 participants

@lostmsu@codecov-commenter@filmor

[8]ページ先頭

©2009-2025 Movatter.jp