<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582207#M45615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when mixing single and triple quotes in python, it is good to just dump the stuff in between them and examine how python tries to handle the quoting without having to 'escape' a quote character.&lt;/P&gt;&lt;P&gt;Examine the logic, it is important&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# ---- assume for example that you have 1 pair of triple quotes """ """ or ''' '''&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- you add in 3 pairs of single quotes and 1 paire of double quotes&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"""a 'b' 'c' 'd' "e" """&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- result, there is a bit of a struggle in python, so it escapes \ each single quote&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'a \'b\' \'c\' \'d\' "e" '&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- so you make sure that you use only single quotes between the triple quotes&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"""a 'b' 'c' 'd' 'e' """&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- result, there is no escaping necessary around the single quotes and the&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# triple quote pair is just reduced to a pair of double quotes&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"a 'b' 'c' 'd' 'e' "&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:01:48 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2021-12-12T01:01:48Z</dc:date>
    <item>
      <title>ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582202#M45610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a tool based on y Python script which used to work perfectly in ArcGIS Desktop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Pro, it does not! In a CalculateField_management statement, I use the following codeblock to calculate the value to assign. In this case, it is a String and it looks like causing the problem (I have a similar statement with similar codeblock calculating integer value and it works fine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has the syntax for dealing with String changed slightly with Python 3 used in Pro? Something with single or double quotes? A combination of both?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;        codeblock_source &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"""def getSource(elev,user_source,source,ons_off):
          if elev != -9999 and ons_off == 'Onshore' and source == 'NA':
            return user_source
          elif ons_off == 'Offshore':
            return 'OFF'            
          else:
            return source"""&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582202#M45610</guid>
      <dc:creator>VincentLaunstorfer</dc:creator>
      <dc:date>2021-12-12T01:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582203#M45611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How exactly is it not working?&amp;nbsp; Is it giving you an error?&amp;nbsp; If so, what is the error and traceback if available.&amp;nbsp; If it is giving unexpected results, what is it giving and what do you expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 17:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582203#M45611</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-03-14T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582204#M45612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are working with this level of complexity and are not using Calculate Field in model builder, arcpy.da.UpdateCursor makes for much cleaner code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, when I look at this code I see nothing that should not work in both Python 2 and 3. Are you sure the issue is the code block?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 17:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582204#M45612</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-03-14T17:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582205#M45613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error was shown in the dialog box while running the script as:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;function GetMessages at 0x000002F1582FCAE8&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't know how to use traeback...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I found the syntax error in the code. The return = 'OFF' within single quotes in the elif statment should be return = "OFF" within double-quotes. Silly but it took some time to figure out where the problem was from, among variables, codeblock, logic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; codeblock_source &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"""def getSource(elev,user_source,source,ons_off):
 if elev != -9999 and ons_off == 'Onshore' and source == 'NA':
 return user_source 
 elif ons_off == 'Offshore':
 return "OFF"
 else:
 return source"""&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It all works now! And it does mean there are some subtle difference in Python in ArcGIS Desktop and ArcGIS PRO...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582205#M45613</guid>
      <dc:creator>VincentLaunstorfer</dc:creator>
      <dc:date>2021-12-12T01:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582206#M45614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;True, I could write my code with arcpy.da.UpdateCursor. I haven't thought about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, I managed to fix my code!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 10:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582206#M45614</guid>
      <dc:creator>VincentLaunstorfer</dc:creator>
      <dc:date>2019-03-19T10:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582207#M45615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when mixing single and triple quotes in python, it is good to just dump the stuff in between them and examine how python tries to handle the quoting without having to 'escape' a quote character.&lt;/P&gt;&lt;P&gt;Examine the logic, it is important&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# ---- assume for example that you have 1 pair of triple quotes """ """ or ''' '''&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- you add in 3 pairs of single quotes and 1 paire of double quotes&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"""a 'b' 'c' 'd' "e" """&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- result, there is a bit of a struggle in python, so it escapes \ each single quote&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'a \'b\' \'c\' \'d\' "e" '&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- so you make sure that you use only single quotes between the triple quotes&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"""a 'b' 'c' 'd' 'e' """&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- result, there is no escaping necessary around the single quotes and the&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# triple quote pair is just reduced to a pair of double quotes&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;"a 'b' 'c' 'd' 'e' "&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582207#M45615</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T01:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582208#M45616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I chalk this up to the very complex nested handling of strings required by using Calculate Field code blocks in a Python script. I do use Calculate Field in python scripts, but when a code block is needed as a rule I go to arcpy.da.UpdateCursor because the code is much easier to read (and of course, debug!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ELEV"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ONS_OFF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SOURCE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"USER_SOURCE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OFIELD"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; rows&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; rows&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"-9999"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Onshore"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NA"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Offshore"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OFF"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        rows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582208#M45616</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T01:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582209#M45617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ive found that if I store the code in a temporary Microsoft Format. (Word, Excel etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The single quotes, are not compatible with some of the ESRI stuff.&amp;nbsp; &amp;nbsp;But if you copy the same text into notepad, then copy that into Arc, many tools will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582209#M45617</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2019-03-20T14:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.3 - Proper syntax for codeblock in Python?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582210#M45618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably. And it is totally normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any script (such as Python in ESRI) or more substantial programming, ALWAYS use simple text editor and/or dedicated IDE program. These use plain text while any advanced text editor such as MS Word or others use rich text editing (with embedded formatting tags and so on).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 15:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-2-3-proper-syntax-for-codeblock-in/m-p/582210#M45618</guid>
      <dc:creator>VincentLaunstorfer</dc:creator>
      <dc:date>2019-03-20T15:11:09Z</dc:date>
    </item>
  </channel>
</rss>

