Replies: 3 comments 2 replies
-
Which aspect are you demonstrating with the screenshot of the documentation that you're worried about? In general, to me it feels much nicer to import only the symbols I use directly. Except when they are very short or ambiguous then I use the long path. |
Beta Was this translation helpful? Give feedback.
-
In theory anything you can import should be named in a self-explanatory way I also found the distinction between modules and classes/functions to be unclear when reading the google style guide. This is probably due to my lack of experience in python, BUT i feel this would potentially lack clarity on when its okay to use the direct import |
Beta Was this translation helpful? Give feedback.
-
At some point we decide we did want to use it, but it seems not trivial, so it's not just about saying yes, it is also about deciding a good packages/modules structure for this to make sense, so this is blocked until we decide on the structure: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At some point we decide we did want to use it, but it seems not trivial, so it's not just about saying yes, it is also about deciding a good packages/modules structure for this to make sense, so this is blocked until we decide on the structure:
We need a discussion to see if we want to go this route, and if it is viable.
This might not work that well for libraries/packages/modules that are not designed this way.
Also we have to have in mind how documentation is generate when using this, for example:
Beta Was this translation helpful? Give feedback.
All reactions