Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdds Support to Named Arguments #41
Conversation
* Add support for named arguments (pythonnet#849) * Remove kwarg check since it breaks the python-derived CLR class use-case * Add named parameter test cases * Update changelog and authors * Add default params tests
Pick-cherry from pythonnet master and resolve conflicts.
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
=======================================
Coverage 69.42% 69.42%
=======================================
Files 1 1
Lines 278 278
=======================================
Hits 193 193
Misses 85 85
Continue to review full report at Codecov.
|
Remoes `break` at `AssemblyManager.Initialize` added for debugging/testing.
|
Looks good |
| IntPtr op; | ||
| if (hasNamedParam) | ||
| { | ||
| op = kwargDict[parameter.Name]; |
Martin-Molinero
Jun 15, 2020
Member
Think could use kwargDict.TryGetValue at the top and avoid accessing the dictionary twice
Pick-cherry (pythonnet#849)) from pythonnet master and resolve conflicts.