golang_str: Demonstrate that PyArg_Parse C-API rejects bstr and ustr in many cases
It was discovered that even though bstr and ustr implement __bytes__ and __unicode__ to coerce automatically to/from bytes, at C-API level many functions reject them. For example on py3 PyArg_ParseTuple("s") rejects bstr with TypeError: argument 1 must be str, not golang.bstr -> Add a test to demonstrate such rejections. We will be lifting bstr/ustr acceptance level incrementally step-by-step in small steps, hopegully. /reported-by @kazuhiko /reported-at nexedi/pygolang!21 (comment 172595)
Showing
Please register or sign in to comment