[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1
Change by Irit Katriel : -- type: behavior -> enhancement versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46377> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31472] "Emulating callable objects" documentation misleading
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue31472> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23183] timeit CLI best of 3: undocumented output format
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue23183> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23183] timeit CLI best of 3: undocumented output format
Irit Katriel added the comment: New changeset 73140de97cbeb01bb6c9af1da89ecb9355921e91 by Hugo van Kemenade in branch 'main': bpo-23183: Document the timeit output (GH-30359) https://github.com/python/cpython/commit/73140de97cbeb01bb6c9af1da89ecb9355921e91 -- ___ Python tracker <https://bugs.python.org/issue23183> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39316] settrace skips lines when chaining methods without arguments
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue39316> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32876] HTMLParser raises exception on some inputs
Irit Katriel added the comment: Reopening to discuss what the correct behaviour should be. -- resolution: out of date -> status: closed -> open versions: +Python 3.11 -Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue32876> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42609] Eval with too high string multiplication crashes newer Python versions
Irit Katriel added the comment: Apart from the 3.9 backport this is complete. -- nosy: +iritkatriel, lukasz.langa versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue42609> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44577] Probably defect in Python 3.7.11
Irit Katriel added the comment: Python 3,7 is no longer maintained. Please create a new issue if you see this on a current version (>= 3.9) and are able to provide more information. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44577> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38656] [doc] clarify what data the mimetypes.MimeTypes class uses
Change by Irit Katriel : -- keywords: -patch title: mimetypes for python 3.7.5 fails to detect matroska video -> [doc] clarify what data the mimetypes.MimeTypes class uses versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue38656> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue44594> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32876] HTMLParser raises exception on some inputs
Irit Katriel added the comment: The error() method was removed in issue31844. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed superseder: -> HTMLParser: undocumented not implemented method ___ Python tracker <https://bugs.python.org/issue32876> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45492] stdlib inspect documentation on code.co_names is incorrect
Change by Irit Katriel : -- keywords: +easy versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue45492> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45991] Improve ambiguous docstrings in pkgutil
Change by Irit Katriel : -- keywords: +easy versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue45991> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Irit Katriel added the comment: New changeset c590b581bba517f81ced2e6f531ccc9e2e22eab5 by Irit Katriel in branch 'main': bpo-46328: Add sys.exception() (GH-30514) https://github.com/python/cpython/commit/c590b581bba517f81ced2e6f531ccc9e2e22eab5 -- ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46344] 3.11: except/else/if/raise traced incorrectly
Irit Katriel added the comment: Thank you Ned. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46344> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46344] 3.11: except/else/if/raise traced incorrectly
Irit Katriel added the comment: New changeset 9c2ebb906d1c68c3d571b100c92ceb08805b94cd by Irit Katriel in branch 'main': bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544) https://github.com/python/cpython/commit/9c2ebb906d1c68c3d571b100c92ceb08805b94cd -- ___ Python tracker <https://bugs.python.org/issue46344> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30569] Tutorial section 2.1 has *nix example at 3.7, but Windows at 3.6
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue30569> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46363] Two typos in verions 3.7 document translation of zh_CN
Irit Katriel added the comment: 3.7 is no longer maintained. Is this also in newer versions? Can you submit a pull request to fix it in the main branch? -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue46363> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38204] Cannot compile on RPi with optimizations
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Python 3.7.4 does not build on Raspbian Buster with optimizations ___ Python tracker <https://bugs.python.org/issue38204> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37595] Python 3.7.4 does not build on Raspbian Buster with optimizations
Irit Katriel added the comment: Closed issue38204 as a duplicate of this. I don't know whether the problem still exists in current python versions. -- nosy: +iritkatriel title: Python 3.7.4 does not build on Raspbian Buster -> Python 3.7.4 does not build on Raspbian Buster with optimizations ___ Python tracker <https://bugs.python.org/issue37595> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32996] Improve What's New in 3.7
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32996> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37591] test_concurrent_future failed
Irit Katriel added the comment: Thanks for reporting, but 3.7 is no longer maintained so it's unlikely that anyone will investigate this anymore. Please create a new issue if you are seeing this on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37591> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37422] Documentation on the change of __path__ in Python 3
Irit Katriel added the comment: >From the discussion is seems like there is nothing that needs to be added to >the docs. I will close this in a while if nobody objects. -- nosy: +iritkatriel status: open -> pending ___ Python tracker <https://bugs.python.org/issue37422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36557] [doc] Clarify the meaning of /uninstall in windows cli
Irit Katriel added the comment: This is referring to Doc/using/windows.rst -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python, iritkatriel title: Python (Launcher)3.7.3 CMDLine install/uninstall -> [doc] Clarify the meaning of /uninstall in windows cli versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue36557> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46344] 3.11: except/else/if/raise traced incorrectly
Change by Irit Katriel : -- keywords: +patch pull_requests: +28742 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30544 ___ Python tracker <https://bugs.python.org/issue46344> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException
Irit Katriel added the comment: Yes, you’re right of course ;) -- ___ Python tracker <https://bugs.python.org/issue46343> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46344] 3.11: except/else/if/raise traced incorrectly
Irit Katriel added the comment: Thanks, I have a fix and will make a PR once I've written the test. -- ___ Python tracker <https://bugs.python.org/issue46344> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist
Change by Irit Katriel : -- keywords: +easy title: Enhance documentation of os.mkdir() -> [doc] mention that os.mkdir() raises FileNotFound if path does not exist versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue30677> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28159] Deprecate isdst argument in email.utils.localtime
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.11 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue28159> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException
Change by Irit Katriel : -- keywords: +patch pull_requests: +28733 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30531 ___ Python tracker <https://bugs.python.org/issue46343> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException
New submission from Irit Katriel : Following the removal of exc_type and exc_traceback from the interpreter's active exception in issue45711, we can now provide simplified get-set functions in the C Api: PyAPI_FUNC(void) PyErr_GetActiveException(PyObject **); PyAPI_FUNC(void) PyErr_SetActiveException(PyObject *); as alternatives to PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **); PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *); See also issue46328 re the corresponding change in the sys module. -- assignee: iritkatriel components: C API, Interpreter Core messages: 410299 nosy: iritkatriel priority: normal severity: normal status: open title: Add PyErr_GetActiveException and PyErr_SetActiveException type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46343> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7238] frame.f_lineno doesn't get updated after local trace function assigned to it
Irit Katriel added the comment: I am unable to reproduce this on 3.11, I get this: iritkatriel@Irits-MBP cpython % ./python.exe tracer_testcase.py 14 15 16 14 15 16 I am also unable to reproduce the problem in the related issue 16482. -- nosy: +iritkatriel status: open -> pending ___ Python tracker <https://bugs.python.org/issue7238> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16482] pdb.set_trace() clobbering traceback on error
Irit Katriel added the comment: iritkatriel@Irits-MBP cpython % cat pdb_traceback.py import pdb x = 0 while True: pdb.set_trace() y = "line of code not triggering an error" x += 1 assert x != 3 iritkatriel@Irits-MBP cpython % cat pdb_traceback.py import pdb x = 0 while True: pdb.set_trace() y = "line of code not triggering an error" x += 1 assert x != 3 iritkatriel@Irits-MBP cpython % ./python.exe pdb_traceback.py > /Users/iritkatriel/src/cpython/pdb_traceback.py(8)() -> y = "line of code not triggering an error" (Pdb) c > /Users/iritkatriel/src/cpython/pdb_traceback.py(8)() -> y = "line of code not triggering an error" (Pdb) c > /Users/iritkatriel/src/cpython/pdb_traceback.py(8)() -> y = "line of code not triggering an error" (Pdb) c Traceback (most recent call last): File "/Users/iritkatriel/src/cpython/pdb_traceback.py", line 10, in assert x != 3 ^ AssertionError -- nosy: +iritkatriel status: open -> pending ___ Python tracker <https://bugs.python.org/issue16482> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6942] email.generator.Generator memory consumption
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue6942> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27257] get_addresses results in traceback with an addrspec with an empty local part.
Change by Irit Katriel : -- resolution: -> works for me stage: patch review -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue27257> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23902] let exception react to being raised or the setting of magic properties (like __cause__) within Python
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue23902> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46336] Sixth element of tuple from __reduce__(), inconsistency between pickle and copy
Irit Katriel added the comment: I added Serhiy as the author of the deepcopy optimization. Although it was the first to use the 6th item, it is not documented so I wonder if it's the easier of the two to change. -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue46336> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46336] Sixth element of tuple from __reduce__(), inconsistency between pickle and copy
Change by Irit Katriel : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46336> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Irit Katriel added the comment: Cool. I just removed the do-not-merge label from the PR and I guess it's ready to be reviewed. -- ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Irit Katriel added the comment: I thought of something like sys.active_exception() but it seems like a lot to type. sys.exception() was suggested in pep3134. Does this change need a pep? -- ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32679] concurrent.futures should store full sys.exc_info()
Irit Katriel added the comment: Following the changes in issue45711, exc_info[2] is exactly the same as exc_info[1].__traceback__, so there is no point in making this change now. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32679> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46332] Use raise..from in logging/config instead of assigning __cause__
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46332] Use raise..from in logging/config instead of assigning __cause__
Irit Katriel added the comment: New changeset 0d639678d33a0f085851a07259b8fe2782943118 by Irit Katriel in branch 'main': bpo-46332: use raise..from instead of assigning __cause__ and raising (GH-30517) https://github.com/python/cpython/commit/0d639678d33a0f085851a07259b8fe2782943118 -- ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46332] Use raise..from in logging/config instead of assigning __cause__
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg410218 ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46332] Use raise..from in logging/config instead of assigning __cause__
Irit Katriel added the comment: Lib/logging/config.py has this, which looks like it's partly remnants of old exception handling APIs: except ImportError: e, tb = sys.exc_info()[1:] v = ValueError('Cannot resolve %r: %s' % (s, e)) v.__cause__, v.__traceback__ = e, tb raise v It is clearer if written as: except ImportError as e: v = ValueError('Cannot resolve %r: %s' % (s, e)) raise v from e (note that this doesn't copy the traceback from e to v, but this is redundant information anyway because e is chained to v as the cause). -- ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46332] Use raise..from in logging/config instead of assigning __cause__
Change by Irit Katriel : -- keywords: +patch pull_requests: +28719 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30517 ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46332] Use raise..from in logging/config instead of assigning __cause__
Change by Irit Katriel : -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46332] Use raise..from in logging/config instead of assigning __cause__
New submission from Irit Katriel : Lib/logging/config.py has this, which looks like it's partly remnants of old exception handling APIs: except ImportError: e, tb = sys.exc_info()[1:] v.__cause__, v.__traceback__ = e, tb raise v It is clearer if written as: except ImportError as e: v = ValueError('Cannot resolve %r: %s' % (s, e)) raise v from e (note that this doesn't copy the traceback from e to v, but this is redundant information anyway because e is chained to v as the cause). -- components: Library (Lib) messages: 410218 nosy: iritkatriel priority: normal severity: normal status: open title: Use raise..from in logging/config instead of assigning __cause__ versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Change by Irit Katriel : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Irit Katriel added the comment: This is part of a larger plan to reduce the footprint of the exc_info triplet on the language. See https://gist.github.com/iritkatriel/3927147548b10a7929cb0b680e3adc52 History -- ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg410215 ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Irit Katriel added the comment: This is part of a larger plan to reduce the footprint of the exc_info footprint on the language. See https://gist.github.com/iritkatriel/3927147548b10a7929cb0b680e3adc52 -- ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46330] Simplify the signature of __exit__
Irit Katriel added the comment: If it takes *args we should assume that it expects the triplet rather than a single exception. It's not an edge case, it's very common to write __exit__ like that. -- ___ Python tracker <https://bugs.python.org/issue46330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46330] Simplify the signature of __exit__
Irit Katriel added the comment: I've outlined a different approach here: https://gist.github.com/iritkatriel/3927147548b10a7929cb0b680e3adc52 Basically, to add introspection capabilities in the C API so that the interpreter can find out whether __exit__ expects one or three args. -- ___ Python tracker <https://bugs.python.org/issue46330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
Change by Irit Katriel : -- keywords: +patch pull_requests: +28717 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30514 ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46328] add sys.exception()
New submission from Irit Katriel : Following to changes in issue45711, the interpreter's internal representation of the active exception is just the exception instance (the exc_type and exc_traceback fields were removed). For backwards compatibility, sys.exc_info() constructs the (typ, val, tb) tuple from the instance and this will continue to be the case for some time because this tuple has leaked into quite a few APIs. However, now that the redundancy in the exc_info tuple is guaranteed by the way it's constructed, we can confidently add a sys.exception() method that returns just the exception instance (as suggested in PEP3134's section on future improvements). This small change will make a difference to learners because the (typ, val, tb) tuple looks quite cryptic to those who don't know about tracebacks, and the redundancy in it is confusing for those who do. -- assignee: iritkatriel messages: 410204 nosy: iritkatriel priority: normal severity: normal status: open title: add sys.exception() type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1283110] Give __len__() advice for "don't know"
Change by Irit Katriel : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue1283110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1598083] Top-level exception handler writes to stdout unsafely
Change by Irit Katriel : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue1598083> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40064] py38: document xml.etree.cElementTree will be removed in 3.9
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue40064> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Irit Katriel added the comment: Make a PR and we can then tweak it via code reviews, it will be easier. -- ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Irit Katriel added the comment: > For this advice (catching Exception and not BaseException) to be correct, > users should be advised (as they are in the tutorial) to raise exceptions > derived from Exception (and not BaseException). I disagree with that. -- ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Irit Katriel added the comment: Andre, are you saying that we should only RAISE Exception subclasses? -- ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28546] [doc] Clarify setting pdb breakpoints
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue28546> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28546] [doc] Clarify setting pdb breakpoints
Irit Katriel added the comment: New changeset 6d07a9fb7cb31433c376a1aa20ea32001da0a418 by Hugo van Kemenade in branch 'main': bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360) https://github.com/python/cpython/commit/6d07a9fb7cb31433c376a1aa20ea32001da0a418 -- ___ Python tracker <https://bugs.python.org/issue28546> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Change by Irit Katriel : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Change by Irit Katriel : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Irit Katriel added the comment: There are other issues in this doc: 1. The paragraph starting with "The except clause may specify a variable after the exception name.." appears after this face was used in an example. It should move up. 2. In the User-defined Exceptions Section, there is a link to the Classes tutorial in the beginning "(See Classes for more about Python classes)", and another one at the end, "More information on classes it presented in chapter Classes". The second one can be removed. -- ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Irit Katriel added the comment: Andre, I don't follow. The OP is reporting an issue with a line about raising exceptions. Why is it correct to advise us to raise only Exception subclasses? -- ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24650] Error in yield expression documentation
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue24650> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46216] spurious link to os.system() from os.times() documentation entry
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46216> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46216] spurious link to os.system() from os.times() documentation entry
Irit Katriel added the comment: New changeset c55616cf936bd8497d9ff321c03f7379f5f78a0e by Miss Islington (bot) in branch '3.9': bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326) (GH-30460) https://github.com/python/cpython/commit/c55616cf936bd8497d9ff321c03f7379f5f78a0e -- ___ Python tracker <https://bugs.python.org/issue46216> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46291] [doc] First argument to raise can also be BaseException
Irit Katriel added the comment: If you scroll up, you can see that BaseException was mentioned above: "All exceptions inherit from BaseException, and so it can be used to serve as a wildcard" so I don't think it will add confusion to fix this. And it will be more accurate. Gregor, would you like to submit a patch? -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24650] Error in yield expression documentation
Irit Katriel added the comment: New changeset 273cb8e7577d143830404f6779946a0bedb58758 by Jacob Walls in branch 'main': bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663) https://github.com/python/cpython/commit/273cb8e7577d143830404f6779946a0bedb58758 -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue24650> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24650] Error in yield expression documentation
Change by Irit Katriel : -- versions: +Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue24650> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19073] Inability to specific __qualname__ as a property on a class instance.
Irit Katriel added the comment: This is the check that is preventing qualname being a property: https://github.com/python/cpython/blob/994f90c0772612780361e1dc5fa5223dce22f70a/Objects/typeobject.c#L2853 Note that it is not the same check used for assignment, which is here: https://github.com/python/cpython/blob/994f90c0772612780361e1dc5fa5223dce22f70a/Objects/typeobject.c#L559 I think some unit tests are missing for properties, they would need to be added. -- nosy: +iritkatriel, vstinner versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.org/issue19073> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46279] [docs] Minor information-ordering issue in __main__ doc
Change by Irit Katriel : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue46279> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc
Change by Irit Katriel : -- keywords: +easy title: bug in dateutil\tz\tz.py -> [doc] Add example of platform-specific support for negative timestamps to the time doc versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue31327> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9937] _winreg.EnumValue causes MemoryError
Irit Katriel added the comment: > I can reproduce the issue on python2.x. I cannot on python3.x. Did anyone reproduce on python3.X? Why are versions 3.4/3.5 selected? -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker <https://bugs.python.org/issue9937> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30337] Vague wording of pkgutil.walk_packages parameter 'prefix'
Irit Katriel added the comment: Thank you Sam, pkgutil.walk_packages expected None or a list of strings. In issue24744 an error message was added for a string input as in your example. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Lack of type checks in pkgutil.walk_packages and friends ___ Python tracker <https://bugs.python.org/issue30337> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33130] functools.reduce signature uses `iterable`, documentation should use the same term
Change by Irit Katriel : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33130> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46286] use the new POP_JUMP_IF_NOT_NONE to simplify except* a bit
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46286> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46286] use the new POP_JUMP_IF_NOT_NONE to simplify except* a bit
Change by Irit Katriel : -- keywords: +patch pull_requests: +28646 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30439 ___ Python tracker <https://bugs.python.org/issue46286> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46286] use the new POP_JUMP_IF_NOT_NONE to simplify except* a bit
Change by Irit Katriel : -- assignee: iritkatriel components: Interpreter Core nosy: iritkatriel priority: normal severity: normal status: open title: use the new POP_JUMP_IF_NOT_NONE to simplify except* a bit type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46286> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45292] Implement PEP 654: Exception Groups
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45292> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45292] Implement PEP 654: Exception Groups
Irit Katriel added the comment: New changeset 9925e70e4811841556747a77acd89c1a70bf344a by Irit Katriel in branch 'main': bpo-45292: [PEP-654] exception groups and except* documentation (GH-30158) https://github.com/python/cpython/commit/9925e70e4811841556747a77acd89c1a70bf344a -- ___ Python tracker <https://bugs.python.org/issue45292> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40545] Expose _PyErr_GetTopmostException
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue40545> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37287] [doc] Add section on pickling to exceptions documentation
Irit Katriel added the comment: This is the same as issue32696. I'm turning this into a documentation issue. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python, iritkatriel title: picke cannot dump Exception subclasses with different super() args -> [doc] Add section on pickling to exceptions documentation type: -> enhancement versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue37287> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29466] pickle does not serialize Exception __cause__ field
Irit Katriel added the comment: > Attributes __context__, __cause__ and __traceback__ are not pickled. The > traceback objects are even not pickleable. It's not guaranteed that the __cause__ and __context__ are picklable either. Should we try to pickle them, or should we document this and suggest traceback.TracebackException for storing or transmitting exception information? -- ___ Python tracker <https://bugs.python.org/issue29466> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32696] Fix pickling exceptions with multiple arguments
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32696> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32696] Fix pickling exceptions with multiple arguments
Irit Katriel added the comment: This isn't really an issue with exceptions, it's just that __reduce__ goes out of sync with the object's constructor signature. Here's a simple example of the same: class Base: def __init__(self, msg): self.msg = msg def __reduce__(self): return type(self), (self.msg,) class Derived(Base): def __init__(self, a, b): super().__init__(f'{a}|{b}') x = Derived('a', 'b') assert x.msg == 'a|b' y = pickle.dumps(x, -1) z = pickle.loads(y) --- Output: Traceback (most recent call last): File "/Users/iritkatriel/src/cpython/zz.py", line 22, in z = pickle.loads(y) ^^^ TypeError: Derived.__init__() missing 1 required positional argument: 'b' If I define __reduce__ on Derived to return an arg tuple of the right length for its __init__, it works: class Derived(Base): def __init__(self, a, b): super().__init__(f'{a}|{b}') def __reduce__(self): return type(self), tuple(self.msg.split('|')) But note that this is not something we could make the base class do, it has no way of finding out what the semantics of the derived class constructor args are. -- ___ Python tracker <https://bugs.python.org/issue32696> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27015] pickling and repr of exceptions with kwargs
Change by Irit Katriel : -- title: subprocess.CalledProcessError's repr changes based on kwargs, and doesn't unpickle -> pickling and repr of exceptions with kwargs versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue27015> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37489] pickling instance which inherited from Exception with keyword only parameter
Irit Katriel added the comment: > I want to known [...] how to implement the logic in code 2 (passing keyword > only parameter to __new__/__init__ when pickling for class inherted from > Exception) This is currently a problem, see issue27015. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> subprocess.CalledProcessError's repr changes based on kwargs, and doesn't unpickle ___ Python tracker <https://bugs.python.org/issue37489> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37489] pickling instance which inherited from Exception with keyword only parameter
Irit Katriel added the comment: > I want to known why it is It's because Exception implements __reduce__ and that takes precedence over __getnewargs_ex__. You can see that with this example: """" import pickle class MyException(): def __init__(self, desc, item): super().__init__() self.desc = desc self.item = item def __getnewargs_ex__(self): print('called in {}.__getnewargs_ex__'.format(self.__class__.__name__)) return (self.desc,), self.__dict__ def __reduce__(self): print('called in {}.__reduce__'.format(self.__class__.__name__)) return MyException, (self.desc, self.item), e = MyException('testing', item='cpu') s = pickle.dumps(e, protocol=-1) x = pickle.loads(s) """" Output: called in MyException.__reduce__ -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue37489> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33857] python exception on Solaris : code for hash blake2b was not found
Irit Katriel added the comment: Python 3.6 is no longer maintained. Please create a new issue if you are seeing this problem on a current (>= 3.9) version of Python. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33857> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30569] Tutorial section 2.1 has *nix example at 3.7, but Windows at 3.6
Irit Katriel added the comment: I think this has all been changed by now, in a number of commits. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker <https://bugs.python.org/issue30569> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34178] test_tcl fails on the 3.7 branch
Change by Irit Katriel : -- resolution: -> out of date status: open -> pending ___ Python tracker <https://bugs.python.org/issue34178> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20854] multiprocessing.managers.Server: problem with returning proxy of registered object
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue20854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31137] Add a path attribute to NamedTemporaryFile
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue31137> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31188] Makefile.pre.in: commoninstall: reformat
Change by Irit Katriel : -- keywords: +easy type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue31188> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com