[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

[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

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

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

[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

[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

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

[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

[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

[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

[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

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

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

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

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

[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

[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

[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

[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. (GH-30289

[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

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

[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

[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

[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

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

[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

[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

[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

[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

[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 : -- title: except* assumes that an exception group is truth -> except* assumes that an exception group is truthy ___ Python tracker <https://bugs.python.org/issu

[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

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

[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
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: -28503 ___ Python tracker <https://bugs.python.org/issue45711> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

[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

[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

[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

[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

[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

[issue13672] Add co_qualname attribute in code objects

2021-12-29 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Propagate qualname from the compiler unit to code objects for finer grained profiling data ___ Python tra

[issue12535] Chained tracebacks are confusing because the first traceback is minimal

2021-12-29 Thread Irit Katriel
Irit Katriel added the comment: This was created about 10 years ago, I wonder if people still feel there is a need to change something here, or did we all get used to the status quo by now? In particular, the suggestion is to indicate that the traceback of chained exceptions is truncated

[issue45108] frame.f_lasti points at DICT_MERGE instead of CALL_FUNCTION_EX in Windows only

2021-12-29 Thread Irit Katriel
Irit Katriel added the comment: I've reproduced this on 3.10 but in 3.11 the result on windows is correct, f_lasti is of the CALL_FUNCTION_EX opcode. -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue45

[issue9350] add remove_argument_group to argparse

2021-12-29 Thread Irit Katriel
Change by Irit Katriel : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue9350> ___ ___ Pyth

[issue17024] cElementTree calls end() on parser taget even if start() fails

2021-12-29 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: needs patch -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.or

[issue28141] shutil.copystat utime lookup fails on certain Android file systems

2021-12-29 Thread Irit Katriel
Irit Katriel added the comment: Please create a new issue if this is still a problem on a currentl version of python (>= 3.9). -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tra

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

2021-12-29 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28503 pull_request: https://github.com/python/cpython/pull/30289 ___ Python tracker <https://bugs.python.org/issue45

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

2021-12-28 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue42259> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46155] Implement ExceptionGroup __new__

2021-12-22 Thread Irit Katriel
Irit Katriel added the comment: False alarm, this is already as it should be. Me needs a couple of weeks offline is all it is. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue46155] Implement ExceptionGroup __new__

2021-12-22 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> iritkatriel ___ Python tracker <https://bugs.python.org/issue46155> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46155] Implement ExceptionGroup __new__

2021-12-22 Thread Irit Katriel
New submission from Irit Katriel : Currently ExceptionGroup inherits __new__ from BaseExceptionGroup, it should have its own __new__ implementation which raises a TypeError if any contained exception is not an Exception subclass. -- messages: 409047 nosy: gvanrossum, iritkatriel

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

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

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-21 Thread Irit Katriel
Irit Katriel added the comment: New changeset c66fc0fb53b5316dc325fde3bc738890515d38a4 by Irit Katriel in branch 'main': bpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH-30159) https://github.com/python/cpython/commit

[issue22047] Deprecate unsupported nesting of argparse groups

2021-12-17 Thread Irit Katriel
Irit Katriel added the comment: _MutuallyExclusiveGroup inherits add_argument_group from _ArgumentGroup. -- ___ Python tracker <https://bugs.python.org/issue22

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue46107> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: With the patch: >>> e = ExceptionGroup("eg", [ValueError(1), TypeError(2)]) >>> e.__note__ = "a note" >>> e.split(ValueError) (ExceptionGroup('eg', [ValueError(1)]), ExceptionGroup('eg', [TypeError(2)])) >>&

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

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

[issue45635] Tidy up error handling in traceback.c / python run.c

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

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8d6155ee9d1b05946f951d0ba602b9f63810fe0f by Irit Katriel in branch 'main': bpo-45635: Do not suppress errors in functions called from _PyErr_Display (GH-30073) https://github.com/python/cpython/commit/8d6155ee9d1b05946f951d0ba602b9f63810fe0f

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> iritkatriel ___ Python tracker <https://bugs.python.org/issue46107> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
New submission from Irit Katriel : >>> e = ExceptionGroup("eg", [ValueError(1), TypeError(2)]) >>> e.__note__ = "a note" >>> e.split(ValueError) (ExceptionGroup('eg', [ValueError(1)]), ExceptionGroup('eg', [TypeError(2)])) >>> e.split(Val

[issue45292] Implement PEP 654: Exception Groups

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28377 pull_request: https://github.com/python/cpython/pull/30158 ___ Python tracker <https://bugs.python.org/issue45

[issue46058] argparse: arg groups and mutually exclusive groups behave inconsitently

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. Note Paul's comment about why nesting mutually exclusive groups does not give you anything in terms of semantics. -- nosy

[issue38590] argparse unexpected behavior with argument group inside mutually exclusive group

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deprecate

[issue45690] Argparse exclusive group inside required exclusive group displays incorrectly

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deprecate

[issue22047] Deprecate unsupported nesting of argparse groups

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

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Nesting argument groups and mutually exclusive groups is now deprecated (see issue22047). Thank you for the bug report. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.p

[issue22047] Deprecate unsupported nesting of argparse groups

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 30322c497e0b8d978f7a0de95985aac9c5daf1ac by Irit Katriel in branch 'main': bpo-22047: [argparse] deprecate nested argument groups and mutually exclusive groups (GH-30098) https://github.com/python/cpython/commit

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

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

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 0194bbbee6a12264e93d3217c774e226f0a1737d by Miss Islington (bot) in branch '3.10': bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30133) https://github.com/python/cpython/commit

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset 4c1effaaee472cc67f3186411a3df4f39af3d71a by Miss Islington (bot) in branch '3.9': bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30134) https://github.com/python/cpython/commit

[issue22815] unexpected successes are not output

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: I know that in unittest2 an unexpected success did not cause the test to fail (when we moved from unittest2 to unittest at work we got test failures due to unexpected successes that previously did not show up). I don't know the whole history of how unittest2

[issue22815] unexpected successes are not output

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: Yes, this is why I don’t understand the request here. When a test fails you know which assertion was violated or which line raised an exception. When a multi line test succeeds, you don’t know which line was supposed to fail

[issue46098] Missing test for multi-line errors in traceback

2021-12-16 Thread Irit Katriel
New submission from Irit Katriel : While reviewing a change nearby, Erlend noticed that there is no test coverage for the multi-line error case in the traceback printing code added in bpo-43914. See https://github.com/python/cpython/pull/30073#discussion_r770114429 -- messages

[issue22815] unexpected successes are not output

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: I don't think adding more information from the test would be helpful - when a test fails you have (and need) information about what happened. But when a test succeeds the code of the test basically tells you what happened - all the assertions passed. I think

[issue22815] unexpected successes are not output

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: In verbose mode we do get output like the one in the code.google issue: % cat tmp.py import unittest class TestStringMethods(unittest.TestCase): @unittest.expectedFailure def test_upper(self): self.assertEqual(2, 2) def test_lower(self

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: New changeset a951c95a13c3555ac8fb1c8ee615ba3930ccc6f7 by Irit Katriel in branch 'main': bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) https://github.com/python/cpython/commit

[issue32867] argparse assertion failure with multiline metavars

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: It works for me on 3.11: % ./python.exe b.py -h usage: 11 [-h] [-v] 123456 12345 12345 123 [123456 12345 12345 123 ...] positional arguments: 123456 12345 12345 123 installation targets options: -h, --help

[issue44999] Argparse missing translates

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- nosy: -lys.nikolaou type: performance -> behavior versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issu

[issue22047] Deprecate unsupported nesting of argparse groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: Another issue due to nesting: issue38590. -- ___ Python tracker <https://bugs.python.org/issue22047> ___ ___ Python-bugs-list m

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- title: argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes -> argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception ___ Python trac

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

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28341 pull_request: https://github.com/python/cpython/pull/30122 ___ Python tracker <https://bugs.python.org/issue45

[issue17975] altinstall should not install libpython3.so (conflict between multiple $VERSIONs)

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue17975> ___ ___ Python-bugs-list

[issue26952] argparse help formatter raises IndexError

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

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: New changeset f0b274d2e21e6c7c1c0f56464070108f9bd00d20 by Miss Islington (bot) in branch '3.9': bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) (GH-30115) https://github.com/python/cpython/commit

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8e4c96295bd78ae5f70b908e5dbac0da7c4c21bd by Miss Islington (bot) in branch '3.10': bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) (GH-30114) https://github.com/python/cpython/commit

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: New changeset 86de99588db3beff964137f4fe27dd1077a09b35 by Irit Katriel in branch 'main': bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) https://github.com/python/cpython/commit/86de99588db3beff964137f4fe27dd1077a09b35

[issue45292] Implement PEP 654: Exception Groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: The way these two opcodes are combined by the compiler to implement except* is described in the pseudo code here: https://github.com/python/cpython/pull/29581#issuecomment-975660029 except* uses JUMP_IF_NOT_EG_MATCH. The excepts (not-*) that collect

[issue45292] Implement PEP 654: Exception Groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: The second opcode that the PR adds is PREP_RERAISE_STAR. This opcode takes a list that contains: 1. all the exceptions that were raised in the executed except* clauses 2. the unmatched part of the exception group It constructs the exception group that needs

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: Changing type. Crash is typically segfault or hang in c code rather than an exception. -- nosy: +iritkatriel type: crash -> behavior ___ Python tracker <https://bugs.python.org/issu

[issue45292] Implement PEP 654: Exception Groups

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: The PR adds two new opcodes. Let's start with the simpler of the two - JUMP_IF_NOT_EG_MATCH. This is the exception-group variation on JUMP_IF_NOT_EXC_MATCH. JUMP_IF_NOT_EXC_MATCH checks for a match by checking if the exception is of the given type

[issue18467] argparse - problematic 'default' behavior

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: Thanks, I think we can close this then. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45292] Implement PEP 654: Exception Groups

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: New changeset d60457a6673cf0263213c2f2be02c633ec2e2038 by Irit Katriel in branch 'main': bpo-45292: [PEP-654] add except* (GH-29581) https://github.com/python/cpython/commit/d60457a6673cf0263213c2f2be02c633ec2e2038

[issue39464] Allow translating argparse error messages

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: Closed issue26726 as duplicate of this. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue39

[issue26726] Incomplete Internationalization in Argparse Module

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: Closing as duplicate of issue39464, which has a GitHub PR. -- nosy: +iritkatriel resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Allow translating argparse er

[issue9350] add remove_argument_group to argparse

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: This is over a decade old and the discussion is mostly that it's not worth doing, so I suggest we close. -- nosy: +iritkatriel resolution: -> rejected status: open -> pending ___ Python tracker

[issue26726] Incomplete Internationalization in Argparse Module

2021-12-14 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue26

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