Issue 33253: xxsubtype.bench does not function correctly on CPython 3+ (original) (raw)
Due to the OS|i
signature of xxsubtype.bench
, it accepts bytes
as its second argument in CPython 3+, however, it does a call PyObject_GetAttr
which only accepts PyString
.
This means that if you give the function bytes
, it fails on the getattr call, but if you give it anything else, it rejects it as it doesn't match the signature.
While the module itself does not contribute to CPython's functionality (and is infact optional), since it serves as an example, it should actually function, as it does in CPython 2.