You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please help me in deciding if that change I made on #20 is correct.
It was a huge PR and it sneaked somewhere in between before I asked this question.
Test that exposes it is here:
Now the imported symbols are listed explicitly. The list contains everything that is defined by this Include and each sub-Include element unless it's already imported by previous statements in this file.
Explicit listing allows to figure out which symbol is imported from which include -> not a bad thing to know. Unless there are problems stemming from being explicit - I see no problems with it.
Please help me in deciding if that change I made on #20 is correct.
It was a huge PR and it sneaked somewhere in between before I asked this question.
Test that exposes it is here:
prophy/prophyc/tests/generators/test_python.py
Lines 10 to 40 in 775ef4b
Before that change python generator created such a import statement:
Now the imported symbols are listed explicitly. The list contains everything that is defined by this
Include
and each sub-Include
element unless it's already imported by previous statements in this file.There is also some "duplication avoidance" mechanism that raises my doubts at most.
The code responsible for that generation is here:
prophy/prophyc/generators/python.py
Lines 63 to 78 in 775ef4b
Please let me know if you would like to bring it back to the original form.
The text was updated successfully, but these errors were encountered: