bpo-36251: Fix format strings used in match_repr() and stdprinter_repr() by sth · Pull Request #12252 · python/cpython (original) (raw)

In match_repr(), the marks are Py_ssize_t, not int.

In stdprinter_repr(), the argument is a pointer and the correct format specifier for that is %p (this includes the 0x prefix).

For reference: The docs for PyUnicode_FromFormat

https://bugs.python.org/issue36251