AnsweredAssumed Answered

Python Triple Quotes Escape Stroke

Question asked by GEOlson86 on Oct 1, 2014
Latest reply on Oct 2, 2014 by jesuspisto

I'm using Python to run a script, but I've run into a small problem.  I'm using triple quotes to form a definition query, but inside the query is a wildcard %, so the interpreter is expecting a variable to format the string.  Is there a stroke key that can be used?

 

mapLyr2.definitionQuery = """"FID" IN (%s) AND "Jurisdicti" NOT LIKE '% Township'""" %dqStr

Outcomes