This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Misleading exception
Type: Stage: resolved
Components: Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, brett.cannon, python-dev
Priority: normal Keywords:

Created on 2012-05-07 22:33 by Arfrever, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg160178 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2012-05-07 22:33
$ python3.2 -c 'open("/dev/null", "w").read()'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
io.UnsupportedOperation: not readable
$ python3.3 -c 'open("/dev/null", "w").read()'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
_frozen_importlib.UnsupportedOperation: not readable
$ python3.3 -c 'import _frozen_importlib; _frozen_importlib.UnsupportedOperation'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'UnsupportedOperation'
msg160181 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-08 02:19
New changeset 2cd9dadd5c6c by Benjamin Peterson in branch 'default':
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)
http://hg.python.org/cpython/rev/2cd9dadd5c6c
History
Date User Action Args
2022-04-11 14:57:29adminsetgithub: 58950
2012-05-08 02:19:49python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg160181

resolution: fixed
stage: resolved
2012-05-07 22:33:31Arfrevercreate