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
Change by Irit Katriel :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue44520>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Irit Katriel :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue44520>
___
___
Python-bugs-list mailing list
Unsubscrib
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".
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
Change by Irit Katriel :
--
pull_requests: +25558
pull_request: https://github.com/python/cpython/pull/26998
___
Python tracker
<https://bugs.python.org/issue30
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
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
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
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
Change by Irit Katriel :
--
pull_requests: +25566
pull_request: https://github.com/python/cpython/pull/27006
___
Python tracker
<https://bugs.python.org/issue34
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
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
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
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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'
Change by Irit Katriel :
--
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/issue26724>
___
___
Python-bugs-list
Change by Irit Katriel :
--
nosy: +vinay.sajip
___
Python tracker
<https://bugs.python.org/issue44473>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 ->
Change by Irit Katriel :
--
nosy: +gvanrossum, iritkatriel
___
Python tracker
<https://bugs.python.org/issue36521>
___
___
Python-bugs-list mailing list
Unsub
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
Irit Katriel added the comment:
This looks like a case of specialization.
--
nosy: +Mark.Shannon, gvanrossum, iritkatriel
___
Python tracker
<https://bugs.python.org/issue26
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
Irit Katriel added the comment:
+ PEP 489 authors.
--
nosy: +iritkatriel, ncoghlan, petr.viktorin, scoder
___
Python tracker
<https://bugs.python.org/issue23
Irit Katriel added the comment:
Sure, I'll have a look.
--
___
Python tracker
<https://bugs.python.org/issue26280>
___
___
Python-bugs-list mailing list
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
Change by Irit Katriel :
--
versions: +Python 3.11 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue26280>
___
___
Python-bugs-list mailing list
Unsub
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"
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
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
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
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
Change by Irit Katriel :
--
stage: patch review -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/issue20752>
___
___
Pyth
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Irit Katriel :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue31791>
___
___
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.
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
Change by Irit Katriel :
--
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Irit Katriel added the comment:
See also Issue13305.
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue44610>
___
___
Python-bugs-list m
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
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
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
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Irit Katriel :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue43497>
___
___
Pyth
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
Change by Irit Katriel :
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue43596>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Change by Irit Katriel :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue44785>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Irit Katriel :
% ./python.exe -E -We -m test -v test_pickle
==
ERROR: test_import (test.test_pickle.CompatPickleTests)
--
Traceback (most
Change by Irit Katriel :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue44784>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Irit Katriel :
--
components: +Tests
___
Python tracker
<https://bugs.python.org/issue44786>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Irit Katriel :
--
nosy: +ncoghlan, vstinner
___
Python tracker
<https://bugs.python.org/issue44797>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Irit Katriel :
% ./python.exe -E -We -m test -v test_enum
==
ERROR: test_custom_strenum_with_warning (test.test_enum.TestEnum
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
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
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
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
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
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
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
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
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
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
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
Irit Katriel added the comment:
+ Michael, in case he has something to add.
--
nosy: +michael.foord
___
Python tracker
<https://bugs.python.org/issue42
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
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
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
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
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
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
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
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
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
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
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
Irit Katriel added the comment:
Is this still relevant now that distutils is deprecated?
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue18
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
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
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 ->
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
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
1501 - 1600 of 3640 matches
Mail list logo