New submission from Gorialis <sansgorialis+...@gmail.com>:

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.

----------
components: Extension Modules
messages: 315154
nosy: Gorialis
priority: normal
severity: normal
status: open
title: xxsubtype.bench does not function correctly on CPython 3+
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33253>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to