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
Currently import_exception makes it easy to import and use an exception type defined in Python from Rust. It'd be useful to have a generalized version of this that gave you a type.
Right now it can be accomplished by writing imperative py.import().getattr() statements, but these are quite verbose.
It'd be a big ergonomics win to have a builtin way to do this.
The text was updated successfully, but these errors were encountered:
I'd prefer not put an API in pyo3 main repo until we figure out how it interacts with subinterpreters. #576 has details on what kinds of internals are a problem.
Currently
import_exception
makes it easy to import and use an exception type defined in Python from Rust. It'd be useful to have a generalized version of this that gave you a type.Right now it can be accomplished by writing imperative
py.import().getattr()
statements, but these are quite verbose.It'd be a big ergonomics win to have a builtin way to do this.
The text was updated successfully, but these errors were encountered: