Hacker News new | ask | show | jobs
by lclarkmichalek 5211 days ago

    #Python hacker
    <function omitted>
    sys.stdout.write(str(fact(6)) + '\n')
The call to str is unneeded. For consistency, it should be

    sys.stdout.write(fact(6).__str__() + "\n")
And if that example want's to be really "hacker"ish, then every function call should actually be a call to the __call__ method of each object.