We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf8c26 commit 64c9058Copy full SHA for 64c9058
unpythonic/__init__.py
@@ -56,13 +56,13 @@ def _init_fploop(reload=False):
56
_init_tco()
57
_init_fploop()
58
59
-def enable_fasttco():
60
- """Switch to the fast TCO implementation.
+def enable_fasttco(b=True):
+ """Switch the fast TCO implementation on/off.
61
62
It is 2-5x faster, but pickier about its syntax, hence not the default.
63
See ``unpythonic.fasttco`` for details.
64
"""
65
- rc._tco_impl = "fast"
+ rc._tco_impl = "fast" if b else "exc"
66
67
68
_init_fploop(reload=True)
0 commit comments