Skip to content
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

Python: Issue warning when re-loading the same module #178

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

WardBrian
Copy link
Collaborator

@charlesm93 recently ran into the issue where re-loading the same shared library is a no-op on some systems.

We warn against this in Julia and R (#45), but in Python the standard library was missing a way to list all already-loaded dlls, so it was left out.

After Charles' prompting, I wrote one: https://github.com/WardBrian/dllist
This small Python package essentially re-implements the same platform-specific logic that the Julia dllist function that we use does. I finished it up this morning and put it on PyPI, so if we don't mind a small extra dependency we can add this warning now for Python users as well.

Copy link
Owner

@roualdes roualdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Indeed, that is a small dependency. Ok by me.

@WardBrian WardBrian merged commit 1ae0bf7 into main Oct 13, 2023
19 checks passed
@WardBrian WardBrian deleted the fix/python-reload-warning branch October 13, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants