You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' object cannot be interpreted as an integer```
… except that bytes.extend doesn't even accept integers as arguments; the error refers to the first element of the string, which happens also to be a string in Python. Meh.
Could CPython please complain about requiring the string to be encoded instead?
Bug description:
… except that
bytes.extenddoesn't even accept integers as arguments; the error refers to the first element of the string, which happens also to be a string in Python. Meh.Could CPython please complain about requiring the string to be encoded instead?
CPython versions tested on:
main branch
Operating systems tested on:
Linux
Linked PRs