Ad
  • Custom User Avatar

    I tried something similar to this, but my _getattribute_ was called for _init_ as well as for x and bar. Reporting the _init_ attribute access caused the tests to fail. How did you get around this problem?

  • Custom User Avatar

    I'm using this site to improve my Python, and from your solution I learned about named tuples and enums. Very valuable! Thanks.

  • Custom User Avatar

    Great kata! It's a shame that it's only available in one language. I've tried to translate it into Python - why don't you take a look at my humble effort? I would love to hear your feedback.