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

Permit module reuse, remove init function #71

Open
kalvdans opened this issue Oct 26, 2023 · 2 comments
Open

Permit module reuse, remove init function #71

kalvdans opened this issue Oct 26, 2023 · 2 comments

Comments

@kalvdans
Copy link

We have many Python modules that makes use of pyclibrary. Only one is allowed to call pyclibrary.init(). This issue is about removing the init() method and instead move its parameters to each CParser instance, to allow several uses of pyclibrary in one Python interpreter.

@kalvdans kalvdans changed the title Permit module reuse, remove init method Permit module reuse, remove init function Oct 26, 2023
@MatthieuDartiailh
Copy link
Owner

Thanks for reaching out.

My bandwidth for this project is extremely limited. If you can make a PR I will review it under the best delay but I won't have time to at this myself.

@kalvdans
Copy link
Author

I took a sunday afternoon to try to come up with a PR but got stuck in how nestled the global variables are. Even class Type is not the same in two configurations. The cache will incorrectly be reused in a different init configuration. The metaclass used for pluggable backends is hindering... I would probably make a PR to revert pluggable backends first.

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

No branches or pull requests

2 participants