_abc_registry attribute is not available in python 3.7.0 #24
Comments
|
You can use The following code should work:
Credit goes to: u/K9000_ from the reddit thread |
|
@ShubhamBelwal thanks, it fixed my same problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try running the tombola_runner.py in chapter 11, python reports to me that the '_abc_registry' doesn't exist.
I searched in docs, but found that the attribute is not accesible anymore.
The changelog is
"""
bpo-31333: _abc module is added. It is a speedup module with C implementations for various functions and methods in abc. Creating an ABC subclass and calling isinstance or issubclass with an ABC subclass are up to 1.5x faster. In addition, this makes Python start-up up to 10% faster.
Note that the new implementation hides internal registry and caches, previously accessible via private attributes _abc_registry, _abc_cache, and _abc_negative_cache. There are three debugging helper methods that can be used instead _dump_registry, _abc_registry_clear, and _abc_caches_clear.
"""
The text was updated successfully, but these errors were encountered: