Ad
  • Custom User Avatar

    Why are there no sample tests?

  • Custom User Avatar

    I solved the attempt without passing the normal test cases :O

  • Custom User Avatar

    Why cannot we have print logs ? :( So hard to debug ...

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I might be overlooking the obvious solution to this, but I have a working solution using a Bdb debugger that eats my exceptions when I need it to. Works locally, but the tests return

    Traceback (most recent call last):
      File "main.py", line 1, in <module>
        from solution import *
      File "/home/codewarrior/solution.py", line 2, in <module>
        import bdb
      File "/usr/local/lib/python3.6/bdb.py", line 6, in <module>
        from inspect import CO_GENERATOR, CO_COROUTINE, CO_ASYNC_GENERATOR
      File "/usr/local/lib/python3.6/inspect.py", line 35, in <module>
        import ast
      File "/usr/local/lib/python3.6/ast.py", line 229, in <module>
        class NodeVisitor(object):
    NameError: __build_class__ not found
    

    Is this the author's doing? Or perhaps something related to CW's Python image?

    Too bad, I'm at a loss as to how this can be solved without with (except perhaps cheesing it and obfuscating the with call inside an exec call)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution