[issue46202] remove opcode POP_EXCEPT_AND_RERAISE

2021-12-30 Thread Irit Katriel
New submission from Irit Katriel : Following issue45711 this opcode can be replaced by ADDOP(c, ROT_THREE); ADDOP(c, ROT_THREE); ADDOP(c, POP_EXCEPT); ADDOP_I(c, RERAISE, 1); -- assignee: iritkatriel components: Interpreter Core messages: 409356 nosy: iritkatriel priority: normal

[issue46202] remove opcode POP_EXCEPT_AND_RERAISE

2021-12-30 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30302 ___ Python tracker <https://bugs.python.org/issu

[issue45033] Calls to PyErr_PrintEx in destructors cause calling async functions to incorrectly return None

2021-12-30 Thread Irit Katriel
Irit Katriel added the comment: Zac, the documentation for PyErr_Print [1] states that it clears the error indicator. This is akin to handling the exception. Was this your intention? If you want to print the exception without clearing it, I think you would probably need to call PyErr_Fetch

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

2021-12-30 Thread Irit Katriel
Irit Katriel added the comment: I think this can be closed as out of date because PyFile_WriteString/Object no longer use puts and they do check for errors. The error checking of PyFile_WriteString/Object in the traceback display code was the subject of Issue45635. -- nosy

[issue35166] BUILD_MAP_UNPACK doesn't function as expected for dict subclasses

2021-12-30 Thread Irit Katriel
Irit Katriel added the comment: BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL have been removed. -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue35

[issue46214] Remove unused opcode ROT_FOUR

2021-12-31 Thread Irit Katriel
Change by Irit Katriel : -- assignee: iritkatriel components: Interpreter Core nosy: iritkatriel priority: normal severity: normal status: open title: Remove unused opcode ROT_FOUR versions: Python 3.11 ___ Python tracker <https://bugs.python.

[issue46214] Remove unused opcode ROT_FOUR

2021-12-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28531 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30314 ___ Python tracker <https://bugs.python.org/issu

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -28503 ___ Python tracker <https://bugs.python.org/issue45711> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: This is done, there will be more cleanups that this enables but they can have their own issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -28193 ___ Python tracker <https://bugs.python.org/issue45711> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -28217 ___ Python tracker <https://bugs.python.org/issue45711> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46219] except* assumes that an exception group is truth

2022-01-01 Thread Irit Katriel
New submission from Irit Katriel : except* checks truthiness of the output of PREP_RERAISE_STAR, and this gives the wrong result for false ExceptionGroup subclasses. See https://github.com/python/cpython/pull/30302#discussion_r776825568 -- components: Interpreter Core messages: 409454

[issue46219] except* assumes that an exception group is truthy

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- title: except* assumes that an exception group is truth -> except* assumes that an exception group is truthy ___ Python tracker <https://bugs.python.org/issu

[issue46221] Simplify except* implementation and move helpers to exceptions.c

2022-01-01 Thread Irit Katriel
New submission from Irit Katriel : Following issue45711, the implementation of except* can be simplified - we do not need to use POP_EXCEPT_AND_RERAISE to reraise the exception calculated by PREP_RERAISE_STAR, we can instead 1. Make PREP_RERAISE_STAR not push a dummy lasti to the stack. 2

[issue46219] except* assumes that an exception group is truthy

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28538 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30289 ___ Python tracker <https://bugs.python.org/issu

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28539 pull_request: https://github.com/python/cpython/pull/30289 ___ Python tracker <https://bugs.python.org/issue45

[issue46221] Simplify except* implementation and move helpers to exceptions.c

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28540 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30289 ___ Python tracker <https://bugs.python.org/issu

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

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 2.0 -> 3.0 pull_requests: +28541 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30326 ___ Python tracker <https://bugs.python.org/i

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

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46216> ___ _

[issue46219] except* assumes that an exception group is truthy

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: ... "for falsy ExceptionGroup subclasses" -- ___ Python tracker <https://bugs.python.org/issue46219> ___ ___ Python-b

[issue45744] Fix Flawfinder C Errors

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: Can you specify what the flaws your discovered are, either in this issue or though a PR? -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue45

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

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: I think this proposal should be rejected. We cannot safely pass control back to python code in the midst of raising an exception. -- resolution: -> rejected status: open -> pending ___ Python tracker

[issue45615] Missing test for type of error when printing traceback for non-exception

2022-01-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset a82baed0e9e61c0d8dc5c12fc08de7fc172c1a38 by Irit Katriel in branch 'main': bpo-45615: Add missing test for printing traceback for non-exception. Fix traceback.py (GH-30091) https://github.com/python/cpyt

[issue45615] Missing test for type of error when printing traceback for non-exception

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

[issue46219] except* assumes that an exception group is truthy

2022-01-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 65e7c1f90e9136fc61f4af029b065d9f6c5664c3 by Irit Katriel in branch 'main': bpo-46219, 46221: simplify except* implementation following exc_info changes. Move helpers to exceptions.c. Do not assume that exception groups are truthy.

[issue46219] except* assumes that an exception group is truthy

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

[issue46221] Simplify except* implementation and move helpers to exceptions.c

2022-01-02 Thread Irit Katriel
Irit Katriel added the comment: Fixed in https://github.com/python/cpython/pull/30289. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34931] os.path.splitext with more dots

2022-01-02 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 5.0 -> 6.0 pull_requests: +28559 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30347 ___ Python tracker <https://bugs.python.org/i

[issue44669] TypeError: 'type' object is not subscriptable

2022-01-02 Thread Irit Katriel
Irit Katriel added the comment: I'm closing this because there is not enough information here to understand the issue and there was no reply to follow-up questions. Please reopen or create a new issue if you are still having a problem with this. -- nosy: +iritkatriel resol

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 51700bf08b0dd4baf998440b2ebfaa488a2855ba by Irit Katriel in branch 'main': bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) https://github.com/python/cpyt

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8184a613b93d54416b954e667951cdf3d069cc13 by Miss Islington (bot) in branch '3.10': bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) (GH-30368) https://github.com/python/cpyt

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 4a792ca95c1a994b07d18fe06e2104d5b1e0b796 by Miss Islington (bot) in branch '3.9': bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) (GH-30369) https://github.com/python/cpyt

[issue34931] os.path.splitext with more dots

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

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2022-01-03 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue34538> ___ ___ Python-bugs-list mailing list Unsub

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

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

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) resolution: fixed -> ___ Python tracker <https://bugs.python.org/issue34931> ___ ___ Python-bugs-lis

[issue46251] logger.config.configure_formatter executes arbitrary code

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

[issue42259] pprint: infinite recursion for saferepr() when using nested objects, but str() works

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: The documentation change in the PR clarifies the current state of things. @serhiy.storchaka - do you have a view on whether we should aim for an actual fix, or just document and close? -- ___ Python tracker

[issue46202] remove opcode POP_EXCEPT_AND_RERAISE

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

[issue33252] [doc] Clarify ResourceWarning documentation

2022-01-04 Thread Irit Katriel
Irit Katriel added the comment: New changeset 01b12942d0ba2fd3c2efdfb796e8816efc607ee7 by Miss Islington (bot) in branch '3.10': bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30395) https://github.com/python/cpyt

[issue33252] [doc] Clarify ResourceWarning documentation

2022-01-04 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8f082e2bf43c1367e30d00874267dd25f7256cd0 by Miss Islington (bot) in branch '3.9': bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30396) https://github.com/python/cpyt

[issue33252] [doc] Clarify ResourceWarning documentation

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

[issue17951] TypeError during gdb backtracing

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols __

[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

[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> ___ ___

[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

[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-

[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

[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

[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

[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

[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.

[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

[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> ___ ___

[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 docume

[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 differe

[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

[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/9925e70e4811841556747a77acd89c

[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

[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

[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 : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[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> ___

[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

[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 ->

[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

[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:

[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

[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

[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/273cb8e7577d14383040

[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.

[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/cpyt

[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

[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

[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/is

[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 Exceptions Section,

[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
Change by Irit Katriel : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue46291> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/6d07a9fb7cb31433c376a1aa20ea32

[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

[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

[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 disagree

[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

[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

[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

[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/

[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

[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

[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

[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://bu

[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

[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 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 : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ 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 Import

[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
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
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,

[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: 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/0d639678d33a0f085851a07259b8fe

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