Change by Irit Katriel :
--
Removed message: https://bugs.python.org/msg399763
___
Python tracker
<https://bugs.python.org/issue44895>
___
___
Python-bugs-list m
Irit Katriel added the comment:
I'm pretty sure the frame locals is involved.
This leaks (not a is being re-raised, not b):
-
def test_no_hang_on_context_chain_cycle2():
class A(Exception): pass
class B(Exception): pass
try:
try:
ra
Irit Katriel added the comment:
It's probably not that because this leaks too, and it skips the cleanup:
try:
raise B()
except B:
b = sys.exc_info()[1]
--
___
Python tracker
<https://bugs.py
Irit Katriel added the comment:
But this makes it not leak again, so now we know it's the traceback:
try:
raise B()
except B:
b = sys.exc_info()[1]
b.__traceback__ = None
--
___
Python tr
Irit Katriel added the comment:
This doesn't leak:
try:
raise B()
except B:
tb = sys.exc_info()[1].__traceback__
So this isn't about the traceback being part of the cycle. The B() needs to be
Irit Katriel added the comment:
I'm using a mac. It typically fails within at most 10-20 iterations.
--
___
Python tracker
<https://bugs.python.org/is
Irit Katriel added the comment:
> Could you outline how are you reproducing the leaks?
Sorry I missed this. Just run the script:
iritkatriel@Irits-MBP cpython-1 % ./python.exe refleak.py
-- 1 --
beginning 6 repetitions
123456
..
-- 2 --
beginning 6 repetitions
123456
..
-
Irit Katriel added the comment:
Reproduced on 3.11:
>>> statistics.pvariance([0,0,1])
0.4
>>> statistics.variance([0,0,2])
1.3335
--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Pyth
Irit Katriel added the comment:
I can't reproduce this now:
>>> statistics.geometric_mean([2, 3, 5, 7])
3.80675409583932
>>> statistics.geometric_mean([2, 3, 5, 7.0])
3.80675409583932
>>> statistics.geometric_mean([2, 3, 5.0, 7.0])
3.80675409583932
>>&g
Irit Katriel added the comment:
I can't reproduce this now (tried on mac and windows):
>>> statistics.geometric_mean([0.7 for _ in range(5000)])
0.7
The current geometric_mean was added in PR12638. Is this issue about a previous
version?
--
nosy
Change by Irit Katriel :
--
keywords: +easy
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4
___
Python tracker
<https://bugs.python.org/issue20
Irit Katriel added the comment:
I've closed issue36099 as a duplicate of this.
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/is
Change by Irit Katriel :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> clarify meaning of xbar and mu in pvariance/variance of
statistics module
___
Python tracker
<https://bugs.python
Irit Katriel added the comment:
Is this still needed? It was requested for issue27181, which has been resolved
by now.
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue27
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +26315
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27856
___
Python tracker
<https://bugs.python.org/issu
Change by Irit Katriel :
--
title: Add regression test for geometric test -> Add regression test for
geometric_mean
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
I've reproduced this on 3.9 and 3.10. This part of the code in main is still
the same, so the issue is probably there even though we don't have numpy with
which to test.
--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -
Irit Katriel added the comment:
New changeset f5d7a8d29c49ad47254fa098abb7a510e5e7b45e by Irit Katriel in
branch 'main':
bpo-44960: add regression test for geometric_mean with mixed int/floa… (#27856)
https://github.com/python/cpython/commit/f5d7a8d29c49ad47254fa098abb7a5
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 can't reproduce this on 3.11, was it fixed?
>>> import statistics
>>> data = [1, 2, 2, 2, 3, 4]
>>> statistics.pvariance(data)
0.
>>> statistics.pvariance(data, 2.5)
0.91
Irit Katriel added the comment:
Reproduced in 3.11:
>>> import numpy as np
>>> import statistics as stats
>>> data = [75, 90,85, 92, 95, 80, np.nan]
>>> stats.median(data)
90
>>> stats.median_low(data)
90
>>> stats.median_high(data)
90
Irit Katriel added the comment:
Updating the subject according to the discussion.
--
nosy: +iritkatriel
title: statistics module: add "key" keyword argument to median, mode, ... ->
statistics module: add a general selection function
versions: +Python 3.1
Irit Katriel added the comment:
The patch needs to be converted into a github PR, and modified according to the
feedback on this issue.
--
keywords: +easy
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python
3.5
Irit Katriel added the comment:
The versions field includes 3.2 and 3.3, but from the discussion it seems the
problem was only observed in 2.7, and went away after a third party upgrade.
It seems unlikely that we will be ably to make more progress on this issue. I
propose we close it and
Irit Katriel added the comment:
I don't think this test still exists - I tried to search for it and found
nothing. In any case, from the discussion it seems that that is left is to
tweak the skip mechanism (assuming the patches were applied).
I'll close this soon if nobo
Irit Katriel added the comment:
It's doing this now, so seems like it has been fixed:
% env -i ./python.exe
Python 3.11.0a0 ...
>>> import os
>>> os.stat(u"\xf0")
Traceback (most recent call last):
File "", line 1, in
FileNotFoundErr
New submission from Irit Katriel :
The modulefinder library module has logic that understands particular opcodes
(such as the scan_opcodes method). This should be encapsulated in the dis
module, and modulefinder should not process opcodes directly.
--
components: Library (Lib
Change by Irit Katriel :
--
pull_requests: +26439
pull_request: https://github.com/python/cpython/pull/20104
___
Python tracker
<https://bugs.python.org/issue44
Irit Katriel added the comment:
Superseeded by deprecation under Issue44874.
--
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
This is still unresolved:
iritkatriel@Irits-MBP Lib % pwd
/Users/iritkatriel/src/cpython-1/Lib
iritkatriel@Irits-MBP Lib % ../python.exe -m test -v test_sys
[snipped]
==
FAIL: test_executable
Change by Irit Katriel :
--
nosy: +pitrou, vstinner
___
Python tracker
<https://bugs.python.org/issue45021>
___
___
Python-bugs-list mailing list
Unsubscribe:
Irit Katriel added the comment:
I'm seeing this (intermittently) on main branch, could be related?
iritkatriel@Irits-MBP cpython-1 % ./python.exe
Lib/test/test_importlib/partial/pool_in_threads.py
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most r
Change by Irit Katriel :
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder: -> update config.guess and config.sub
___
Python tracker
<https://bugs.python
Irit Katriel added the comment:
I can't find pyconfig.h or "#define _POSIX_C_SOURCE" or "#define _XOPEN_SOURCE".
If nobody will object I will soon close this issue as out of date.
--
nosy: +iritkatriel
resolution: -> out of
Irit Katriel added the comment:
> I'd like to remove docstring from code object at all.
> func.__doc__ can be set by MAKE_FUNCTION or STORE_ATTR.
I think that would require a change in the signature of PyFunction_New.
--
___
Pyt
Irit Katriel added the comment:
They keys are checked now, so I think this is resolved. (Tested on windows and
Mac).
>>> os.environ[''] = 'X'
Traceback (most recent call last):
File "", line 1, in
File "/Users/iritkatriel/src/cpython/Lib/os.
Irit Katriel added the comment:
We no longer have GRAMMAR_H or _PyParser_Grammar in the code.
--
nosy: +iritkatriel
resolution: -> out of date
stage: needs patch -> resolved
status: open -> closed
___
Python tracker
<https://bug
New submission from Irit Katriel :
The compiler generally uses ADDOP_LOAD_CONST to emit a LOAD_CONST, but there
are two places that use ADDOP_O(c, LOAD_CONST, Py_None, consts);
This is currently equivalent to ADDOP_LOAD_CONST(c, Py_None);
It should be replaced because we may soon change
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +26459
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28015
___
Python tracker
<https://bugs.python.org/issu
Change by Irit Katriel :
--
nosy: +Mark.Shannon, gvanrossum
___
Python tracker
<https://bugs.python.org/issue45039>
___
___
Python-bugs-list mailing list
Unsub
Irit Katriel added the comment:
Have you reproduced the issue on 3.8?
I am unable to reproduce this on main (on a Mac). Adding Antoine since I think
he fixed a few issues in this area.
--
nosy: +iritkatriel, pitrou
___
Python tracker
<ht
Change by Irit Katriel :
--
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/issue36
Irit Katriel added the comment:
Thank you Andrei.
--
nosy: +iritkatriel
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Irit Katriel :
Please explain the issue - in what way should the demo files be updated?
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue45
Irit Katriel added the comment:
Are you suggesting that anyone who calls PyFunction_New needs to add a doc
string assignment following the call? This is public api, so that would break
people’s working code.
--
___
Python tracker
<ht
Irit Katriel added the comment:
The demos directory is described as follows:
“This directory contains a collection of demonstration scripts for
various aspects of Python programming.“
Which aspect of python programming does the rat in a maze demo cover which is
not already covered by the
Change by Irit Katriel :
--
pull_requests: +26511
pull_request: https://github.com/python/cpython/pull/28067
___
Python tracker
<https://bugs.python.org/issue31
Change by Irit Katriel :
--
stage: test needed -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/issue20658>
___
___
Pyth
Irit Katriel added the comment:
I see, so intercepting the assignment is not enough. Reopening.
--
resolution: out of date ->
status: closed -> open
___
Python tracker
<https://bugs.python.org/i
Irit Katriel added the comment:
I think the leak happens when we invoke GC while the recursion limit is
exceeded. It goes way if make this change:
def recurse_in_body_and_except():
try:
recurse_in_body_and_except()
except RecursionError as e
Irit Katriel added the comment:
issue16322 was closed as a duplicate of issue36779 which was fixed. Does that
resolve this problem as well?
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue34
Irit Katriel added the comment:
Victor - I am also getting a feeling that this may not be a real leak but
rather a bug in the refleaks test bookkeeping.
It could be a problem with the way _Py_RefTotal is incremented/decremented.
--
___
Python
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
I think there is something like this here:
https://github.com/python/cpython/blob/22fe0eb13c3441b71b60aaea0e7fe289a29783da/Lib/test/test_ast.py#L1498
--
nosy: +iritkatriel
___
Python tracker
<ht
Change by Irit Katriel :
--
nosy: +ezio.melotti, rhettinger
___
Python tracker
<https://bugs.python.org/issue42791>
___
___
Python-bugs-list mailing list
Unsub
Irit Katriel added the comment:
See also Issue35111.
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue42791>
___
___
Python-bugs-list m
Irit Katriel added the comment:
New changeset 863154c9292e70c5a8a1a3f22ef4ee42e2304281 by Irit Katriel in
branch 'main':
bpo-31299: make it possible to filter out frames from tracebacks (GH-28067)
https://github.com/python/cpython/commit/863154c9292e70c5a8a1a3f22ef4ee
Irit Katriel added the comment:
Oh, I see now what you meant.
I think you're right that it's cleanup. I changed dash_R_cleanup to put the
sys._clear_type_cache() after clear_caches() and the leak is gone:
@@ -166,9 +166,6 @@ def dash_R_cleanup(fs, ps, pic, zdc, abcs):
New submission from Irit Katriel :
def format_frame(frame) should be renamed to
format_frame_summary(frame_summary) because it takes a FrameSummary obejct and
not a frame.
This is a new API in 3.11 so it can be changed now.
There are also local variables in traceback.py which are called
Irit Katriel added the comment:
There are places where f is used for an arg or local variable which is a frame,
so I'll try f_summary when it's a FrameSummary.
--
___
Python tracker
<https://bugs.python.o
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +26553
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28112
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
I'm not sure I follow. We don't have a similar issue with StackSummary - there
is no interpreter type for "stack" that you can confuse it with.
--
___
Python tracker
<https://bug
Irit Katriel added the comment:
With your patch I don't see a leak for refleak.py, but I still see one for
./python.exe -m test -R 3:3 test_exceptions -m
test_no_hang_on_context_chain_cycle2 -m
test_recursion_normalizing_infinite_exception -m
test_recursion_in_except_handl
Irit Katriel added the comment:
I changed it to
+for i in range(2):
+dash_R_cleanup(fs, ps, pic, zdc, abcs)
+support.gc_collect()
(loop twice instead of 3 times) and that seems fine too.
--
___
Python tracker
Irit Katriel added the comment:
Yes, frame_info is good.
--
___
Python tracker
<https://bugs.python.org/issue45075>
___
___
Python-bugs-list mailing list
Unsub
Irit Katriel added the comment:
While we're changing code objects, perhaps consider this as well?
--
nosy: +gvanrossum, iritkatriel
___
Python tracker
<https://bugs.python.org/is
Irit Katriel added the comment:
It's not only a software updates issue - these kinds of problems show up for
developers when they change the code on disk while a program is running and
some traceback or pdb show code from the disk which is confusing.
I also saw an issue about cha
New submission from Irit Katriel :
iritkatriel@Irits-MBP cpython % cat exc.py
class A:
class B:
class E(Exception):
pass
raise A.B.E()
iritkatriel@Irits-MBP cpython % cat test.py
import exc
iritkatriel@Irits-MBP cpython % ./python.exe test.py
Traceback (most recent call
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +26560
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28119
___
Python tracker
<https://bugs.python.org/issu
Change by Irit Katriel :
--
title: Incorrect exception output in C -> Need to use the exception class
qualname when rendering exception (in C code)
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
I've reproduced this on 3.9 and 3.10 as well.
--
versions: +Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/is
Change by Irit Katriel :
--
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/issue22764>
___
___
Python-bugs-list
Change by Irit Katriel :
--
keywords: +easy
title: collections.abc.Sequence cannot be used to test whether a class provides
a particular interface (doc issue) -> doc: collections.abc.Sequence cannot be
used to test whether a class provides a particular interface
versions: +Pyt
Irit Katriel added the comment:
See also issue35190.
--
keywords: +easy -patch
nosy: +iritkatriel
title: issubclass without registration only works for "one-trick pony"
collections ABCs. -> doc: issubclass without registration only works for
"one-trick pony"
Change by Irit Katriel :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Mistaken notion in tutorial
___
Python tracker
<https://bugs.python
Irit Katriel added the comment:
3.6 is no longer maintained, so even if there was a bug in 3.6 that was fixed
in 3.8 we aren't going to be able to do anything about it.
If nobody objects I will close this issue soon.
--
nosy: +iritkatriel
resolution: -> out of date
stat
Irit Katriel added the comment:
Closing as 3.7 is no longer maintained and this problem was not reproduced in
3.8.
--
nosy: +iritkatriel
resolution: -> out of date
stage: test needed -> resolved
status: open -> closed
___
Python tracke
Irit Katriel added the comment:
Closing again. In addition to what Eric said, both 2.7 and 3.6 are no longer
maintained so you will need to reproduce the issue on a current version (>=
3.8) for any of us to investigate it.
--
nosy: +iritkatriel
resolution: remind -> third
Irit Katriel added the comment:
I'm closing this because
1. both 2.7 and 3.6 are no longer maintained
2. This is not an actual bug report (we don't know what the hanging code was
doing) so there is no chance of reproducing it.
If you are having problems with this in a curre
Irit Katriel added the comment:
Michal, is still issue still relevant?
The url you mention no longer exists so I can't see if it's still reproducible:
% nslookup imap.home.pl
Server: 192.168.1.254
Address:192.168.1.254#53
** server can't find imap.ho
Irit Katriel added the comment:
Closing as 2.7 and 3.6 are no longer maintained, and you say the crash was gone
in 3.7+.
On 3.11 it indeed doesn't crash:
>>> zipimport.zipimporter.__new__(zipimport.zipimporter).find_module('')
:158: DeprecationWarning: zipi
Change by Irit Katriel :
--
keywords: +patch
nosy: +iritkatriel
nosy_count: 1.0 -> 2.0
pull_requests: +26578
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28139
___
Python tracker
<https://bugs.python.org/i
Change by Irit Katriel :
--
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue41031>
___
___
Python-bugs-list mailing list
Unsub
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +26582
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28143
___
Python tracker
<https://bugs.python.org/issue1
Change by Irit Katriel :
--
versions: +Python 3.11 -Python 3.10, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue1514420>
___
___
Pytho
Irit Katriel added the comment:
New changeset 0b58e863df9970b290a4de90c67f9ac30c443817 by Irit Katriel in
branch 'main':
bpo-45075: distinguish between frame and FrameSummary in traceback mo…
(GH-28112)
https://github.com/python/cpython/commit/0b58e863df9970b290a4de90c67f9a
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Irit Katriel :
--
resolution: -> wont fix
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue23354>
___
___
Python-bugs-
Irit Katriel added the comment:
This is doing something different now (on 3.11):
iritkatriel@Irits-MBP cpython % ./python.exe ttt.py
/Users/iritkatriel/src/cpython/ttt.py:5: DeprecationWarning: There is no
current event loop
loop = asyncio.get_event_loop()
i am task
Change by Irit Katriel :
--
title: xxlimited/xxmodule docstrings ambiguous -> [doc] xxlimited/xxmodule
docstrings ambiguous
versions: +Python 3.11 -Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
Reproduced on 3.11:
>>> 0 + not 0
File "", line 1
0 + not 0
^^^
SyntaxError: invalid syntax
>>> - not 0
File "", line 1
- not 0
^^^
SyntaxError: invalid syntax
--
nosy: +iritkatriel, pa
Change by Irit Katriel :
--
nosy: +iritkatriel
nosy_count: 6.0 -> 7.0
pull_requests: +26608
pull_request: https://github.com/python/cpython/pull/23688
___
Python tracker
<https://bugs.python.org/issu
Change by Irit Katriel :
--
pull_requests: -26608
___
Python tracker
<https://bugs.python.org/issue42959>
___
___
Python-bugs-list mailing list
Unsubscribe:
Irit Katriel added the comment:
The default __reduce__ method of Exception returns the arg you pass to the
Exception constructor:
>>> a = ExcA("a banana")
>>> a.__reduce__()
(, ('missing a banana',))
>>>
This is then pickled, and when unpic
Irit Katriel added the comment:
Adding Pablo, a.k.a The King of Errors.
--
nosy: +iritkatriel, pablogsal
___
Python tracker
<https://bugs.python.org/issue30
Irit Katriel added the comment:
It is no longer using the traceback check:
https://github.com/python/cpython/blob/37272f5800ee1e9fcb2da4a1766366519b9b3d94/Lib/pydoc.py#L445
--
nosy: +iritkatriel
resolution: -> out of date
stage: -> resolved
status: open -&g
Irit Katriel added the comment:
Closing as there was no followup to Eric's question. Please create a new issue
if you still see this problem on a version >= 3.9.
--
nosy: +iritkatriel
resolution: -> out of date
stage: -> resolved
status: pen
Change by Irit Katriel :
--
title: Re-title the "Using Backslash to Continue Statements" anti-idiom ->
[doc] restore the "Idioms and Anti-Idioms in Python" document
versions: +Python 3.11 -Python 3.2, Python 3.3
___
Change by Irit Katriel :
--
keywords: +easy
title: State clearly that open() 'file' param is "name" attr of the result ->
[doc] State clearly that open() 'file' param is "name" attr of the result
versions: +Python 3.10, Pyth
Irit Katriel added the comment:
This doc has changed, and it's now like this:
parameter_list::= defparameter ("," defparameter)* "," "/" [","
[parameter_list_no_posonly]]
| parameter_list_no_posonl
1701 - 1800 of 3640 matches
Mail list logo