Browse Source
This new helper function acts like mp_load_method_maybe but is wrapped in an NLR handler so it can catch exceptions. It prevents AttributeError from propagating out, and optionally all other exceptions. This helper can be used to fully implement hasattr (see follow-up commit), and also for cases where mp_load_method_maybe is used but it must now raise an exception.pull/3778/head
Damien George
7 years ago
2 changed files with 17 additions and 0 deletions
Loading…
Reference in new issue