golang_str: Fix bstr.tp_print(flags=print_repr)
On py2 objects are printed via their .tp_repr slot with flags=0 (contrary to Py_PRINT_RAW which requests to print str - https://docs.python.org/2.7/c-api/object.html#c.PyObject_Print) We were not handling repr'ing inside our tp_print implementation, and as the result e.g. b('мир') was printed on interactive console as '\xd0\xbc\xd0\xb8\xd1\x80' instead of b('мир'). Fix it.
Showing
Please register or sign in to comment