Retry arbitrary blocks with single context manager using AST #86
CNSeniorious000
started this conversation in
Ideas
Replies: 1 comment
-
While I would never put such an abomination into production, I would be really curious to look at that. 😂 I find the two indentations annoying too, but start to rewrite ASTs would break the mental model people have of the behavior of a Python application and make it a net negative. It would also confuse all kinds of tooling like type checkers and linters, etc. But still, I would love to see a PoC. :D |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the docs:
Maybe it is possible to get the ast of the caller's frame? So maybe this feature can br achieved more elegantly?
Beta Was this translation helpful? Give feedback.
All reactions