Skip to content

Instantly share code, notes, and snippets.

@bobhancockgist
Created April 30, 2013 20:33
Show Gist options
  • Save bobhancockgist/5491729 to your computer and use it in GitHub Desktop.
Save bobhancockgist/5491729 to your computer and use it in GitHub Desktop.
Python: Docstring function
<snippet>
<content><![CDATA[
def $1($2):
""" ${3:Description}
Args:
${2/, ?/:\n\t/g}:
Returns:
$4
Raises:
$6
"""
myname = inspect.currentframe().f_code.co_name
]]></content>
<tabTrigger>docfunction</tabTrigger> -->
<scope>source.python</scope>
<description>Function template</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment