[issue44263] Better explain the GC contract for PyType_FromSpecWithBases

2021-05-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 43cf7c864a2941b3f8f823e5928721dd286b7778 by Pablo Galindo in branch 'main': bpo-44263: Mention PyType_Ready in the gc protocol warning (GH-26445) https://github.com/python/cpython/commit/43cf7c864a2941b3f8f823e5928721

[issue44263] Better explain the GC contract for PyType_FromSpecWithBases

2021-05-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44263> ___ ___

[issue44263] Better explain the GC contract for PyType_FromSpecWithBases

2021-05-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d8ce746e7c5193757c8d316105870b0dc5d6fa53 by Miss Islington (bot) in branch '3.10': bpo-44263: Mention PyType_Ready in the gc protocol warning (GH-26445) (#26446) https://github.com/python/cpyt

[issue44229] Intermittent connection errors in ssl tests on macOS CI

2021-05-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > This might be the same macOS bug. It could be, but the same thing happens on Windows -- ___ Python tracker <https://bugs.python.org/issu

[issue44268] gettext: deprecate selecting plural form by fractional numbers (part 2)

2021-05-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, can we add these warnings in 3.10? Thanks for checking! Yeah, I think it makes sense to go ahead adding these warnings to 3.10 . Please, add me as a reviewer to the backport PR to 3

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f097d2302be46b031687726011b86fc241a042ef by Miss Islington (bot) in branch '3.10': bpo-42972: Fully implement GC protocol for xxlimited (GH-26451) (GH-26460) https://github.com/python/cpyt

[issue44263] Better explain the GC contract for PyType_FromSpecWithBases

2021-05-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7fe9cad606a4ac7ac138528dcd19546394bc5a44 by Miss Islington (bot) in branch '3.10': bpo-44263: Fix _decimal and _testcapi GC protocol (GH-26464) (GH-26465) https://github.com/python/cpython/commit/7fe9cad606a4ac7ac138528dcd1954

[issue44229] Intermittent connection errors in ssl tests on macOS CI

2021-05-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Are you sure? All the reports are from macOS CI. Christian mentioned that it > could be similar to another ssl test failure that also happen on Windows, but > those tracebacks do not match the ones in this issue. I am certainly not su

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-05-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hu, I sort of agree, but I need to weigh how complex is going to be to special-case. I really don't want to start adding many different paths for the different built-ins in different situa

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-05-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, another problem is that "cannot assign to __debug__" is actually a compiler error, while "cannot assign to Ellipsis here. Maybe you meant '==' instead of '='?" is a parser error. This is because "__

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-05-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: What we can do is to replace: SyntaxError: cannot assign to Ellipsis here. Maybe you meant '==' instead of '='? for SyntaxError: cannot assign to '...' here. M

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-05-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I suggest to just close it or otherwise changing the message to include "..." instead of "Ellipsis". Anything else is actually much more complex than it seems, unfortunately -- ___ Py

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : Removed file: https://bugs.python.org/file50077/DTD-Matching-Gift-Dashboard - Google Sheets.html ___ Python tracker <https://bugs.python.org/issue42

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-06-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 39dd141a4ba68bbb38fd00a65cdcff711acdafb5 by Serhiy Storchaka in branch 'main': bpo-44273: Improve syntax error message for assigning to "..." (GH-26477) https://github.com/python/cpython/commit/39dd141a4ba68bbb38fd

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-06-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25073 pull_request: https://github.com/python/cpython/pull/26478 ___ Python tracker <https://bugs.python.org/issue44

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-06-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a384b6c04054a2c5050a99059836175cf73e2016 by Erlend Egeberg Aasland in branch 'main': bpo-44165: Optimise sqlite3 statement preparation by passing string size (GH-26206) https://github.com/python/cpyt

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Erlend, check out https://github.com/python/cpython/pull/26206#discussion_r643910263. After that we can close this issue -- ___ Python tracker <https://bugs.python.org/issue44

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fbf25b8c0dd1e62db59117d53bbd2d4131a06867 by Erlend Egeberg Aasland in branch 'main': bpo-44165: pysqlite_statement_create now returns a Py object, not an int (GH-26484) https://github.com/python/cpyt

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't see anything relevant in the logs. These are the last messages regarding this worker: 2021-06-02 18:38:26+ [-] Worker billenstein-macos detached from x86-64 macOS 3.7 2021-06-02 18:38:26+ [-] Worker billenstein-macos detached fro

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cea0585b7939b487d7089f9d473f495264e8a491 by Mark Shannon in branch '3.10': [3.10] bpo-44298: Backport #26513 to 3.10 (#26516) https://github.com/python/cpython/commit/cea0585b7939b487d7089f9d473f49

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Victor, this issue is reproducible on Linux. I reproduced it on my WSL. How did you managed? I ran test_asyncio for almost 5 hours with -R in my linux machine and could not reproduce? -- ___ Pyt

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > And extending the buildbot timer may not help since it seems it's running > infinitely Extending the bot time was done so we can use faulthandler to identify the test, because buildbot was cancelling the whole build

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ned, can you confirm that this works for you? I am closing the issue, but if something is missing, please, reopen it and we will look into it :) -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f461a7fc3f8740b9e79e8874175115a3474e5930 by Erlend Egeberg Aasland in branch 'main': bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module (GH-24203) https://github.com/python/cpyt

[issue11105] Compiling evil ast crashes interpreter

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f3491242e41933aa9529add7102edb68b80a25e9 by Batuhan Taskaya in branch 'main': bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) https://github.com/python/cpython/commit/f3491242e41933aa9529add7102edb

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > And I've identified the issue is in test_close_kill_running. The patch for > resolving the crash in bpo-38323 can be the cause of the newly introduced hang Also, how did you reached this

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3283bf4519139cf62ba04a76930f84ca1e7da910 by Pablo Galindo in branch '3.10': [3.10] bpo-44273: Improve syntax error message for assigning to "..." (GH-26477) (GH-26478) https://github.com/p

[issue11105] Compiling recursive Python ASTs crash the interpreter

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset de58b319af3a72440a74e807cf8a1194ed0c6d8c by Batuhan Taskaya in branch '3.9': [3.9] bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) (GH-26522) https://github.com/python/cpyt

[issue44042] [sqlite3] _pysqlite_connection_begin() optimisations

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44042] [sqlite3] _pysqlite_connection_begin() optimisations

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3446516ffa92c98519146253153484291947b273 by Erlend Egeberg Aasland in branch 'main': bpo-44042: Optimize sqlite3 begin transaction (GH-25908) https://github.com/python/cpython/commit/3446516ffa92c98519146253153484

[issue11105] Compiling recursive Python ASTs crash the interpreter

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Given this script: try: x = 34 a = 1 instead of printing: File "/home/pablogsal/github/python/master/lel.py", line 4 a = 1 ^ SyntaxError: invalid syntax we should print: File "/home/pablogsal/github/python/master/

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25117 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26523 ___ Python tracker <https://bugs.python.org/issu

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b250f89bb7e05e72a4641d44b988866b919575db by Pablo Galindo in branch 'main': bpo-44305: Improve syntax error for try blocks without except or finally (GH-26523) https://github.com/python/cpyt

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25118 pull_request: https://github.com/python/cpython/pull/26524 ___ Python tracker <https://bugs.python.org/issue44

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e53f72a1b42e17a331ed14bec674b1ee01d0720c by Pablo Galindo in branch '3.10': [3.10] bpo-44305: Improve syntax error for try blocks without except or finally (GH-26523) (GH-26524) https://github.com/python/cpyt

[issue32280] Expose `_PyRuntime` through a section name

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32280] Expose `_PyRuntime` through a section name

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 35002aa8f62dda1f79035e9904abdf476683e9be by Max Bélanger in branch 'main': bpo-32280: Store _PyRuntime in a named section (GH-4802) https://github.com/python/cpython/commit/35002aa8f62dda1f79035e9904abdf476683e9be -

[issue44310] lru_cache memory leak

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Using a weak dictionary is not a correct solution as the cache must take string ownership of the arguments and return value to do it's job properly. Moreover, there are many types in Python that don't support weak references so this

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Yes, with the commands you provided in the > https://bugs.python.org/issue38323#msg395090 I also reproduced the crash on > my WSL. And any suggestions on the other test failures in the log I attached? > I don't know if they are fix

[issue44312] test_asyncio leaked [1533, 1531, 1533] references, sum=4597

2021-06-04 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : All refleak buildbots are currently broken in master: .. test_asyncio leaked [1533, 1531, 1533] references, sum=4597 test_asyncio leaked [367, 366, 367] memory blocks, sum=1100 11 tests failed again: test_asyncgen test_asyncio test_code

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f has broken all the refleak buildbots. Example failure: BISECTION: c1e2583fdc4db6b43d163239ea42b0e8394171f is the first bad commit commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f Author

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, in the future, check with the buildbots before merging these kinds of big PRs. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25123 pull_request: https://github.com/python/cpython/pull/26530 ___ Python tracker <https://bugs.python.org/issue43

[issue44312] test_asyncio leaked [1533, 1531, 1533] references, sum=4597

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is caused by: https://bugs.python.org/issue43693 -- nosy: +Mark.Shannon, eric.snow ___ Python tracker <https://bugs.python.org/issue44

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I was just asking if we could do anything about the multiple test failures > (especially test_asyncio failure). We don't see any failures as the ones in your logs in the buildbots or otherwise, so seems something wrong in your sys

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR reverts commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and b2bf2bc1ece673d387341e06c8d3c2bc6e259747. Please, commit them back once the refleaks are resolved. I took a quick look and seems that there are several issues but there are more I could

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a46c220edc5cf716d0b71eb80ac29ecdb4ebb430 by stratakis in branch 'main': bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) https://github.com/python/cpython/commit/a46c220edc5cf716d0b71eb80ac29ecdb4ebb430 -

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 17c4edc4e0692fe55e185755ea8a2f5238f3ef08 by Pablo Galindo in branch 'main': bpo-43693: Revert commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and b2bf2bc1ece673d387341e06c8d3c2bc6e259747 (GH-26530) https://github.com/pyth

[issue44041] [sqlite3] check that column count is updated correctly for cached statements

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8363ac8607eca7398e568e1336154e1262a995a0 by Erlend Egeberg Aasland in branch 'main': bpo-44041: Add test for sqlite3 column count (GH-25907) https://github.com/python/cpython/commit/8363ac8607eca7398e568e1336154e

[issue44041] [sqlite3] check that column count is updated correctly for cached statements

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 006fd869e4798b68e266f5de89c83ddb531a756b by Erlend Egeberg Aasland in branch 'main': bpo-43853: Handle sqlite3_value_text() errors (GH-25422) https://github.com/python/cpython/commit/006fd869e4798b68e266f5de89c83d

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3f4d801bf907a5fcab50f3b64475d1410b90a80f by Miss Islington (bot) in branch '3.10': bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) (GH-26531) https://github.com/python/cpyt

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44315] [sqlite3] remove unused connection argument from pysqlite_step()

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7459208de194db6222d7e3aa301c2b831dbe566d by Erlend Egeberg Aasland in branch 'main': bpo-44315: Remove unused connection argument from pysqlite_step() (GH-26535) https://github.com/python/cpyt

[issue44315] [sqlite3] remove unused connection argument from pysqlite_step()

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 8.0 -> 9.0 pull_requests: +25131 pull_request: https://github.com/python/cpython/pull/26541 ___ Python tracker <https://bugs.python.org/issu

[issue44312] test_asyncio leaked [1533, 1531, 1533] references, sum=4597

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yep -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25132 pull_request: https://github.com/python/cpython/pull/26542 ___ Python tracker <https://bugs.python.org/issue38

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Raising this to a release blocker for 3.10.0 beta 3 as it breaks PyQt6 and other projects. -- priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issu

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: deferred blocker -> release blocker ___ Python tracker <https://bugs.python.org/issue43908> ___ ___ Python-

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: release blocker -> ___ Python tracker <https://bugs.python.org/issue42972> ___ ___ Python-bugs-list mai

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm landing https://github.com/python/cpython/pull/26542 as a temporary solution meanwhile we decide what to do with PR 26536. -- ___ Python tracker <https://bugs.python.org/is

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f171877ebe276749f31386baed5841ce37cbee2e by Pablo Galindo in branch 'main': bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH-26542) https://github.com/python/cpyt

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0d441d2e70e365b5dc517d8ff24a20b97bc4536a by Miss Islington (bot) in branch '3.10': bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test suite (GH-26542) (GH-26544) https://github.com/python/cpyt

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I did the bisection: ff359d735f1a60878975d1c5751bfd2361e84067 is the first bad commit commit ff359d735f1a60878975d1c5751bfd2361e84067 Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> Date: Mon May 31 02:12:27 2021

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issue44304> ___ ___ Python-bugs-list mai

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue44304> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25135 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26545 ___ Python tracker <https://bugs.python.org/issu

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The problem is that this is wrong: https://github.com/python/cpython/blob/f171877ebe276749f31386baed5841ce37cbee2e/Modules/_sqlite/statement.c#L411-L423 1) tp_clear should *not* do anything other than cleaning refs to python objects 2

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Using the reproducer code by Mike, without this fix: ❯ ./python ../lel.py [1]25344 segmentation fault ./python ../lel.py With this fix: ❯ ./python ../problem.py ❯ echo $? 0 -- ___ Python tracker

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is a simpler reproducer: dest = sqlite.connect(':memory:') def md5sum(t): return dest.create_function("md5", 1, md5sum) x = dest("create table lang (name, first_appeared)&q

[issue44310] Document that lru_cache uses hard references

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Agreed! I will let the PR to you :) -- ___ Python tracker <https://bugs.python.org/issue44310> ___ ___ Python-bug

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fa106a685c1f199aca5be5c2d0277a14cc9057bd by Pablo Galindo in branch 'main': bpo-44304: Fix crash in the sqlite3 module when the GC clears Statement objects (GH-26545) https://github.com/python/cpyt

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue11105] Compiling recursive Python ASTs crash the interpreter

2021-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Batuhan, can you take a look? -- ___ Python tracker <https://bugs.python.org/issue11105> ___ ___ Python-bugs-list mailin

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > sqlit3.Cursor is prone to the same bug. No, is not: it doesn't drop the GIL in tp_clear. There is technically no bug, but is true that tp_clear should only clean Python references. Although in this case there are some sematics with the clea

[issue44317] Problems of int literal SyntaxErrors

2021-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Is this expected? Yes, is an edge case of python identifiying two tokens together except that there is no space: >>> 3 4 File "", line 1 3 4 ^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? I hon

[issue44317] Suggestion for better syntax errors in tokenizer errors

2021-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: Problems of int literal SyntaxErrors -> Suggestion for better syntax errors in tokenizer errors ___ Python tracker <https://bugs.python.org/issu

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25138 pull_request: https://github.com/python/cpython/pull/26551 ___ Python tracker <https://bugs.python.org/issue44

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 6e3b7cf3af3ed7758b2c2193c1d393feb8ab8f72 by Pablo Galindo in branch 'main': bpo-44304: Ensure the sqlite3 destructor callback is always called with the GIL held (GH-26551) https://github.com/python/cpyt

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 317e9ed4363a86b1364573c5a5e30011a080ce6d by Miss Islington (bot) in branch '3.10': bpo-44304: Ensure the sqlite3 destructor callback is always called with the GIL held (GH-26551) (GH_26552) https://github.com/python/cpyt

[issue44317] Suggestion for better syntax errors in tokenizer errors

2021-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25142 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26555 ___ Python tracker <https://bugs.python.org/issu

[issue44317] Suggestion for better syntax errors in tokenizer errors

2021-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR 26555 does some improvements to your examples: >>> 0777 File "", line 1 0777 ^ SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers >>> 0 F

[issue11105] Compiling recursive Python ASTs crash the interpreter

2021-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >b) always skip the test on windows => we can do that but it might be > counterintuitive for the future Well, is not that the test is flaky technically, this means that the feature doesn't work on Windows (non release builds). So

[issue44327] [sqlite3] remove unused members from pysqlite_Connection

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 505624e917a2d3d845304f8d34fccd41f06d4720 by Erlend Egeberg Aasland in branch 'main': bpo-44327: Remove unused members from pysqlite_Connection (GH-26565) https://github.com/python/cpython/commit/505624e917a2d3d845304f8d34fccd

[issue44326] [sqlite3] remove unused members from pysqlite_Statement

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0d12f245523178eb62e22f5da5a276bfc7004ac4 by Erlend Egeberg Aasland in branch 'main': bpo-44326: Remove unused members from pysqlite_Statement (GH-26564) https://github.com/python/cpython/commit/0d12f245523178eb62e22f5da5a276

[issue44327] [sqlite3] remove unused members from pysqlite_Connection

2021-06-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44326] [sqlite3] remove unused members from pysqlite_Statement

2021-06-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44326> ___ ___

[issue44324] add a "expected expression" syntax error

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This one will be very tricky to do correctly because the '=' is very context-sensitive and the parser can be confused when backtracking, so this *may* be quite delicate/complex. I need to play a bit with this to know how feasible thi

[issue44324] add a "expected expression" syntax error

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I suspect this is going to be a pain for malformed expressions on the right. For instance: >>> a = {x: for x in {}} File "", line 1 a = {x: for x in {}} ^^^ SyntaxError: exp

[issue44329] [sqlite3] refactor pysqlite_statement_create

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > will avoid unneeded allocations/GC tracking, I am not sure what you mean, in the happy path you still need to GC track and allocate. -- nosy: +pablogsal ___ Python tracker <https://bugs.pyth

[issue44329] [sqlite3] refactor pysqlite_statement_create

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Yes, we need to allocate/track every time. I just propose to do so as late as > possible, in order to avoid allocating a PyObject before we know if it is > possible to actually create the statement. That describes much better t

[issue44324] add a "expected expression" syntax error

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >> Well, I was thinking we could just do a simple check in >> _PyPegen_check_tokenizer_errors or _PyPegen_run_parser functions. If the >> last three tokens in the Parser object's tokens array are NAME, >> EQUAL/MINEQUAL/

[issue44324] add a "expected expression" syntax error

2021-06-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I saw that unclosed parentheses' special error are checked in the same > place. Just to clarify: unclosed parentheses is a tokenizer error, not a parser error and this is handled by checking the tokenize status when it has already f

[issue44341] Conflict between re.match and match keyword

2021-06-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't understand this example. > importing re.match directly into __main__ replaces the keyword with the > function. It has not replaced anything, if you do a match statement it works and doesn't call your function. For exampl

<    5   6   7   8   9   10   11   12   13   14   >