New submission from Egor :
In this section https://docs.python.org/3/howto/descriptor.html#class-methods
in the example of python implementation of ClassMethod inside __get__ method I
think that we should check hasattr(self.f, "__get__") instead of hasattr(obj,
New submission from Egor Dranischnikow :
The C-API for Python2.7
https://docs.python.org/2/c-api/bytearray.html#c.PyByteArray_AsString
lacks the sentence: "The returned array always has an extra null byte
appended." which clarifies, that the returned C-string is null-termina
New submission from Egor Tensin:
I've come across an issue of Python 3.5.1 appending an extra newline when
print()ing non-ASCII strings on Windows.
This only happens when the active "code page" is set UTF-8 in cmd.exe:
>chcp
Active code page: 65001
Now, if I try