Ad
  • Custom User Avatar

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

  • Custom User Avatar

    I am still very confused by this, having tried many combinations of str.encode and str.decode, I am still getting UnicodeEncodeError and UnicodeDecodeError. All the tests with just ASCII characters pass for me.

  • Default User Avatar

    Well, I don't know if this was in response to your post, but I put "i.e." followed by the actual code you would use and the context of input and output. I'm hoping that's clear enough. If not, let me know.

  • Default User Avatar

    As posed, this kata cannot be solved in Python.
    The instructions say to "extend the string object", such that the syntax 'this is a string!!'.toBase64() would work.
    But 'this is a string!!' in Python is a built-in object (str), which cannot be extended.
    And behold, the test case doesn't make use of any "string object extension" but simply tests for the function toBase64(),
    which is not part of any class of course.

    The instructions should be amended to clarify what one should do for Python.

  • Default User Avatar

    Instructions are still not mentioning which Unicode encoding to expect. (It seems to be UTF-8.)