[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Irit Katriel
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/issu

[issue31472] "Emulating callable objects" documentation misleading

2022-01-14 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue23183] timeit CLI best of 3: undocumented output format

2022-01-14 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue23183] timeit CLI best of 3: undocumented output format

2022-01-14 Thread Irit Katriel
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

[issue39316] settrace skips lines when chaining methods without arguments

2022-01-14 Thread Irit Katriel
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.or

[issue32876] HTMLParser raises exception on some inputs

2022-01-14 Thread Irit Katriel
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

[issue42609] Eval with too high string multiplication crashes newer Python versions

2022-01-14 Thread Irit Katriel
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/issue42

[issue44577] Probably defect in Python 3.7.11

2022-01-14 Thread Irit Katriel
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

[issue38656] [doc] clarify what data the mimetypes.MimeTypes class uses

2022-01-14 Thread Irit Katriel
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 ___ Pyt

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2022-01-14 Thread Irit Katriel
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.or

[issue32876] HTMLParser raises exception on some inputs

2022-01-14 Thread Irit Katriel
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 ___ Py

[issue45492] stdlib inspect documentation on code.co_names is incorrect

2022-01-14 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue45492> ___ ___ Pytho

[issue45991] Improve ambiguous docstrings in pkgutil

2022-01-14 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue45991> ___ ___ Pytho

[issue46328] add sys.exception()

2022-01-13 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46328] add sys.exception()

2022-01-13 Thread Irit Katriel
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

[issue46344] 3.11: except/else/if/raise traced incorrectly

2022-01-13 Thread Irit Katriel
Irit Katriel added the comment: Thank you Ned. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46344] 3.11: except/else/if/raise traced incorrectly

2022-01-13 Thread Irit Katriel
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

[issue30569] Tutorial section 2.1 has *nix example at 3.7, but Windows at 3.6

2022-01-13 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue30569> ___ ___ Python-bugs-list

[issue46363] Two typos in verions 3.7 document translation of zh_CN

2022-01-13 Thread Irit Katriel
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/issue46

[issue38204] Cannot compile on RPi with optimizations

2022-01-12 Thread Irit Katriel
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

[issue37595] Python 3.7.4 does not build on Raspbian Buster with optimizations

2022-01-12 Thread Irit Katriel
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 Bus

[issue32996] Improve What's New in 3.7

2022-01-12 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37591] test_concurrent_future failed

2022-01-12 Thread Irit Katriel
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

[issue37422] Documentation on the change of __path__ in Python 3

2022-01-12 Thread Irit Katriel
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 tracke

[issue36557] [doc] Clarify the meaning of /uninstall in windows cli

2022-01-12 Thread Irit Katriel
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 /uni

[issue46344] 3.11: except/else/if/raise traced incorrectly

2022-01-11 Thread Irit Katriel
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/issu

[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException

2022-01-11 Thread Irit Katriel
Irit Katriel added the comment: Yes, you’re right of course ;) -- ___ Python tracker <https://bugs.python.org/issue46343> ___ ___ Python-bugs-list mailin

[issue46344] 3.11: except/else/if/raise traced incorrectly

2022-01-11 Thread Irit Katriel
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/issue46

[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist

2022-01-11 Thread Irit Katriel
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

[issue28159] Deprecate isdst argument in email.utils.localtime

2022-01-11 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.11 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue28159> ___ ___ Pytho

[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException

2022-01-11 Thread Irit Katriel
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/issu

[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException

2022-01-11 Thread Irit Katriel
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

[issue7238] frame.f_lineno doesn't get updated after local trace function assigned to it

2022-01-10 Thread Irit Katriel
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 -> pend

[issue16482] pdb.set_trace() clobbering traceback on error

2022-01-10 Thread Irit Katriel
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

[issue6942] email.generator.Generator memory consumption

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue6942> ___ ___ Python-bugs-list

[issue27257] get_addresses results in traceback with an addrspec with an empty local part.

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: patch review -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.or

[issue23902] let exception react to being raised or the setting of magic properties (like __cause__) within Python

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue23902> ___ ___ Python-bugs-list

[issue46336] Sixth element of tuple from __reduce__(), inconsistency between pickle and copy

2022-01-10 Thread Irit Katriel
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

[issue46336] Sixth element of tuple from __reduce__(), inconsistency between pickle and copy

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46336> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
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/issue46

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
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/issue46

[issue32679] concurrent.futures should store full sys.exc_info()

2022-01-10 Thread Irit Katriel
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 -&g

[issue46332] Use raise..from in logging/config instead of assigning __cause__

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46332] Use raise..from in logging/config instead of assigning __cause__

2022-01-10 Thread Irit Katriel
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

[issue46332] Use raise..from in logging/config instead of assigning __cause__

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg410218 ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list m

[issue46332] Use raise..from in logging/config instead of assigning __cause__

2022-01-10 Thread Irit Katriel
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

[issue46332] Use raise..from in logging/config instead of assigning __cause__

2022-01-10 Thread Irit Katriel
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/issu

[issue46332] Use raise..from in logging/config instead of assigning __cause__

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.org/issue46332> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46332] Use raise..from in logging/config instead of assigning __cause__

2022-01-10 Thread Irit Katriel
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

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
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 <ht

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg410215 ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list m

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
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 <ht

[issue46330] Simplify the signature of __exit__

2022-01-10 Thread Irit Katriel
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.

[issue46330] Simplify the signature of __exit__

2022-01-10 Thread Irit Katriel
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

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
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/issu

[issue46328] add sys.exception()

2022-01-10 Thread Irit Katriel
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

[issue1283110] Give __len__() advice for "don't know"

2022-01-09 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/

[issue1598083] Top-level exception handler writes to stdout unsafely

2022-01-09 Thread Irit Katriel
Change by Irit Katriel : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue1598083> ___ ___ Pyth

[issue40064] py38: document xml.etree.cElementTree will be removed in 3.9

2022-01-09 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue40064> ___ ___ Pyth

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
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/issue46

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
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

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
Irit Katriel added the comment: Andre, are you saying that we should only RAISE Exception subclasses? -- ___ Python tracker <https://bugs.python.org/issue46

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread Irit Katriel
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

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailin

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
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 Exceptio

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
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/issue46

[issue24650] Error in yield expression documentation

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46216] spurious link to os.system() from os.times() documentation entry

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46216] spurious link to os.system() from os.times() documentation entry

2022-01-07 Thread Irit Katriel
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

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
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. Gre

[issue24650] Error in yield expression documentation

2022-01-07 Thread Irit Katriel
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/273cb8e7577d143830404f6779946a

[issue24650] Error in yield expression documentation

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue24650> ___ ___ Python-bugs-list mailing list Unsub

[issue19073] Inability to specific __qualname__ as a property on a class instance.

2022-01-07 Thread Irit Katriel
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

[issue46279] [docs] Minor information-ordering issue in __main__ doc

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue46279> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-01-06 Thread Irit Katriel
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 ___ Pyt

[issue9937] _winreg.EnumValue causes MemoryError

2022-01-06 Thread Irit Katriel
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 ->

[issue30337] Vague wording of pkgutil.walk_packages parameter 'prefix'

2022-01-06 Thread Irit Katriel
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 -&g

[issue33130] functools.reduce signature uses `iterable`, documentation should use the same term

2022-01-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33130> ___

[issue46286] use the new POP_JUMP_IF_NOT_NONE to simplify except* a bit

2022-01-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46286] use the new POP_JUMP_IF_NOT_NONE to simplify except* a bit

2022-01-06 Thread Irit Katriel
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/issu

[issue46286] use the new POP_JUMP_IF_NOT_NONE to simplify except* a bit

2022-01-06 Thread Irit Katriel
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

[issue45292] Implement PEP 654: Exception Groups

2022-01-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45292] Implement PEP 654: Exception Groups

2022-01-06 Thread Irit Katriel
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

[issue40545] Expose _PyErr_GetTopmostException

2022-01-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37287] [doc] Add section on pickling to exceptions documentation

2022-01-06 Thread Irit Katriel
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 su

[issue29466] pickle does not serialize Exception __cause__ field

2022-01-06 Thread Irit Katriel
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 do

[issue32696] Fix pickling exceptions with multiple arguments

2022-01-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32696> ___ ___

[issue32696] Fix pickling exceptions with multiple arguments

2022-01-06 Thread Irit Katriel
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

[issue27015] pickling and repr of exceptions with kwargs

2022-01-06 Thread Irit Katriel
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

[issue37489] pickling instance which inherited from Exception with keyword only parameter

2022-01-06 Thread Irit Katriel
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: -> dup

[issue37489] pickling instance which inherited from Exception with keyword only parameter

2022-01-06 Thread Irit Katriel
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, des

[issue33857] python exception on Solaris : code for hash blake2b was not found

2022-01-06 Thread Irit Katriel
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

[issue30569] Tutorial section 2.1 has *nix example at 3.7, but Windows at 3.6

2022-01-05 Thread Irit Katriel
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/i

[issue34178] test_tcl fails on the 3.7 branch

2022-01-05 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date status: open -> pending ___ Python tracker <https://bugs.python.org/issue34178> ___ ___ Python-bugs-

[issue20854] multiprocessing.managers.Server: problem with returning proxy of registered object

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue20854> ___ ___ Python-bugs-list

[issue31137] Add a path attribute to NamedTemporaryFile

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue31137> ___ ___

[issue31188] Makefile.pre.in: commoninstall: reformat

2022-01-04 Thread Irit Katriel
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/issu

<    2   3   4   5   6   7   8   9   10   11   >