Allow create_exception!
to take expr
or literal
as module name instead of only ident
#2946
Labels
create_exception!
to take expr
or literal
as module name instead of only ident
#2946
I'm trying to build a Python-Rust mixed project. I want to place all the Rust based types into
my_module.core
, however,create_exception!
only allows me to place the exception at the root of the module. (I don't mind adding exception to module attribute, however replicatingcreate_exception!
manually is quite cumbersome.)I hope that the
create_exception!
macro can accept aexpr
/literal
as the module name, so that a normal dotted module name can be accepted.Patch
The text was updated successfully, but these errors were encountered: