FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix so that Runtime.PyModuleType is retrieved via Python.dll (#904) by ftreurni · Pull Request #929 · pythonnet/pythonnet · GitHub

Repository navigation

Fix so that Runtime.PyModuleType is retrieved via Python.dll (#904) - #929

Merged
filmor merged 2 commits into
pythonnet:masterfrom
ftreurni:fix-issue-904
Aug 2, 2019
Merged

filmor merged 2 commits into
pythonnet:masterfrom
ftreurni:fix-issue-904

Conversation

ftreurni commented Aug 1, 2019

Copy link
Copy Markdown
Contributor

What does this implement/fix? Explain your changes.

Currently the PyModuleType is deduced from the __builtin__ module. However, this fails when some third party package messes with this module (Nuitka). In this PR the PyModuleType is deduced directly from the Python shared library instead, which should be a safer approach to achieve the same.

Does this close any currently open issues?

#904

Any other comments?

...

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 to AUTHORS
  • Updated the CHANGELOG

Cronan commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

Seems like a good thing to me

filmor commented Aug 2, 2019

Copy link
Copy Markdown
Member

Thank you very much for this precise analysis and the fix, greatly appreciated! :)

filmor merged commit f20bcf6 into pythonnet:master Aug 2, 2019
ftreurni deleted the fix-issue-904 branch August 3, 2019 08:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL