[Qgis-developer] (basic) python help

Nathan Woodrow madmanwoo at gmail.com
Thu Feb 9 04:41:06 EST 2012


Hey Denis,

By the looks of it you have the quotes in the wrong spot.  Try this:

eval(" myvar ='3' ")

or

eval(" myvar =\'3\' ")

- Nathan

On Thu, Feb 9, 2012 at 7:33 PM, Denis Rouzaud <denis.rouzaud at gmail.com>wrote:

> Hi all,
>
> I am dealing with the same problem for a while now, can someone tells me
> why these commands give a syntaxerror:
>
> eval("myvar ='3'")
>
> or
>
> eval("myvar =\'3\'")
>
> I played with simple/double quotes and backslash or not.
> I googled this without any success...
>
> Can someone give me a hint?
>
> Thanks
>
> Denis
>
> ______________________________**_________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-**developer<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120209/7dfd9f00/attachment.html


More information about the Qgis-developer mailing list