[issue21720] "TypeError: Item in ``from list'' not a string" message

Serhiy Storchaka report at bugs.python.org
Wed Oct 12 00:43:52 EDT 2016


Serhiy Storchaka added the comment:

If run Python 3 with -bb:

>>> __import__('encodings', fromlist=[b'aliases'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1000, in _handle_fromlist
BytesWarning: Comparison between bytes and string

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21720>
_______________________________________


More information about the Python-bugs-list mailing list