<?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: Why are some items missing from intellisense? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-are-some-items-missing-from-intellisense/m-p/95596#M7433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the helpful answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 12:35:41 GMT</pubDate>
    <dc:creator>ChrisHills</dc:creator>
    <dc:date>2014-10-08T12:35:41Z</dc:date>
    <item>
      <title>Why are some items missing from intellisense?</title>
      <link>https://community.esri.com/t5/python-questions/why-are-some-items-missing-from-intellisense/m-p/95594#M7431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating python scripts, I find that there items missing from the intellisense popups in the Python window. I also see that the same items are missing when examining an object with dir().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14123384621813758 jive_text_macro" jivemacro_uid="_14123384621813758" modifiedtitle="true"&gt;
&lt;P&gt;cursor = arcpy.SearchCursor("My Feature Class")&lt;/P&gt;
&lt;P&gt;row = cursor.next()&lt;/P&gt;
&lt;P&gt;dir(row)&lt;/P&gt;
&lt;P&gt;['__class__', '__cmp__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattr__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__passthrough_to_ao__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_arc_object', '_go', 'getValue', 'isNull', 'setNull', 'setValue']&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;dir(row.SHAPE)&lt;/P&gt;
&lt;P&gt;['JSON', 'WKB', 'WKT', '__add__', '__class__', '__cmp__', '__delattr__', '__dict__', '__doc__', '__format__', '__from_scripting_arc_object__', '__geo_interface__', '__getattribute__', '__hash__', '__init__', '__iter__', '__module__', '__new__', '__or__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__type_mapping__', '__type_string__', '__weakref__', '__xor__', '_arc_object', '_fromGeoJson', '_go', '_passthrough', 'area', 'boundary', 'buffer', 'centroid', 'clip', 'contains', 'convexHull', 'crosses', 'cut', 'difference', 'disjoint', 'distanceTo', 'equals', 'extent', 'firstPoint', 'getArea', 'getLength', 'getPart', 'hullRectangle', 'intersect', 'isMultipart', 'labelPoint', 'lastPoint', 'length', 'length3D', 'measureOnLine', 'overlaps', 'partCount', 'pointCount', 'positionAlongLine', 'projectAs', 'queryPointAndDistance', 'snapToLine', 'spatialReference', 'symmetricDifference', 'touches', 'trueCentroid', 'type', 'union', 'within']&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Note that SHAPE is missing from the output of dir(row). In the intellisense popup it shows getValue, isNull, setNull, setValue, but not SHAPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes it a bit more difficult when writing scripts as I have to remember that the object is missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 12:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-are-some-items-missing-from-intellisense/m-p/95594#M7431</guid>
      <dc:creator>ChrisHills</dc:creator>
      <dc:date>2014-10-03T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some items missing from intellisense?</title>
      <link>https://community.esri.com/t5/python-questions/why-are-some-items-missing-from-intellisense/m-p/95595#M7432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember that &lt;CODE&gt;SHAPE&lt;/CODE&gt; is a special case, it's a column name in the row. All of the Row's column name attributes are computed at the very last possible minute. The class has its usual attributes like its getValue method, but then it &lt;A href="https://docs.python.org/2/reference/datamodel.html#object.__getattr__"&gt;overrides the &lt;CODE&gt;__getattr__&lt;/CODE&gt; method&lt;/A&gt; as a last-ditch chance for the class instance to return a value for &lt;CODE&gt;object.SOMETHING&lt;/CODE&gt; before Python throws an &lt;A href="https://docs.python.org/2/library/exceptions.html#exceptions.AttributeError"&gt;&lt;CODE&gt;AttributeError&lt;/CODE&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TL;DR&lt;/STRONG&gt;: The row class doesn't have each individual column name as an attribute. It instead uses some Python magic to allow &lt;CODE&gt;Row.COLUMN&lt;/CODE&gt; to act as syntactic sugar for &lt;CODE&gt;Row.getValue("COLUMN")&lt;/CODE&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-are-some-items-missing-from-intellisense/m-p/95595#M7432</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-10-07T16:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some items missing from intellisense?</title>
      <link>https://community.esri.com/t5/python-questions/why-are-some-items-missing-from-intellisense/m-p/95596#M7433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the helpful answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-are-some-items-missing-from-intellisense/m-p/95596#M7433</guid>
      <dc:creator>ChrisHills</dc:creator>
      <dc:date>2014-10-08T12:35:41Z</dc:date>
    </item>
  </channel>
</rss>

