New submission from Marnanel Thurman <tho...@thurman.org.uk>:

bytes() doesn't accept a dict as parameter. If you attempt to pass one, you 
receive a TypeError with the baffling message "'str' object cannot be 
interpreted as an integer".

 >> bytes({'a':1})
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 TypeError: 'str' object cannot be interpreted as an integer

----------
components: Interpreter Core
messages: 327490
nosy: marnanel
priority: normal
severity: normal
status: open
title: passing a dict to bytes() gives unhelpful error message
versions: Python 3.5

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

Reply via email to