<?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 Blank Help with Interactive Python Window in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/blank-help-with-interactive-python-window/m-p/19844#M1535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While interactively scripting in ArcGIS Desktop, I always noticed but couldn't figure out why most Python functions and methods would show something in the Python Help Window but not all functions and methods.&amp;nbsp; At first, I thought some functions and methods lacked docstrings, which would cause the Help Window to be blank, but I often found those functions and methods actually had docstrings.&amp;nbsp; It was a mystery but not one worth wasting time on.&amp;nbsp; Serendipitously, I stumbled into the answer while sorting something else out this week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turns out, the interactive Python Window doesn't properly show the __doc__ special attribute in the Help Window for Python classes or functions/methods within classes.&amp;nbsp; For example, let's look at &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.FromWKT&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arcgis_python_window_fromwkt_help.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/104400_arcgis_python_window_fromwkt_help.PNG" /&gt;&lt;/P&gt;&lt;P&gt;You can see that ArcGIS Desktop is displaying the __doc__ special attribute in the Python Help Window.&amp;nbsp; Now let's look at &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.Polygon&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arcgis_python_window_polygon_help.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/104401_arcgis_python_window_polygon_help.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Although the __doc__ special attribute isn't overly verbose or detailed like with &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.FromWKT&lt;/SPAN&gt;, there is nothing being displayed in the Python Help Window.&amp;nbsp; For the longest time, I couldn't figure out what differentiated the former from the latter.&amp;nbsp; The answer, Python classes.&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.FromWKT&lt;/SPAN&gt; is a function defined at the module level whereas &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.Polygon&lt;/SPAN&gt; is a class.&amp;nbsp; Furthermore, for functions/methods defined within a class, the __doc__ special attribute isn't displayed either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ArcPy itself, the impact is noticeable, but whether it is significant or not is debatable.&amp;nbsp; The real issue arises because the interactive Python Window doesn't behave this way just for ArcPy but for all Python packages.&amp;nbsp; For example, look at the &lt;SPAN style="font-family: courier new,courier;"&gt;multiprocessing&lt;/SPAN&gt; module:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arcgis_python_window_pool_help.PNG" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/104504_arcgis_python_window_pool_help.PNG" /&gt;&lt;/P&gt;&lt;P&gt;For some Python packages, this bug/oversight has minimal impact, but there are other Python packages where a significant amount of useful documentation doesn't show up in the Python Help Window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 23:02:07 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2015-05-28T23:02:07Z</dc:date>
    <item>
      <title>Blank Help with Interactive Python Window</title>
      <link>https://community.esri.com/t5/python-questions/blank-help-with-interactive-python-window/m-p/19844#M1535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While interactively scripting in ArcGIS Desktop, I always noticed but couldn't figure out why most Python functions and methods would show something in the Python Help Window but not all functions and methods.&amp;nbsp; At first, I thought some functions and methods lacked docstrings, which would cause the Help Window to be blank, but I often found those functions and methods actually had docstrings.&amp;nbsp; It was a mystery but not one worth wasting time on.&amp;nbsp; Serendipitously, I stumbled into the answer while sorting something else out this week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turns out, the interactive Python Window doesn't properly show the __doc__ special attribute in the Help Window for Python classes or functions/methods within classes.&amp;nbsp; For example, let's look at &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.FromWKT&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arcgis_python_window_fromwkt_help.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/104400_arcgis_python_window_fromwkt_help.PNG" /&gt;&lt;/P&gt;&lt;P&gt;You can see that ArcGIS Desktop is displaying the __doc__ special attribute in the Python Help Window.&amp;nbsp; Now let's look at &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.Polygon&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arcgis_python_window_polygon_help.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/104401_arcgis_python_window_polygon_help.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Although the __doc__ special attribute isn't overly verbose or detailed like with &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.FromWKT&lt;/SPAN&gt;, there is nothing being displayed in the Python Help Window.&amp;nbsp; For the longest time, I couldn't figure out what differentiated the former from the latter.&amp;nbsp; The answer, Python classes.&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.FromWKT&lt;/SPAN&gt; is a function defined at the module level whereas &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.Polygon&lt;/SPAN&gt; is a class.&amp;nbsp; Furthermore, for functions/methods defined within a class, the __doc__ special attribute isn't displayed either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ArcPy itself, the impact is noticeable, but whether it is significant or not is debatable.&amp;nbsp; The real issue arises because the interactive Python Window doesn't behave this way just for ArcPy but for all Python packages.&amp;nbsp; For example, look at the &lt;SPAN style="font-family: courier new,courier;"&gt;multiprocessing&lt;/SPAN&gt; module:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arcgis_python_window_pool_help.PNG" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/104504_arcgis_python_window_pool_help.PNG" /&gt;&lt;/P&gt;&lt;P&gt;For some Python packages, this bug/oversight has minimal impact, but there are other Python packages where a significant amount of useful documentation doesn't show up in the Python Help Window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 23:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/blank-help-with-interactive-python-window/m-p/19844#M1535</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-05-28T23:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Blank Help with Interactive Python Window</title>
      <link>https://community.esri.com/t5/python-questions/blank-help-with-interactive-python-window/m-p/19845#M1536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Esri Support:&lt;/P&gt;&lt;P&gt;BUG-000088086:&amp;nbsp; Interactive Python Window doesn't display usage and tool-specific help in help window for all classes/functions&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now the real fun begins trying to get it fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 17:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/blank-help-with-interactive-python-window/m-p/19845#M1536</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-06-04T17:49:20Z</dc:date>
    </item>
  </channel>
</rss>

