[New-bugs-announce] [issue47026] BytesWarning in zipimport paths on sys.path

Thomas Grainger report at bugs.python.org
Tue Mar 15 09:29:09 EDT 2022


New submission from Thomas Grainger <tagrain at gmail.com>:

importing from a bytes zipimport path on sys.path results in a BytesWarning: Comparison between bytes and string

running the reproducer with `python -b` shows:
python -b zipfile_demo.py 
<frozen importlib._bootstrap_external>:1345: BytesWarning: Comparison between bytes and string

see also https://bugs.python.org/issue47025

----------
components: Library (Lib)
files: zipfile_demo.py
messages: 415245
nosy: graingert
priority: normal
severity: normal
status: open
title: BytesWarning in zipimport paths on sys.path
versions: Python 3.10, Python 3.11, Python 3.9
Added file: https://bugs.python.org/file50680/zipfile_demo.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47026>
_______________________________________


More information about the New-bugs-announce mailing list