arcpy.getparameter type returned for multivalue changed in 10.1?

492
1
09-05-2013 06:37 PM
NeoGeo
by
Occasional Contributor III
Can anyone confirm whether the variable type returned for multivalue parameters by arcpy.getparameter() changed in 10.1?

I run the same tool with the same parameters in ArcGIS 10.0 and 10.1 and the 10.0 version returns a Arcpy ValueTable object, but 10.1 is returning a list object (which breaks the tool). 

According to the 10.1 documentation here: http://resources.arcgis.com/en/help/main/10.1/index.html#//002z00000013000000
AND the 10.0 documentation here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z00000013000000
both should be able to return either a string, a Python list, or a ValueTable, but why would the exact same script return a different type of object if run in 10.1?

The line doing it is simply elemSet = arcpy.GetParameter(9)
On the next line if I do type(elemSet) I get different object types as noted above.  Anybody know any way to force 10.1 to return a ValueTable?

Thanks!!!!
0 Kudos
1 Reply
NeoGeo
by
Occasional Contributor III
Well, regardless, 10.1 seems to be forcing me to use list instead of ValueTable so I am rewriting scripts to use lists instead.
0 Kudos