[GRASS-user] python reserved word as parameter

Micha Silver tsvibar at gmail.com
Thu Mar 30 07:41:44 PDT 2017


Use: "from_"



On 03/30/2017 05:27 PM, Ang Sherpa wrote:
> Hi users,
>
> While using "v.distance" in python script. The first parameter is 
> "from" which is python reserved keyword and throws error: "There's 
> error in your syntax"
>
> *v.distance* [-*pa*] *from*=/name/ [*from_layer*=/string/] 
> [*from_type*=/string/[,/string/,...]] 
> *to*=/name/ [*to_layer*=/string/] [*to_type*=/string/[,/string/,...]] 
> [*output*=/name/] [*dmax*=/float/] [*dmin*=/float/] 
> *upload*=/string/[,/string/,...] [*column*=/name/[,/name/,...]] 
> [*to_column*=/name/] [*table*=/name/] [*separator*=/character/] 
> [--*overwrite*] [--*help*] [--*verbose*] [--*quiet*] [--*ui*]
>
>
> Is there a way to resolve this issue?
>
> *Best,*
> *Ang Dawa Sherpa*
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
cell: +972-523-665918

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170330/1d4ca359/attachment.html>


More information about the grass-user mailing list