[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: There is still a point in the "if not bs:" check, it will be true for bs which is an empty string. -- ___ Python tracker <https://bugs.python.o

[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None

2021-07-02 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue44520> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None

2021-07-02 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue44520> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: I meant: ... it will be true for bs which is an empty bytes(). You are thinking of b'' and None as if they are the same thing. They are not. If this was a check for None it would be "if bs is None" and not "if not bs".

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 2560c612c89ea2534b90a266aabf76dc74d93a12 by Ken Jin in branch 'main': bpo-30256: [doc] Fix formatting error in news (GH-26994) https://github.com/python/cpython/commit/2560c612c89ea2534b90a266aabf76dc74d93a12 -- nosy: +i

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25558 pull_request: https://github.com/python/cpython/pull/26998 ___ Python tracker <https://bugs.python.org/issue30

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 91db097358bcb00832e53d410035a8b7fcfdd9c3 by Miss Islington (bot) in branch '3.9': bpo-30256: [doc] Fix formatting error in news (GH-26994) (GH-26996) https://github.com/python/cpython/commit/91db097358bcb00832e53d410035a8

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 7a2d2ed1330e464ac186c09501ef51b8261f4292 by Irit Katriel in branch '3.10': [3.10] bpo-30256: [doc] Fix formatting error in news (GH-26994) (GH-26998) https://github.com/python/cpython/commit/7a2d2ed1330e464ac186c09501ef51

[issue11343] Make errors due to full parser stack identifiable

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: The patch relates to the old parser. With the new parser the 100*(+100*) example works. If we go to 1000 instead of 100 we get "SyntaxError: too many nested parentheses". >From the discussion it seems that the idea of a new excep

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2021-07-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset d968a638fcbf9030c999cfacd4c9bf0656e779c4 by Irit Katriel in branch 'main': bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656) https://github.com/python/cpython/commit/d968a638fcbf9030c999cfacd4c9bf

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2021-07-03 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25566 pull_request: https://github.com/python/cpython/pull/27006 ___ Python tracker <https://bugs.python.org/issue34

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2021-07-03 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue34

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2021-07-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 21be6cb0304ba143980b7e4c875cb5b9db30952b by Miss Islington (bot) in branch '3.9': bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656) (GH-27005) https://github.com/python/cpython/commit/21be6cb0304ba143980b7e4c875cb5

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2021-07-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 33022f9e86878c84c605de27aae4bd782ecb8da6 by Irit Katriel in branch '3.10': [3.10] bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656) (GH-27006) https://github.com/python/cpython/commit/33022f9e86878c84c605de27aae4bd

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

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

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-03 Thread Irit Katriel
Irit Katriel added the comment: I've close PR26937 since we're not going for that. The test from it might still be useful, so I'm copying it here: def test_package_without_a_main(self): pkg_name = 't_pkg' module_name = 't_main'

[issue26724] Serialize dict with non-string keys to JSON — unexpected result

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

[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-04 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.org/issue44473> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36663] pdb: store whole exception information in locals (via user_exception)

2021-07-04 Thread Irit Katriel
Irit Katriel added the comment: As mentioned above, I think this is redundant because the traceback is on exc_value.__traceback__. Closing as there was not reply to my question, but correct me if I misunderstood the issue. -- stage: -> resolved status: open ->

[issue36521] Consider removing docstrings from co_consts in code objects

2021-07-04 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +gvanrossum, iritkatriel ___ Python tracker <https://bugs.python.org/issue36521> ___ ___ Python-bugs-list mailing list Unsub

[issue44561] Some expired hyperlinks in Python documentation

2021-07-04 Thread Irit Katriel
Irit Katriel added the comment: Thanks, do you mind creating a github PR to fix this? -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue44

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: This looks like a case of specialization. -- nosy: +Mark.Shannon, gvanrossum, iritkatriel ___ Python tracker <https://bugs.python.org/issue26

[issue4600] __class__ assignment: new-style? heap? == confusing

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: The error messages are different now: >>> class C: pass ... >>> c = C() >>> c.__class__ = 1 Traceback (most recent call last): File "", line 1, in TypeError: __class__ must be set to a class, not 'int' object

[issue23609] Export PyModuleObject in moduleobject.h

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: + PEP 489 authors. -- nosy: +iritkatriel, ncoghlan, petr.viktorin, scoder ___ Python tracker <https://bugs.python.org/issue23

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Irit Katriel added the comment: Sure, I'll have a look. -- ___ Python tracker <https://bugs.python.org/issue26280> ___ ___ Python-bugs-list mailing list

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25602 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27043 ___ Python tracker <https://bugs.python.org/issu

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-05 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue26280> ___ ___ Python-bugs-list mailing list Unsub

[issue31218] del expects __delitem__ if __setitem__ is defined

2021-07-06 Thread Irit Katriel
Irit Katriel added the comment: It is still the same in 3.11: >>> class WithoutSetItem: ... def __getitem__(self, key): ... return "foo" ... >>> class WithSetItem: ... def __getitem__(self, key): ... return "foo"

[issue34919] Crash caused by certain characters in a string

2021-07-06 Thread Irit Katriel
Irit Katriel added the comment: As per message https://bugs.python.org/issue34919#msg327639, the issue was fixed in 3.7.1. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracke

[issue44561] Some expired hyperlinks in Python documentation

2021-07-07 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44561> ___ ___ Python-bugs-list m

[issue44588] Possible double Py_XDECREF in cpython typeobject.c

2021-07-09 Thread Irit Katriel
Irit Katriel added the comment: Do you have a small piece of code reproducing it that you can upload? -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue44

[issue38278] Need a more efficient way to perform dict.get(key, default)

2021-07-13 Thread Irit Katriel
Irit Katriel added the comment: > Was LOAD_METHOD optimized for builtin methods? Maybe this can be done with specialization. -- nosy: +Mark.Shannon, gvanrossum, iritkatriel ___ Python tracker <https://bugs.python.org/issu

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2021-07-14 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue20752> ___ ___ Pyth

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

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

[issue31791] Ensure that all PyTypeObject fields are set to non-NULL defaults

2021-07-15 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue31791> ___ ___

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2021-07-16 Thread Irit Katriel
Irit Katriel added the comment: This kind of reorg was recently rejected in issue44573, while this issue being open inspired similar initiative (eg issue44650). For those reasons I am closing this. -- ___ Python tracker <https://bugs.python.

[issue44650] Move test_futures files*.py into a subdirectory of Lib/test

2021-07-16 Thread Irit Katriel
Irit Katriel added the comment: This kind of reorg was recently rejected in issue44573. -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue15907] move doctest test-data files into a subdirectory of Lib/test

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

[issue44650] Move test_futures files*.py into a subdirectory of Lib/test

2021-07-16 Thread Irit Katriel
Irit Katriel added the comment: A patch awaiting review since 2012 is not exactly the same as "the issue was accepted". -- ___ Python tracker <https://bugs.python.o

[issue44610] Format issue with strftime and %Y

2021-07-17 Thread Irit Katriel
Irit Katriel added the comment: See also Issue13305. -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue44610> ___ ___ Python-bugs-list m

[issue41546] pprint() gives exception when ran from pythonw

2021-07-19 Thread Irit Katriel
Irit Katriel added the comment: New changeset aab1899c9d79083c1ff31d974ed8b562d3ca3b5d by Irit Katriel in branch 'main': bpo-41546: make pprint (like print) not write to stdout when it is None (GH-26810) https://github.com/python/cpython/commit/aab1899c9d79083c1ff31d974ed8b5

[issue41546] pprint() gives exception when ran from pythonw

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

[issue44554] pdb.main is unnecessarily complicated

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

[issue14739] Add PyArg_Parse format unit like O& but providing context

2021-07-20 Thread Irit Katriel
Irit Katriel added the comment: Now we have exception chaining, so Serhiy's pattern is even simpler to implement than with exception wrappers. -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/is

[issue14879] invalid docs for subprocess exceptions with shell=True

2021-07-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset 50ffbe3dafcae7826d114df61d56c7ac45a6358c by Jack DeVries in branch 'main': bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., shell=True) (GH-26755) https://github.com/python/cpyt

[issue14879] invalid docs for subprocess exceptions with shell=True

2021-07-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset 5ffbb05f1c3c952588ba5c1927da0e8223f5aaa7 by Miss Islington (bot) in branch '3.9': bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., shell=True) (GH-26755) (GH-27289) https://github.com/python/cpyt

[issue14879] invalid docs for subprocess exceptions with shell=True

2021-07-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset d0c61753036dcae292d49aa8ddac555062da6b76 by Miss Islington (bot) in branch '3.10': bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., shell=True) (GH-26755) (GH-27288) https://github.com/python/cpyt

[issue14879] invalid docs for subprocess exceptions with shell=True

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

[issue44725] Expose specialization stats in python

2021-07-23 Thread Irit Katriel
New submission from Irit Katriel : Make it possible to fetch the current specialization stats in python so that we can compute deltas for small code snippets as well as use them for specialization unit tests. -- components: Interpreter Core messages: 398055 nosy: iritkatriel priority

[issue44725] Expose specialization stats in python

2021-07-23 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +25851 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27192 ___ Python tracker <https://bugs.python.org/issu

[issue44682] Pdb commands allows to add commands to invalid breakpoint

2021-07-26 Thread Irit Katriel
Irit Katriel added the comment: Silently ignoring errors is not exactly a bug, and this change might break some scripts. So I think we should not backport it. -- nosy: +iritkatriel versions: -Python 3.10, Python 3.9 ___ Python tracker <ht

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2021-07-26 Thread Irit Katriel
Irit Katriel added the comment: The script (3.py) now gives the RuntimeError (as of 3.9) so I think the discussion about back port is over and there is nothing more to do on this issue. If nobody objects I will close this. -- status: open -> pend

[issue34013] Inconsistent SyntaxError for print

2021-07-26 Thread Irit Katriel
Irit Katriel added the comment: This case has changed recently, and not for the better: >>> print f(3) File "", line 1 print f(3) ^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? -- ___ Pyt

[issue42167] Documentation for SETUP_WITH opcode is wrong

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

[issue43548] RecursionError depth exceptions break pdb's interactive tracing.

2021-07-28 Thread Irit Katriel
Irit Katriel added the comment: What do you mean by "it handles them as would be expected"? What is expected? Ideally, can you provide a script with another exception type that shows it? Specify also how you are running the script and what output you get. (I tried to modify y

[issue43497] SyntaxWarning for "assertion is always true, perhaps remove parentheses?" does not work with constants

2021-07-28 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43497> ___ ___ Pyth

[issue43596] change assertRaises message when wrong exception is raised

2021-07-29 Thread Irit Katriel
Irit Katriel added the comment: What you are suggesting replaces the type of the exception being raised. If it's something like a MemoryError or KeyboardInterrupt you don't want that, you want your test process to terminate. -- nosy: +i

[issue43596] change assertRaises message when wrong exception is raised

2021-07-29 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue43596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44781] test_distutils emits deprecation warning about distils

2021-07-30 Thread Irit Katriel
New submission from Irit Katriel : The test will be removed with distutils, so for now it should suppress the deprecation warning so that we can run the tests with warnings as errors. -- components: Tests messages: 398561 nosy: iritkatriel priority: normal severity: normal status

[issue44781] test_distutils emits deprecation warning about distils

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

[issue44781] test_distutils emits deprecation warning about distutils

2021-07-30 Thread Irit Katriel
Change by Irit Katriel : -- title: test_distutils emits deprecation warning about distils -> test_distutils emits deprecation warning about distutils ___ Python tracker <https://bugs.python.org/issu

[issue44784] test_importlib uses deprecated SelectableGroups interface

2021-07-30 Thread Irit Katriel
New submission from Irit Katriel : % ./python.exe -E -We -m test -v test_importlib == ERROR: test_entry_points_groups_get (test.test_importlib.test_metadata_api.APITests

[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-07-30 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue44785> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

2021-07-30 Thread Irit Katriel
New submission from Irit Katriel : % ./python.exe -E -We -m test -v test_pickle == ERROR: test_import (test.test_pickle.CompatPickleTests) -- Traceback (most

[issue44784] test_importlib uses deprecated SelectableGroups interface

2021-07-30 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue44784> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44786] test_check_c_globals "crashed" and then "FutureWarning: Possible nested set at position 12"

2021-07-30 Thread Irit Katriel
New submission from Irit Katriel : % ./python.exe -E -We -m test -v test_check_c_globals ... test test_check_c_globals crashed -- Traceback (most recent call last): File "/Users/iritkatriel/src/cpython-1/Lib/test/libregrtest/runtest.py", line 335, in _runtest_inner

[issue44786] test_check_c_globals "crashed" and then "FutureWarning: Possible nested set at position 12"

2021-07-30 Thread Irit Katriel
Change by Irit Katriel : -- components: +Tests ___ Python tracker <https://bugs.python.org/issue44786> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel
New submission from Irit Katriel : I believe these warnings are a feature so the tests should expect them. Patch included. % ./python.exe -E -We -m test -v test_socket == ERROR: testSecondCmsgTruncInData

[issue44797] test_socket should expect warnings in truncated-data tests

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

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +ncoghlan, vstinner ___ Python tracker <https://bugs.python.org/issue44797> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44798] test_enum emits a deprecation warning from test_custom_strenum_with_warning

2021-07-31 Thread Irit Katriel
New submission from Irit Katriel : % ./python.exe -E -We -m test -v test_enum == ERROR: test_custom_strenum_with_warning (test.test_enum.TestEnum

[issue44798] test_enum emits a deprecation warning from test_custom_strenum_with_warning

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

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue23

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: Indeed, thanks. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> test_socket fails in MacOS High Sierra when running with -Werror ___ Python tra

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 5.0 -> 6.0 pull_requests: +26031 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27512 ___ Python tracker <https://bugs.p

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: In PR27512 I tried to make the test expect the warning, but then it fails on ubuntu, so this is not the right solution. -- ___ Python tracker <https://bugs.python.org/issue23

[issue44798] test_enum emits a deprecation warning from test_custom_strenum_with_warning

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> DeprecationWarning in test_enum over formatting ___ Python tracker <https://bugs.python

[issue41914] test_pdb fails

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: Sumagna, Thanks for the report. The test is passing on our buildbots, so this is not a general problem with it. It is hard to do anything about this without information about the platform and environment on which you saw the failure. If you are still seeing

[issue20703] RuntimeError caused by lazy imports in pdb

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 5.0 -> 6.0 pull_requests: +26035 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27520 ___ Python tracker <https://bugs.python.org/i

[issue20703] RuntimeError caused by lazy imports in pdb

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: I agree with both Eric and Xavier - any library calling a function that modifies sys.modules will see this issue, but pdb should try not to modify program semantics like this. It's fixed if we move the readline import as Louie suggested (the _bootl

[issue43596] change assertRaises message when wrong exception is raised

2021-08-01 Thread Irit Katriel
Irit Katriel added the comment: Another way to look at it is that your test has two problems. One is that the expected exception didn’t happen and the other is that an unexpected exception happened. The two problems are usually unrelated, and trying to conflate them into one error message

[issue43596] change assertRaises message when wrong exception is raised

2021-08-01 Thread Irit Katriel
Irit Katriel added the comment: I agree. That’s what the “usually” was for. -- ___ Python tracker <https://bugs.python.org/issue43596> ___ ___ Python-bugs-list m

[issue42019] Override MagicMock special methods

2021-08-01 Thread Irit Katriel
Irit Katriel added the comment: + Michael, in case he has something to add. -- nosy: +michael.foord ___ Python tracker <https://bugs.python.org/issue42

[issue31724] test_xmlrpc_net should use something other than buildbot.python.org

2021-08-01 Thread Irit Katriel
Irit Katriel added the comment: The test is now skipped, but still need to be fixed. -- keywords: -patch nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker <ht

[issue20703] RuntimeError caused by lazy imports in pdb

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: I think option 2 changes the current behaviour, because cmd.Cmd.cmdloop will import readline later, and the set_completer_delims() call would never happen even though readline is used. I'll update the patch to do opt

[issue44725] Expose specialization stats in python

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: Closing as the stats we added. I'll create a new issue for the refactor we discussed on the PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python t

[issue44813] generate specialization stat names list into opcode.h

2021-08-02 Thread Irit Katriel
New submission from Irit Katriel : The stat names are repeated in several places in the code, refactor to have this list appear only once in opcode.py. -- messages: 398779 nosy: iritkatriel priority: normal severity: normal status: open title: generate specialization stat names list

[issue44813] generate specialization stat names list into opcode.h

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +26069 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27562 ___ Python tracker <https://bugs.python.org/issu

[issue34782] Pdb raises exception when code is executed in a mapping that does not define `__contains__`

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- title: Pdb crashes when code is executed in a mapping that does not define `__contains__` -> Pdb raises exception when code is executed in a mapping that does not define `__contains__` versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python

[issue34782] Pdb raises exception when code is executed in a mapping that does not define `__contains__`

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel nosy_count: 4.0 -> 5.0 pull_requests: +26077 pull_request: https://github.com/python/cpython/pull/27570 ___ Python tracker <https://bugs.python.org/issu

[issue2824] zipfile to handle duplicate files in archive

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.6, Python 2.7, Python 3.2 ___ Python tracker <https://bugs.python.org/issue2

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- title: Add examples to int.to_bytes and int.from_bytes -> [doc] Add examples to int.to_bytes and int.from_bytes versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Pyt

[issue33008] urllib.request.parse_http_list incorrectly strips backslashes

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue33003] [doc] urllib: Document parse_http_list

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- title: urllib: Document parse_http_list -> [doc] urllib: Document parse_http_list versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Pyt

[issue18255] CPython setup.py problems

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: Is this still relevant now that distutils is deprecated? -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue18

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: This behaviour is documented as deprecated all the way back to 2.7. Should we repurpose the issue to removing it? Otherwise it can be closed. https://docs.python.org/2.7/c-api/object.html#c.PyObject_SetAttr -- nosy: +iritkatriel resolution

[issue28973] [doc] The fact that multiprocess.Queue uses serialization should be documented.

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: There is a note mentioning pickle in this section: https://docs.python.org/3/library/multiprocessing.html#pipes-and-queues It starts with "When an object is put on a queue, the object is pickled and..." A comment about the object ids can be a

[issue34782] Pdb raises exception when code is executed in a mapping that does not define `__contains__`

2021-08-03 Thread Irit Katriel
Irit Katriel added the comment: I think we should close this. It's not a problem you will come across if you're not looking for trouble, so there's no point trying to make the error message a little nicer. -- resolution: -> not a bug stage: patch review ->

[issue20703] RuntimeError caused by lazy imports in pdb

2021-08-03 Thread Irit Katriel
Irit Katriel added the comment: Can we make sys.modules automatically return an iterator that has a copy of its contents? Otherwise it's an odd API - it's iterable but we tell people not to iterate it. -- ___ Python track

[issue32397] textwrap output may change if you wrap a paragraph twice

2021-08-03 Thread Irit Katriel
Irit Katriel added the comment: You should be able to do them in one re, something like text = re.sub(r' ?\n', ' ', text) -- nosy: +iritkatriel ___ Python tracker <https://bug

<    11   12   13   14   15   16   17   18   19   20   >