- Notifications
You must be signed in to change notification settings - Fork 30
Catch Up Upstream#45
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
AlexCatarino commented Jun 29, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Synchronized fixed
- Use `BorrowedReference` where applicable - Readd `OperatingSystemName` and `MachineName` for now
…thonnet#930) This addresses the following scenario: 1. A C# object `a` is created and filled with some data. 2. `a` is passed via Python.NET to Python. To do that Python.NET creates a wrapper object `w`, and stores reference to `a` in one of its fields. 3. Python code later passes `w` back to C#, e.g. calls `SomeCSharpMethod(w)`. 4. Python.NET has to unwrap `w`, so it reads the reference to `a` from it. Prior to this change in 4. Python.NET had to determine what kind of an object `a` is. If it is an exception, a different offset needed to be used. That check was very expensive (up to 4 calls into Python interpreter). This change replaces that check with computing offset unconditionally by subtracting a constant from the object size (which is read from the wrapper), thus avoiding calls to Python interpreter. Co-authored-by: Victor Milovanov <[email protected]>
Add a check to see if the last parameter is a params parameter. Set the correct flag to show that it is a paramsArray function. Fixespythonnet#943 and pythonnet#331.
- Add .NET Foundation - Remove Python 3.8.0 warning
Drop Python 2 support
codecov-commenter commented Jun 29, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #45 +/- ## ========================================== - Coverage 69.42% 64.94% -4.48% ========================================== Files 1 1 Lines 278 291 +13 ========================================== - Hits 193 189 -4 - Misses 85 102 +17
Continue to review full report at Codecov.
|
jaredbroad commented Jun 29, 2020
Can you please post a summary of the upgrades/fixes? |
Martin-Molinero commented Mar 4, 2021
Closing in favor of #47 |
Rebase with pythonnet master.
Most important changes: