refex.python.evaluate
¶
Build matchers from user-provided input.
For example, a user might give 'base_matchers.Anything()'
and this is
compiled to an actual base_matchers.Anything()
.
For convenience, these are also available without the module name (e.g. as
Anything()
), but without any defined behavior if there is more than one
matcher with the same name.
-
add_module
(module, overwrite=False)¶ Adds a non-builtin matcher module to be available for compile_matcher.