Created
July 6, 2016 05:21
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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