proper naming "as" imports

Issue #175 resolved
Reimar Bauer created an issue

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)

  1. Joern Ungermann

    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.

  2. Reimar Bauer 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

  3. Log in to comment