[issue45175] No warning with '-W always' and cached import
New submission from Jason Yundt : I have a script which always produces a warning when you run it. If I import always_warns from another script, that script will only produce a warning once. Steps to reproduce: $ python -W always always_warns.py /tmp/Bug reproduction/always_warns.py:1: DeprecationWarning: invalid escape sequence \ "\ " $ python -W always always_warns.py /tmp/Bug reproduction/always_warns.py:1: DeprecationWarning: invalid escape sequence \ "\ " $ python -W always imports_always_warns.py /tmp/Bug reproduction/always_warns.py:1: DeprecationWarning: invalid escape sequence \ "\ " $ python -W always imports_always_warns.py $ There should be a warning for that last one, but there isn’t. If I delete __pycache__, imports_always_warns.py makes the warning appear again. -- files: Bug reproduction.zip messages: 401648 nosy: jayman priority: normal severity: normal status: open title: No warning with '-W always' and cached import type: behavior versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 Added file: https://bugs.python.org/file50278/Bug reproduction.zip ___ Python tracker <https://bugs.python.org/issue45175> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44510] file.read() UnicodeDecodeError with large files on Windows
Change by Jason Yundt : -- nosy: +jayman ___ Python tracker <https://bugs.python.org/issue44510> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42492] [unittest] Missing docs for context manager attributes
New submission from Jason Yundt : The documentation talks about how assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex can be used as context managers. It also talks about the attributes of those context managers. Some attributes aren't documented. For example, the warning attribute of the assertRaises or assertRaisesRegex context manager isn't documented. -- assignee: docs@python components: Documentation, Tests messages: 382012 nosy: docs@python, jayman priority: normal severity: normal status: open title: [unittest] Missing docs for context manager attributes type: enhancement versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue42492> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com