* Fix miscellaneous bugs in converting annotations to strings. * Optimize parenthesis in the string representation. * Clean up the C code.
|
@ambv should review it |
| @@ -0,0 +1,2 @@ | |||
| Fixed miscellaneous bugs in onverting annotations to strings and optimize | |||
There was a problem hiding this comment.
converting, optimized (to make tense consistent), parentheses (on the next line)
|
Thanks @serhiy-storchaka for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
Thanks for the PR, @serhiy-storchaka! I won't lie, I don't like the macros, I find them hiding actual control flow in the functions. But I won't argue with all the fixes you made. |
|
Sorry, @serhiy-storchaka and @ambv, I could not cleanly backport this to |
|
Oops, looks like 3.7 needs help. |
|
Thank you for merging the PR and sorry for using macros. My reasons are that they make the code clearer to me they are already used everywhere in the AST processing. In any case this patch changed virtually every line of the code. Macros can help to avoid such large changes in future (if we will add a hidden parameter passed to most functions) or can help to automate changes because they uses are one-line and well searchable. |
…ythonGH-6774). (cherry picked from commit 64fddc4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-6927 is a backport of this pull request to the 3.7 branch. |
https://bugs.python.org/issue33475