You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be cheeky, could I ask if there is there a 'blessed' way to introspect if a module is PyO3 generated? It seems the variables mod.build_profile and mod.build_info might be heuristics, but a PYO3 = True flag or similar (a la 'pypy' in sys.modules) might be useful for future cases?
I can't think of one which exists right now, it seems like a practical improvement to have __pyo3_version__ as a standard attribute in compiled PyO3 modules?
The text was updated successfully, but these errors were encountered:
In my experience, if a name is addressing two concerns (i.e. PyO3 and version), it's often wise to actually model those concerns separately, similar to how __spec__ models details about a modules spec. Please consider adding the detail as __pyo3__.version or similar.
From sphinx-doc/sphinx#11662 (comment)
I can't think of one which exists right now, it seems like a practical improvement to have
__pyo3_version__
as a standard attribute in compiled PyO3 modules?The text was updated successfully, but these errors were encountered: