[issue40469] TimedRotatingFileHandler rotating on use not time

2021-08-13 Thread Ivan Marton
Ivan Marton added the comment: Well, there is nothing in the documentation that would say the logrotation can be only performed by continously running scripts, thats why. :) There are scripts or even daemons written in Python that need to be restarted from time to time. If the logrotate peri

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-13 Thread Jacob Nilsson
Change by Jacob Nilsson : -- nosy: +ajoino ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue44909] configure should pick /usr/bin/g++ automatically if present

2021-08-13 Thread Paul Menzel
New submission from Paul Menzel : [copied from closed (out of date) issue https://bugs.python.org/issue25946] Reproduced with Python 3.9.6. ./configure` both prints `checking for g++... no` and WARNING: By default, distutils will build C++ extension modules with "g++". I

[issue25946] configure should pick /usr/bin/g++ automatically if present

2021-08-13 Thread Paul Menzel
Paul Menzel added the comment: I created https://bugs.python.org/issue44909. -- nosy: +pmenzel ___ Python tracker ___ ___ Python-bu

[issue40469] TimedRotatingFileHandler rotating on use not time

2021-08-13 Thread Vinay Sajip
Vinay Sajip added the comment: > Well, there is nothing in the documentation that would say the logrotation > can be only performed by continously running scripts, thats why. :) Well, what's the need to rotate based on time when you just run scripts sporadically or they're very short-lived?

[issue40469] TimedRotatingFileHandler rotating on use not time

2021-08-13 Thread Vinay Sajip
Vinay Sajip added the comment: I just checked - the relevant code (using MTIME) was added in 2010, as a fix for bpo-8117 - around the time that Python 2.6 was released. -- ___ Python tracker ___

[issue44297] Frame with -1 line number

2021-08-13 Thread Mark Shannon
Mark Shannon added the comment: I believe this to be fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44450] Generator expressions trace differently on Windows than on Mac

2021-08-13 Thread Mark Shannon
Mark Shannon added the comment: Ned, is this still an issue with the release candidate of 3.10? -- ___ Python tracker ___ ___ Pytho

[issue40222] "Zero cost" exception handling

2021-08-13 Thread Mark Shannon
Mark Shannon added the comment: I'd like to close this, as the exception handling is all done and working correctly. Is there a separate issue for how we are handling CodeType()? -- ___ Python tracker

[issue42837] Symbol table incorrectly identifies code as a generator, when 'yield' occurs in an annotation

2021-08-13 Thread Mark Shannon
Mark Shannon added the comment: I guess this will be resolved when the great PEP 563/649 debate is concluded. No need for another issue. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41703] Most bytecode changes are absent from Python 3.9 What's new

2021-08-13 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue44772] Regression in memory use of instances due to dictionary ordering

2021-08-13 Thread Mark Shannon
Mark Shannon added the comment: Duplicate of https://bugs.python.org/issue40116 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2021-08-13 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40469] TimedRotatingFileHandler rotating on use not time

2021-08-13 Thread Ivan Marton
Ivan Marton added the comment: > Well, what's the need to rotate based on time when you just run scripts > sporadically or they're very short-lived? Not trying to argue, just trying to > understand. > Yes, but generally daemons are long-lived relative to the rotation interval, > aren't they?

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Irit Katriel
Irit Katriel added the comment: It’s not deterministic. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue42837] Symbol table incorrectly identifies code as a generator, when 'yield' occurs in an annotation

2021-08-13 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: AFAIK this is already resolved on the main (https://bugs.python.org/issue42725) -- ___ Python tracker ___ __

[issue44869] MacOS Monterrey malloc issue

2021-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is a 3th possibility: This could be a bug in the OS, Monterey is still in beta at this point and beta's tend to contain more bugs than release versions. -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7bf28cbb4bf37fa6bdfc2d3f8a3939066b3f8f22 by Irit Katriel in branch 'main': bpo-44895: Temporarily add an extra gc.collect() call (GH-27746) https://github.com/python/cpython/commit/7bf28cbb4bf37fa6bdfc2d3f8a3939066b3f8f22 -- nosy: +lukasz

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26229 pull_request: https://github.com/python/cpython/pull/27753 ___ Python tracker _

[issue33930] Segfault with deep recursion into object().__dir__

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: Since the refleak investigation moved to its own issue, I'm re-closing this one for clarity. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33930] Segfault with deep recursion into object().__dir__

2021-08-13 Thread miss-islington
miss-islington added the comment: New changeset ef36dfe4de1ee0df11cde94fd76465336aa8141d by Benjamin Peterson in branch '3.10': [3.10] bpo-33930: Fix typo in the test name. (GH-27736) https://github.com/python/cpython/commit/ef36dfe4de1ee0df11cde94fd76465336aa8141d -- _

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Irit Katriel
Irit Katriel added the comment: > what is the source of the indeterminism -- some kind of race condition or > something else? My hunch is it could be timing of GC. But it's hard to say at this point. -- ___ Python tracker

[issue44891] Tests for `id(a) == id(a * 1)` for `bytes` and `str`

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: Dennis, there's an existing issue on making the test suite more pypy-compatible: https://bugs.python.org/issue25130 In that issue Maciej says pypy adopted a policy to adjust tests when they have to so I'd say that unless we get a report on which additional tes

[issue44907] examples code output do not macth the current version 3.9

2021-08-13 Thread meowmeowcat
meowmeowcat added the comment: Thanks! Confirmed with Python 3.9.2. I will open a PR for fixing this. -- nosy: +meowmeowmeowcat ___ Python tracker ___

[issue44907] examples code output do not match the current version 3.9

2021-08-13 Thread meowmeowcat
Change by meowmeowcat : -- title: examples code output do not macth the current version 3.9 -> examples code output do not match the current version 3.9 ___ Python tracker ___

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x, 12.1

2021-08-13 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26230 pull_request: https://github.com/python/cpython/pull/27754 ___ Python tracker ___ _

[issue44907] examples code output do not match the current version 3.9

2021-08-13 Thread meowmeowcat
Change by meowmeowcat : -- keywords: +patch pull_requests: +26231 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27755 ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread miss-islington
miss-islington added the comment: New changeset ebc59262349d6901b825ed9101d604e826757262 by Miss Islington (bot) in branch '3.10': bpo-44895: Temporarily add an extra gc.collect() call (GH-27746) https://github.com/python/cpython/commit/ebc59262349d6901b825ed9101d604e826757262 -- _

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: I merged the workaround to get refleak buildbots unstuck for the weekend. I bumped the issue stage back to "needs patch" as the available one isn't a solution. -- stage: patch review -> needs patch ___ Python tracker

[issue44891] Tests for `id(a) == id(a * 1)` for `bytes` and `str`

2021-08-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26232 pull_request: https://github.com/python/cpython/pull/27756 ___ Python tracker _

[issue44891] Tests for `id(a) == id(a * 1)` for `bytes` and `str`

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a2ce538e16d5e3a6168704366bdd7a8c5af29881 by Nikita Sobolev in branch 'main': bpo-44891: Tests `id` preserving on `* 1` for `str` and `bytes` (GH-27745) https://github.com/python/cpython/commit/a2ce538e16d5e3a6168704366bdd7a8c5af29881 --

[issue44881] Consider integration of PyObject_GC_UnTrack() with the trashcan C API

2021-08-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks Neil for the thorough explanation! I think in any case we should benchmark this because this will affect *all* GC types if I understand correctly and the TS mechanism had shown slowdowns before -- __

[issue40222] "Zero cost" exception handling

2021-08-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Is there a separate issue for how we are handling CodeType()? No, that's why this is marked as release blocker, because this is the first issue where CodeType was changed. If you wish to close this one, please open a new issue explaining the situat

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x, 12.1

2021-08-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +26233 pull_request: https://github.com/python/cpython/pull/27758 ___ Python tracker ___ __

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x, 12.1

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset dd8eb303b90d63e1f56684bedadca6674bb74a29 by Łukasz Langa in branch 'main': bpo-26228: [doc] Adapt PTY documentation updates from GH-4167 (GH-27754) https://github.com/python/cpython/commit/dd8eb303b90d63e1f56684bedadca6674bb74a29 --

[issue44873] base64 RFC4648 test cases

2021-08-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +26234 pull_request: https://github.com/python/cpython/pull/27757 ___ Python tracker _

[issue36700] base64 has old references that should be updated

2021-08-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +26235 pull_request: https://github.com/python/cpython/pull/27759 ___ Python tracker _

[issue36700] base64 has old references that should be updated

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e43b9bbc31c22a0d97dc4fc420300e40c2d74166 by andrei kulakov in branch 'main': bpo-36700: [doc] Update base64 RFC references to RFC 4648 (GH-27700) https://github.com/python/cpython/commit/e43b9bbc31c22a0d97dc4fc420300e40c2d74166 -- nosy: +

[issue44891] Tests for `id(a) == id(a * 1)` for `bytes` and `str`

2021-08-13 Thread miss-islington
miss-islington added the comment: New changeset 45a97d91a42795fb0b220e67ee25a14b940c7e50 by Miss Islington (bot) in branch '3.10': bpo-44891: Tests `id` preserving on `* 1` for `str` and `bytes` (GH-27745) https://github.com/python/cpython/commit/45a97d91a42795fb0b220e67ee25a14b940c7e50 ---

[issue44891] Tests for `id(a) == id(a * 1)` for `bytes` and `str`

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: I opted for landing this and backporting to 3.10 to increase visibility. There will be a NEWS entry about this so if any alt implementations have issues with this test, they can reach us and we'll adapt. Thanks, Nikita! ✨ 🍰 ✨ -- resolution: -> fixed s

[issue44873] base64 RFC4648 test cases

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Andrei! ✨ 🍰 ✨ -- nosy: +lukasz.langa resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x, 12.1

2021-08-13 Thread miss-islington
miss-islington added the comment: New changeset d4128485d6c2cbfebe756f3eeec2c60137b63bba by Miss Islington (bot) in branch '3.10': bpo-26228: [doc] Adapt PTY documentation updates from GH-4167 (GH-27754) https://github.com/python/cpython/commit/d4128485d6c2cbfebe756f3eeec2c60137b63bba -

[issue36700] base64 has old references that should be updated

2021-08-13 Thread miss-islington
miss-islington added the comment: New changeset 16f73c8b5dbe02b4bf7f91ff9dbcd0886529bfe5 by Miss Islington (bot) in branch '3.10': bpo-36700: [doc] Update base64 RFC references to RFC 4648 (GH-27700) https://github.com/python/cpython/commit/16f73c8b5dbe02b4bf7f91ff9dbcd0886529bfe5 -

[issue36700] base64 has old references that should be updated

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for reporting, Paul, and Andrei for the patch! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue30077] Support Apple AIFF-C pseudo compression in aifc.py

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e4ed9d21534c2ed4397fdee0bb530a6e6a2c5af8 by dnknth in branch 'main': bpo-30077: Add support for Apple aifc/sowt pseudo-compression (GH-24449) https://github.com/python/cpython/commit/e4ed9d21534c2ed4397fdee0bb530a6e6a2c5af8 -- nosy: +luka

[issue30077] Support Apple AIFF-C pseudo compression in aifc.py

2021-08-13 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for reporting and the initial patch, Toby. And thanks for pushing this across the finish line, Yussuf! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.8 __

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

2021-08-13 Thread Gautam Chaudhuri
Change by Gautam Chaudhuri : -- pull_requests: +26236 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27760 ___ Python tracker ___ _

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-13 Thread Gautam Chaudhuri
Change by Gautam Chaudhuri : -- nosy: +quantum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40469] TimedRotatingFileHandler rotating on use not time

2021-08-13 Thread Vinay Sajip
Vinay Sajip added the comment: > You are far better and more experienced in maintaining widely used opensource > codebases so I wouldn't argue with you, but... :) Well, if a change introduces a problem, it will be my lookout, won't it? Just as the original patch for bpo-8117 is proving to be

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-13 Thread PySimpleGUI
PySimpleGUI added the comment: Thank you Terry! I'm glad I got it right. I've been trying to keep the wiki page updated that you mentioned as best I can: https://wiki.python.org/moin/GuiProgramming I agree with the overall conclusion that the wiki is the place these lists should live.

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread STINNER Victor
STINNER Victor added the comment: Chris: > Out of curiosity, is the failure deterministic in environments where it > fails? If not, what is the source of the indeterminism -- some kind of race > condition or something else? The GC uses counters and thresholds to decide which collection and w

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-13 Thread Alex Waygood
Alex Waygood added the comment: +1 to this suggestion. I had a use case for this the other day. It currently feels like something of a discrepancy between ABCs and `typing.Property`, which can be seen as analogous in some ways to "an ABC for the static type-checker". `typing.Property` allows

[issue40222] "Zero cost" exception handling

2021-08-13 Thread Guido van Rossum
Guido van Rossum added the comment: I propose we declare all APIs for code objects *unstable*, liable to change each (feature) release. I want to get rid of PyCode_NewWithPosArgs() and just have PyCode_New(). All callers to either one must be changed anyways. (And we’re not done changing thi

[issue40222] "Zero cost" exception handling

2021-08-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >> I want to get rid of PyCode_NewWithPosArgs() and just have PyCode_New(). That as added because of PEP 387 and unfortunately removing it is backwards incompatible. >> I propose we declare all APIs for code objects *unstable*, liable to change >> e

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have tried to reproduce this on my Linux and Mac machines and I have been unable to do it for the time being in either of them. -- nosy: +pablogsal ___ Python tracker

[issue40222] "Zero cost" exception handling

2021-08-13 Thread Guido van Rossum
Guido van Rossum added the comment: > >> I want to get rid of PyCode_NewWithPosArgs() and just have PyCode_New(). > That as added because of PEP 387 and unfortunately removing it is backwards > incompatible. Is changing the signature allowed? Because it *must* be changed (at the very least

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Irit Katriel
Irit Katriel added the comment: The script below hangs on my mac (it's an extract from test_recursion_in_except_handler). --- import sys count = 0 def main(): def f(): global count count += 1 try: f() except RecursionError: f() sys.setrecursionli

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Irit Katriel
Irit Katriel added the comment: Adding Mark since he worked on recursion recently. -- nosy: +Mark.Shannon ___ Python tracker ___ __

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Dong-hee Na
Dong-hee Na added the comment: >From my macOS, I was not able to reproduce the issue also as like as Victor >and Pablo. repeat 10 ./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

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Dong-hee Na
Dong-hee Na added the comment: > However hang was able to reproduce. I meant msg399539 -- ___ Python tracker ___ ___ Python-bugs-l

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +26237 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27761 ___ Python tracker ___ _

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Dong-hee Na
Dong-hee Na added the comment: Oops sorry. Without PR 27746, I was able to reproduce on my macOS environment. test_exceptions leaked [6, 6, 6] references, sum=18 test_exceptions leaked [6, 6, 6] memory blocks, sum=18 test_exceptions failed (reference leak) -- __

[issue41234] Remove symbol.sym_name

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andrei, on bpo, # tags numbers as bpo numbers, and creates links to bpo issues, whereas in PRs, # tags numbers as PR numbers and creates links to PRs. So # must be removed and PR added when transferring references. So: PR 21624 or PR21624 or even, says the

[issue41234] Remove symbol.sym_name

2021-08-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Remove the old parser ___ Python tracker ___

[issue41234] Remove symbol.sym_name

2021-08-13 Thread Andrei Kulakov
Andrei Kulakov added the comment: Terry: thanks! - that's good to know. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Irit Katriel
Irit Katriel added the comment: Regarding the hang in msg399539, do we need some special handling of the case were a RecursionError is being raised and its context is another RecursionError? Like a FatalError? -- ___ Python tracker

[issue40222] "Zero cost" exception handling

2021-08-13 Thread Guido van Rossum
Guido van Rossum added the comment: I've started a thread on python-dev. https://mail.python.org/archives/list/python-...@python.org/thread/ZWTBR5ESYR26BUIVMXOKPFRLGGYDJSFC/#ZWTBR5ESYR26BUIVMXOKPFRLGGYDJSFC -- ___ Python tracker

[issue44881] Consider integration of PyObject_GC_UnTrack() with the trashcan C API

2021-08-13 Thread Neil Schemenauer
Neil Schemenauer added the comment: > I think in any case we should benchmark this because this will affect *all* > GC types if I understand correctly and the TS mechanism had shown slowdowns > before We definitely need to benchmark. I would guess that adding trashcan protection to all GC type

[issue35105] Document that CPython accepts "invalid" identifiers

2021-08-13 Thread Andrei Kulakov
Andrei Kulakov added the comment: It seems like the documentation is lacking and perhaps misleading in regard to attributes. - anything hashable can be used as a key in an obj.__dict__: an int, a tuple, etc. According to __dict__ docs, all of those are attributes. There's no warning that th

[issue44910] Floating point issue

2021-08-13 Thread A wilson
New submission from A wilson : 0.01 + 273.15 should equal 273.16 but in python 3.9.5 or earlier report as 273.159997. -- messages: 399550 nosy: afw2alan priority: normal severity: normal status: open title: Floating point issue type: behavior versions: Python 3.9 _

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-13 Thread Gautam Chaudhuri
Change by Gautam Chaudhuri : -- keywords: +patch pull_requests: +26238 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27762 ___ Python tracker

[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2021-08-13 Thread Jack DeVries
Jack DeVries added the comment: I spent some time experimenting with making the expression bigger and the recursion limit lower in python2. It seems like in python2, the depth that the compiler will recurse is unrelated to sys.recursionlimit. Then, I lowered resource limits on stack and heap

[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2021-08-13 Thread Jack DeVries
Jack DeVries added the comment: edit; typo: **This document is the **closest** I can find -- ___ Python tracker ___ ___ Python-bug

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-13 Thread Gautam Chaudhuri
Gautam Chaudhuri added the comment: I've submitted a PR making the changes suggested by Terry. Any feedback/suggestions on the PR would be highly appreciated. -- Gautam Chaudhuri -- ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Maybe it's a very precise threshold which triggers the issue. Between Linux > and macOS, the site module executes different code paths which produce > different GC counters. > Sometimes, the GC must happen in a very precise line, one line later is too > la

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: "How does this explain it not being non-deterministic on" -> "How does this explain it not being deterministic on" -- ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Irit Katriel
Irit Katriel added the comment: For instance, if memory addresses of objects are different, so objects sort differently in different runs on the same system. -- ___ Python tracker __

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Last question: might trying different values of PYTHONHASHSEED help? -- ___ Python tracker ___ __

[issue30077] Support Apple AIFF-C pseudo compression in aifc.py

2021-08-13 Thread Toby Thurston
Toby Thurston added the comment: Hey! thanks for letting me know, glad it got there in the end. T. On Fri, 13 Aug 2021, at 12:33, Łukasz Langa wrote: > > Łukasz Langa added the comment: > > Thanks for reporting and the initial patch, Toby. And thanks for > pushing this across the finish l

[issue44079] [sqlite3] remove superfluous statement weak ref list from connection object

2021-08-13 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Berker: > My understanding is that their usages is a bit different: > one is for performance reasons (and it can configurable by users) and the > other is to keep track of statements inside a connection. > > I'm not fully sure that the both use cases can be

[issue44895] refleak test failure in test_exceptions

2021-08-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: If someone can reproduce more or less reliably, it would be great to know where are the leaked objects. For that, compile CPython with "-with-trace-refs", surround the suspicious test in a loop (test_no_hang_on_context_chain_cycle2 for example) of a 1

[issue44910] Floating point issue

2021-08-13 Thread Eric V. Smith
Eric V. Smith added the comment: This a limitation of the floating point type that python uses. See https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue44892] configparser fails when the file contains a "%" inside a commentary

2021-08-13 Thread Diego Ramirez
Diego Ramirez added the comment: Lukasz Langa, I would like to know your opinion, as you are recognized as the "configparser" developer. -- nosy: +lukasz.langa ___ Python tracker ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-08-13 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue44906] Crash on deep call stack under Windows

2021-08-13 Thread Steve Dower
Steve Dower added the comment: I guess we've got a new path through the interpreter loop that takes more stack space than before and isn't part of our existing recursion tests. It's probably somewhere in the vector call changes. Capturing the stack at overflow point should show us - I'll see

[issue44910] Floating point issue

2021-08-13 Thread A wilson
A wilson added the comment: Eric, I was unaware of this document and its implementation in python. where 0.01+0.15 = 0.16 but 0.01+273.15=273.159997 the latter which should be 273.16 which is triple point temperature of water in Kelvin. This floating point variance explains some if

[issue44906] Crash on deep call stack under Windows

2021-08-13 Thread Steve Dower
Steve Dower added the comment: I get stack overflows all the way back to 3.7, so it's probably not anything new. But our stack overflow detection is clearly not going to catch this case. It's really only set up for a direct call within Python code, but this is going through many more steps.

[issue35105] Document that CPython accepts "invalid" identifiers

2021-08-13 Thread Andrei Kulakov
Andrei Kulakov added the comment: In the last message I've said that according to __dict__ docs, anything in __dict__ is an attribute of respective obj. That's a bit too-strongly worded, the docs can be understood in the sense that anything that ends up in __dict__ via other mechanisms, such

[issue44862] [docs] make "Deprecated since version {deprecated}, will be removed in version {removed}" translation available

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: This tracker is for patching the english Python docs and CPython interpreter. Questions about using python should be asked elsewhere. The translated docs are the responsibility of a separate translation team and specific language teams. Either they chose n

[issue44863] Allow TypedDict to inherit from Generics

2021-08-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue44864] [argparse] Do not translate user-provided strings in `ArgumentParser.add_subparsers()`

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jérémie, what does the doc say about translation? This will likely determine whether the is a bug report or a future-version-only enhancement request. The PR changes the two lines as indicated above and the CLA is signed. A blurb will be needed if this is t

[issue44865] [argparse] Missing translations

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Same comment as for #44964, plus note that 3.8 and before only get security patches. Also, 3.9,3.10 only get bug fixes and I don't know if this qualifies. -- nosy: +terry.reedy versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue44894] HTTP request handler: check sys.stderr != None before logging

2021-08-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: HTTP request handler should check sys.stderr for None before use for logging -> HTTP request handler: check sys.stderr != None before logging ___ Python tracker _

[issue44896] Issue with unparse in ast module

2021-08-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +BTaskaya, Mark.Shannon, benjamin.peterson, brett.cannon, pablogsal, yselivanov ___ Python tracker ___

[issue44896] AttributeError in ast.unparse

2021-08-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Issue with unparse in ast module -> AttributeError in ast.unparse ___ Python tracker ___ ___ Py

[issue44898] Path.read_bytes() failed when path contains chinese character

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: If there is no file or directory by the name you give, then the exception is correct and there is no bug in CPython. A failing example should look like Steven's, with the filename in a string that is use to both create and access the file. -- nosy:

[issue44907] examples code output do not match the current version 3.9

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Example here is in https://docs.python.org/3/tutorial/controlflow.html#default-argument-values 2 more in PR in https://docs.python.org/3/tutorial/controlflow.html#function-examples I confirmed that message is same in 3.10 and 3.11. -- nosy: +terry.re

[issue44907] examples code output do not match the current version 3.9

2021-08-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +26240 pull_request: https://github.com/python/cpython/pull/27764 ___ Python tracker ___ __

[issue44907] examples code output do not match the current version 3.9

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ed524b4569b1e4a166886c880018418d46284378 by meowmeowmeowcat in branch 'main': bpo-44907: Update error messages in tutorial examples (GH-27755) https://github.com/python/cpython/commit/ed524b4569b1e4a166886c880018418d46284378 -- __

[issue44907] examples code output do not match the current version 3.9

2021-08-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26239 pull_request: https://github.com/python/cpython/pull/27763 ___ Python tracker _

  1   2   >