- changed milestone to 1.5.0
proper naming "as" imports
we have some name clashes as for example in topview
from mslib.msui import wms_control as wms
wms has a quite different meaning.
Comments (5)
-
reporter -
What is the desired way to proceed? Not to use "as" names? Not to use "from ... import ..." at all? The typically used "as" names are often very short and just for convenience. For almost all cases I am for removing the abbreviation. Except for some special cases, also the "from" import syntax is just convinience that could be removed/reduced greatly.
-
reporter I prefer to keep this, from mslib.msui import MissionSupportSystemDefaultConfig as mss_default
but not some on some places where the name means something different.
as for example the next example, there is wms_control, sufficent. from mslib.msui import wms_control as wms
searching/reading should be not become difficult by the as abbreviation
-
reporter - changed status to resolved
wms_control becomes imported as ws, fixes
#175→ <<cset 06fe0936a086>>
-
reporter Merged in ReimarBauer/mss/issue175 (pull request #356)
wms_control becomes imported as wc, fixes
#175→ <<cset 9edcc6e4e994>>
- Log in to comment