<?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: &amp;quot;Unexpected EOF while parsing&amp;quot; in a very short code in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399127#M31485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that you have broken the unwritten rule:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Never name any folder, file, table, script, featureclass, field or variable starting with a digit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure to end in tears, especially in raster dataset manipulation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 19:34:18 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2012-03-26T19:34:18Z</dc:date>
    <item>
      <title>&amp;amp;quot;Unexpected EOF while parsing&amp;amp;quot; in a very short code</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399124#M31482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a longer piece of code and wanted to look at a list of rasters in a workspace to make sure I knew the formatting. Trying to create and print a list of raster names has continually raised a syntax error of 'unexpected EOF while parsing' for line six. (This would be followed by an indented "print raster" but I'm checking the syntax as I go). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy &amp;gt;&amp;gt;&amp;gt; from arcpy import env &amp;gt;&amp;gt;&amp;gt; env.workspace=r"S:\FIRE\ben_data\1973to1980\Eco01" &amp;gt;&amp;gt;&amp;gt; rasterlist=arcpy.ListRasters &amp;gt;&amp;gt;&amp;gt;&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; for raster in rasterlist: ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print raster &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have insight about why such an error would be raised on such a simple piece of code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, Python has continually auto-fills the last "raster" with "rasterlist" when I to execute the code block. Why is it doing this? (I understand I can just change that variable name--just wondering out of curiosity).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 19:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399124#M31482</guid>
      <dc:creator>AnneRiddle</dc:creator>
      <dc:date>2012-03-26T19:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: "Unexpected EOF while parsing" in a very short code</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399125#M31483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This line should have given you an error&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;rasterlist=arcpy.ListRasters&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Proper syntax is &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;rasterlist=arcpy.ListRasters()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 19:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399125#M31483</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-03-26T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: "Unexpected EOF while parsing" in a very short code</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399126#M31484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're right, of course...serious case of the Mondays over here, apparently. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts on the "auto-fill" on the last line?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 19:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399126#M31484</guid>
      <dc:creator>AnneRiddle</dc:creator>
      <dc:date>2012-03-26T19:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: "Unexpected EOF while parsing" in a very short code</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399127#M31485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that you have broken the unwritten rule:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Never name any folder, file, table, script, featureclass, field or variable starting with a digit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure to end in tears, especially in raster dataset manipulation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 19:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-unexpected-eof-while-parsing-amp-amp/m-p/399127#M31485</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2012-03-26T19:34:18Z</dc:date>
    </item>
  </channel>
</rss>

