[GRASS-dev] [GRASS GIS] #3804: Naming conventions for imports in GRASS codebase
GRASS GIS
trac at osgeo.org
Sat Mar 30 07:14:13 PDT 2019
#3804: Naming conventions for imports in GRASS codebase
-------------------------+-------------------------
Reporter: pmav99 | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Python | Version: svn-trunk
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
There is a great deal of variation in the way that grass code does
imports. Just a few examples:
{{{
import grass.script as core
import grass.script as gcore
import grass.script as grass
import grass.script as gs
import grass.script as gscript
import grass.script as sgrass
import grass.script.core as core
import grass.script.core as gcore
import grass.script.core as grass
import grass.script.core as gscore
import grass.script.raster as grast
import grass.script.raster as raster
import grass.pygrass.utils as gutils
import grass.pygrass.utils as utils
import grass.lib.gis as gislib
import grass.lib.gis as libgis
}}}
I think it would be a good idea if a certain style was picked and
consistently used throughout the codebase.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3804>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list