Feature request #10539
QgsExpression instance variables
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Easy fix?:||No||Copied to github as #:||18947|
It would be handy to have replace variable in QgsExpression like we have normally in SQL type engines. For example:
exp = QgsExpression('"person" = @name')
This would change the expression to be:
'"person" = 'Woo''
The difference is these are added at parse time not on evaluate.
A more simple Python API could be:
exp = QgsExpression('"person" = @name', name="Woo")