Skip to content

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

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

Merged
merged 2 commits into from
Aug 2, 2019

Conversation

ftreurni
Copy link
Contributor

@ftreurni ftreurni commented Aug 1, 2019

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
Copy link
Contributor

Cronan commented Aug 2, 2019

Seems like a good thing to me

@filmor
Copy link
Member

filmor commented Aug 2, 2019

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

@filmor filmor merged commit f20bcf6 into pythonnet:master Aug 2, 2019
@ftreurni ftreurni deleted the fix-issue-904 branch August 3, 2019 08:04
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull request Jun 18, 2020
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