Last active
June 27, 2017 15:58
-
-
Save townie/0e6420134210ee7d64883298ea997883 to your computer and use it in GitHub Desktop.
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
# Implict return | |
class SomeClass(Object): | |
def implicit_do_stuff(self, val): | |
if self.some_value: | |
return val + 1 | |
return val | |
def implicit_do_stuff(self, val): | |
if self.some_value: | |
return val + 1 | |
else: | |
return val |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment