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

object.GetRawPythonProxy() extension, that bypasses all conversions#1078

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 1 commit intopythonnet:masterfromlosttech:features/PythonProxy
Mar 6, 2020

Conversation

lostmsu
Copy link
Member

What does this implement/fix? Explain your changes.

GetRawPythonProxy creates aPyObject pointing to the specified CLR object without performing any conversions, which lets .NET code to pass CLR objects as-is, if it needs Python to have direct access to them.

This is necessary to allow codecs to create arbitrary proxy objects for .NET objects, bypassing default conversions or other registered codecs.

Does this close any currently open issues?

This is related to#514

Any other comments?

WithoutGetRawPythonProxy it is impossible for a user to define custom codec forList<T>, that returns raw proxy toList<T>, as they have no other means to obtain one.

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

@lostmsulostmsu added this to the2.4.1 milestoneMar 4, 2020
@codecov-io
Copy link

codecov-io commentedMar 4, 2020
edited
Loading

Codecov Report

Merging#1078 intomaster willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@           Coverage Diff           @@##           master    #1078   +/-   ##=======================================  Coverage   86.75%   86.75%           =======================================  Files           1        1             Lines         302      302           =======================================  Hits          262      262             Misses         40       40
FlagCoverage Δ
#setup_linux65.56% <ø> (ø)⬆️
#setup_windows71.52% <ø> (ø)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update9fd877e...e7b5385. Read thecomment docs.

GetRawPythonProxy creates a PyObject pointing to the specified object without performing any coversions, which lets .NET code to pass CLR objects as-is, if it needs Python to have direct access to them.This enables codecs to create arbitrary proxy objects, bypassing default conversions or other registered codecs.
@filmorfilmor merged commit653a932 intopythonnet:masterMar 6, 2020
@lostmsulostmsu deleted the features/PythonProxy branchMarch 7, 2020 21:19
@lostmsulostmsu modified the milestones:2.4.1,2.5.0Apr 23, 2020
lostmsu added a commit to losttech/pythonnet that referenced this pull requestMay 1, 2020
filmor pushed a commit that referenced this pull requestMay 1, 2020
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull requestJun 29, 2020
GetRawPythonProxy creates a PyObject pointing to the specified object without performing any coversions, which lets .NET code to pass CLR objects as-is, if it needs Python to have direct access to them.This enables codecs to create arbitrary proxy objects, bypassing default conversions or other registered codecs.
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull requestJun 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorfilmor approved these changes

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-io@filmor

[8]ページ先頭

©2009-2025 Movatter.jp