Select to view content in your preferred language

How long will arcgisscripting module be around?

06-22-2012 01:17 PM
Regular Contributor
I've only modified a small percentage of scripts to use arcpy.  At what version will arcgisscripting go away and arcpy be the only option?
0 Kudos
4 Replies
Esri Regular Contributor
It is not how long arcgisscripting will be around - it is how soon you will be using the new functionalities of arcpy package 😄

For example, in 10.1, there is a data access module in the ArcPy site package. This module makes data processing way faster than using the existing cursors.
0 Kudos
Regular Contributor II
For a very, very long time. Arcpy is built on it, and we don't really want to ever break backward compatibility with your scripts.
0 Kudos
MVP Esteemed Contributor
Just want to add, if you want your scripts to be fully forward compatible, say, so it will work in 9.3 and 10.0 and ..., you need to specify a version of arcgisscripting. Esri has kindly provided a way to make sure the arcgisscripting object model for previous versions of ArcGIS is still available.

gp  = arcgisscripting.create(9.3)

The module it self hasn't changed that much - mostly changes to the list functions and cursors, but enough to break your scripts in future versions if you forget to specify the version you want.
0 Kudos
Esri Regular Contributor
My 9.2 code still works in 10.1. The .create(9.3) makes the new functionalities in 9.3 available to the script.

import arcgisscripting
gp = arcgisscripting.create()

rows = gp.SearchCursor(r"C:\data\fgdb.gdb\lines")

row =

while row:
    print row.getValue("MYFIELD")
    row =
del row
del rows
0 Kudos