Skip to content

Instantly share code, notes, and snippets.

@tweekmonster
Created July 6, 2016 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tweekmonster/13509bf661f503f0ddf356e2c651fa0d to your computer and use it in GitHub Desktop.
Save tweekmonster/13509bf661f503f0ddf356e2c651fa0d to your computer and use it in GitHub Desktop.
I like python, but you can write some awful shit with it.
# This illustrates how ridiculous python functions can get.
# It is far from a common way to write functions.
# Though, I've seen comments inside of multiline arguments
# in the stdlib modules.
def hello \
( # This starts the hello function
arg1, # This is arg1
# I'm an extra comment
): # Begin hello function body
"""A docstring.
With variable indentaiton.
Which is perfectly legal.
"""
print('hello %s'
# Just stepping in for a moment. Don't mind me.
% arg1)
hello \
\
('world'
# Passing in the 'world' string
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment