[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Egor
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,

[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2018-06-02 Thread Egor Dranischnikow
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

[issue26345] Extra newline appended to UTF-8 strings on Windows

2016-02-11 Thread Egor Tensin
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