<?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: Python Module Function Info Box Question in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621236#M48354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly the information I was looking for thanks Dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 15:59:16 GMT</pubDate>
    <dc:creator>MatthewRusso</dc:creator>
    <dc:date>2015-05-08T15:59:16Z</dc:date>
    <item>
      <title>Python Module Function Info Box Question</title>
      <link>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621234#M48352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have wrote a small "Module" that I call in my ArcGIS Python window to do simple tasks for me when I am doing edits.&amp;nbsp; When I call my Function basically only the function and the arguments show up.&amp;nbsp; In the module I have a docstring listed below in hopes that it would pick that up as well incase i want to share this with co-workers.&amp;nbsp; Anyone know the solution to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an example of one of the functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def calc_feet(table):
""" Creates a Field named "Feet" and calculates the Field """

py = "PYTHON_9.3"
var = "Feet"
type = "DOUBLE"
sql = "float(!shape.length@feet!)"
arcpy.AddField_management(table, var, type)
arcpy.CalculateField_management(table, var, sql, py, "#")

import gis # my module
gis.calc_feet("my table")

#help window only shows:
gis.calc_feet(table) with no docstring&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621234#M48352</guid>
      <dc:creator>MatthewRusso</dc:creator>
      <dc:date>2021-12-12T02:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Function Info Box Question</title>
      <link>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621235#M48353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"""
calling_script.py
Callings doc
"""
import sys
script = sys.argv[0]
import import_this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # import the module
reload(import_this)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # needed for testing otherwise the import is ignored
print("main script: {}\nHelp from import:\n{}".format(script, help(import_this)))
print("-----------------------")
print("this script doc:\n{}".format( __doc__ ))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imports this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"""
import_this.py
import_this ... main docstring
"""
import sys
def do_squat():
&amp;nbsp;&amp;nbsp;&amp;nbsp; """Doc string indented with 4 spaces
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'hello'
if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; do_squat()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results in this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; Help on module import_this:
NAME
&amp;nbsp;&amp;nbsp;&amp;nbsp; import_this - import_this.py
FILE
&amp;nbsp;&amp;nbsp;&amp;nbsp; d:\temp\import_this.py
DESCRIPTION
&amp;nbsp;&amp;nbsp;&amp;nbsp; import_this ... main docstring
FUNCTIONS
&amp;nbsp;&amp;nbsp;&amp;nbsp; do_squat()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Doc string indented with 4 spaces
main script: D:\Temp\calling_script.py
Help from import:
None
-----------------------
this script doc:
calling_script.py
Callings doc

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621235#M48353</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T02:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Function Info Box Question</title>
      <link>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621236#M48354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly the information I was looking for thanks Dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 15:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621236#M48354</guid>
      <dc:creator>MatthewRusso</dc:creator>
      <dc:date>2015-05-08T15:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Function Info Box Question</title>
      <link>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621237#M48355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the real thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.python.org/dev/peps/pep-0257/" title="https://www.python.org/dev/peps/pep-0257/"&gt;PEP 0257 -- Docstring Conventions | Python.org&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 00:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621237#M48355</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-05-09T00:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Function Info Box Question</title>
      <link>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621238#M48356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew&lt;/P&gt;&lt;P&gt;More documentation and a fuller example are included in my blog post &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/54403"&gt;Documenting Scripts .... part 2&lt;/A&gt; &lt;/P&gt;&lt;P&gt;which is a follow-up to an earlier one.&amp;nbsp; I have included Curtis's reference in the documentation as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 13:41:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-module-function-info-box-question/m-p/621238#M48356</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-05-09T13:41:49Z</dc:date>
    </item>
  </channel>
</rss>

