36 karma · joined November 7, 2011
When I first started out, I was obsessed with only using the latest and greatest technologies, but I've come to realize over the course of my career that this is simply infeasible for many organizations.
How would we feel if the rest of the world characterized Americans by the antics of single individuals, like Lindsay Lohan or Miley Cyrus?
class Test(object):
pass
t = Test()
def test(self):
print('ehlo')
Test.test = test
t.test()
This is rarely done in practice, however (at least, as far as I can tell)Sorry for being a pedant :)
- "isgoodtime" is a magic variable that changes depending on when it is imported. It should therefore be either a function or method on an object.
- "if isgoodtime == True" should be "if isgoodtime:" (although this would probably change to "if isgoodtime():"
- words in functions should be separated by underscores, e.g., is_good_time, to_great_content