[issue44855] [DOC] some sqlite3 exceptions are not documented

2021-08-06 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : sqlite3.InterfaceError, sqlite3.DataError, and sqlite3.InternalError are not documented. -- assignee: docs@python components: Documentation messages: 399139 nosy: docs@python, erlendaasland priority: normal severity: normal status: open title

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

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26136 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/27642 ___ Python tracker <https://bugs.python.org/issu

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

2021-08-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Serhiy, what's the preferred way to append to existing NEWS entries: should I update the existing NEWS entries tied to this issue, or add new entries (with the same bpo number)? -- ___ Python tracker <ht

[issue44822] [sqlite3] Do not truncate results of user functions and aggregates on the first NUL

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26133 pull_request: https://github.com/python/cpython/pull/27639 ___ Python tracker <https://bugs.python.org/issue44

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

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: fixed -> status: closed -> open ___ Python tracker <https://bugs.python.org/issue43853> ___ ___ Python-bugs-

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

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43853> ___ ___ Pyth

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

2021-08-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'll add extra tests in a separate PR, so we can easily backport it to 3.10 and 3.9. -- ___ Python tracker <https://bugs.python.org/issue43

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

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26121 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/27627 ___ Python tracker <https://bugs.python.org/issu

[issue38411] SQLITE_MISUSE race condition in sqlite3 is misleadingly raised as a binding error

2021-08-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I've been trying to provoke this on my Mac (macOS 11.4) with Python 3.8 though 3.11 (dev) without success. Are you still able to reproduce this, Jack? If you can attach the output of python3.10 -m test.pythoninfo, I could try to set up a similar

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26116 pull_request: https://github.com/python/cpython/pull/27622 ___ Python tracker <https://bugs.python.org/issue44

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26115 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27621 ___ Python tracker <https://bugs.python.org/issu

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-08-06 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Upgrade macOS and Windows installers to use SQLite 3.36.0. SQLite 3.36.0 was released June 18 2021. https://www.sqlite.org/releaselog/3_36_0.html -- components: Windows, macOS messages: 399061 nosy: erlendaasland, ned.deily, paul.moore

[issue38411] SQLITE_MISUSE race condition in sqlite3 is misleadingly raised as a binding error

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue38411> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21465] sqlite3 Row can return duplicate keys when using adapters

2021-08-05 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Closing this for now. If anyone disagrees, please reopen :) -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.or

[issue20587] sqlite3 converter not being called

2021-08-05 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Closing as out-of-date. If anyone disagrees, please reopen :) -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.or

[issue44818] '\t' (tab) support

2021-08-05 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I guess Python can't support tab AFAIK, it was a deliberate decision during the Python 2 => Python 3 transition. > [...] it sounds Gnu nano mix spaces and tabs! You can set up GNU nano to expand tabs: $ echo "set tabstospaces

[issue44818] '\t' (tab) support

2021-08-05 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44818] '\t' (tab) support

2021-08-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'm guessing this has to do with mixing spaces and tabs when indenting code. This can be fixed in your text editor. -- nosy: +erlendaasland status: open -> pending ___ Python tracker <https://bugs.pyth

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Serhiy, I've updated the PR, if you want to take a look. Thanks for your feedback. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Could you please add a test for string containing embedded NUL? Of course, thanks for the heads up. > I think that we should raise explicit error if sz > INT_MAX. Yes, I thought about this. I do agree that raising OverflowError would be bette

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26090 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27588 ___ Python tracker <https://bugs.python.org/issu

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : The third argument to sqlite3_result_text() is the length of the string passed as the second argument. Currently, we pass -1, so SQLite has to invoke strlen() to compute the length of the passed string. Suggesting to use PyUnicode_AsUTF8AndSize() iso

[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > In production the error was happening after 30 minutes of so. Great, thanks. > The major problem is that I don't exactly know how to provoke SQLite to > acquire an internal lock. IIRC, you can provoke the internal SQLite lock simply

[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-08-02 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks! I had to comment out the reg_func() call (it is not defined in test.py, and I don't know what it's supposed to do), and change "with lock.shared_context():" to "with lock:", but I'm unable get a deadlock. I've tried with Pyt

[issue42698] Deadlock in pysqlite_connection_dealloc()

2021-07-30 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: hydroflask, can you provide a reproducer? -- nosy: +erlendaasland versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue42

[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-30 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-30 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- assignee: -> erlendaasland status: open -> pending versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/i

[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25991 pull_request: https://github.com/python/cpython/pull/27472 ___ Python tracker <https://bugs.python.org/issue31

[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25988 pull_request: https://github.com/python/cpython/pull/27465 ___ Python tracker <https://bugs.python.org/issue31

[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-29 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25987 pull_request: https://github.com/python/cpython/pull/27464 ___ Python tracker <https://bugs.python.org/issue31

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-29 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25982 pull_request: https://github.com/python/cpython/pull/27456 ___ Python tracker <https://bugs.python.org/issue42

[issue44688] [sqlite3] Remove ASCII limitation from sqlite3.Connection.create_collation()

2021-07-29 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31746] crashes in sqlite3.Connection in case it is uninitialized or partially initialized

2021-07-28 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland nosy_count: 1.0 -> 2.0 pull_requests: +25960 pull_request: https://github.com/python/cpython/pull/27431 ___ Python tracker <https://bugs.python.org/issu

[issue3783] dbm.sqlite proof of concept

2021-07-28 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue3783> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44688] [sqlite3] Remove ASCII limitation from sqlite3.Connection.create_collation()

2021-07-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25928 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27395 ___ Python tracker <https://bugs.python.org/issu

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-20 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25818 pull_request: https://github.com/python/cpython/pull/27273 ___ Python tracker <https://bugs.python.org/issue42

[issue44688] [sqlite3] Remove ASCII limitation from sqlite3.Connection.create_collation()

2021-07-20 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : The sqlite3.Connection.create_collation() function limits collation names to ASCII characters only. As sqlite3_create_collation_v2() (and sqlite3_create_collation()) support UTF8, there is no need for this limitation anymore. See https://github.com

[issue34828] sqlite.iterdump does not work for (most) databases with autoincrement

2021-07-15 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue34828> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

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

[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-14 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25695 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27158 ___ Python tracker <https://bugs.python.org/issu

[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-14 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : pysqlite_collation_callback() currently uses the variable argument function PyObject_CallFunctionObjArgs(). Suggesting micro-optimise this by using PyObject_Vectorcall instead. -- components: Extension Modules messages: 397521 nosy

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25693 pull_request: https://github.com/python/cpython/pull/27156 ___ Python tracker <https://bugs.python.org/issue42

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25692 pull_request: https://github.com/python/cpython/pull/27155 ___ Python tracker <https://bugs.python.org/issue42

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks John, for the report, and Jack, for the fix! -- nosy: +erlendaasland resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44517] test__xxsubinterpreters: AMD64 Fedora Stable 3.x buildbot aborts at test_still_running

2021-07-14 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The AMD64 Fedora Stable 3.x buildbot has not been red for one week. Closing this now. Victor/Pablo, please reopen if you disagree. -- resolution: -> not a bug stage: -> resolved status: pending -&g

[issue44517] test__xxsubinterpreters: AMD64 Fedora Stable 3.x buildbot aborts at test_still_running

2021-07-10 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue44517> ___ ___ Python-bugs-list mailing list Un

[issue44517] test__xxsubinterpreters: AMD64 Fedora Stable 3.x buildbot aborts at test_still_running

2021-07-10 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, this buildbot has been green after Victor's git clean adjustment in the buildbot repo. I've been trying to reproduce the test_still_running failure on the buildbot, but have not been able to do so deterministically

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

2021-07-08 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: These types now lack the Py_TPFLAGS_IMMUTABLETYPE flag: ## Types converted in Python 3.9 - _abc._abc_data - _json.Encoder - _json.Scanner - _random.Random - _struct.Struct - _struct.unpack_iterator - ast.AST - posix.DirEntry - posix.ScandirIterator

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

2021-07-08 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Is anything left here? Should the immutable flag also be applied to the heap types converted in and before Python 3.9 before closing this issue? -- ___ Python tracker <https://bugs.python.org/issu

[issue41576] document BaseException in favour of bare except in error tutorial

2021-07-05 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Serhiy/Terry: Is further discussion needed? Can this be closed, or should the proposed PR be applied (after resolving any issues)? -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue41

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2021-07-05 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Asyncio Event Documentation Links Incorrect ___ Python tracker <https://bugs.python

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

2021-07-02 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25562 pull_request: https://github.com/python/cpython/pull/27001 ___ Python tracker <https://bugs.python.org/issue43

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

2021-07-01 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: In inherit_slots() in Objects/typeobject.c, Py_TPFLAGS_HAVE_VECTORCALL inheritance depends on if the base type is a heap type or not. This aligns with PEP 590[1]: Heap types never inherit the vectorcall protocol because that would not be safe (heap

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-28 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'd be interested in hearing Ronald's opinion. (Added to nosy.) -- nosy: +ronaldoussoren ___ Python tracker <https://bugs.python.org/issue44

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-28 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: But here, it is write() that returns EPROTOTYPE. See msg394798. -- ___ Python tracker <https://bugs.python.org/issue44

[issue42238] Deprecate suspicious.py?

2021-06-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue42238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I haven't observed this issue on the CI since GH-26893 through GH-26896 was merged. Marking this as resolved. If anyone disagrees, feel free to reopen :) -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue44517] test__xxsubinterpreters: AMD64 Fedora Stable 3.x buildbot aborts at test_still_running

2021-06-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Fatal Python error: Py_EndInterpreter: thread still has a frame Python runtime state: initialized Thread 0x7ff625ee4740 (most recent call first): File "", line 4 in make: *** [Makefile:1256: buildbottest] Aborted (core dumped) progra

[issue44517] test__xxsubinterpreters: AMD64 Fedora Stable 3.x buildbot aborts at test_still_running

2021-06-26 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Builder: https://buildbot.python.org/all/#/builders/543 The buildbot has failed since 0982ded179f280176868c1c4eccf77bf70687816: bpo-44032: Move pointer to code object from frame-object to frame specials array. (GH-26771) Test stdio log attached

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Two new failures today: https://github.com/python/cpython/runs/2905621215: 2021-06-24T14:18:23.3772681Z == 2021-06-24T14:18:23.3773622Z FAIL

[issue44506] test_asyncio: test_sendfile_close_peer_in_the_middle_of_receiving fails on Windows x64 and x86

2021-06-24 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure ___ Python tra

[issue44506] test_asyncio: test_sendfile_close_peer_in_the_middle_of_receiving fails on Windows x64 and x86

2021-06-24 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : https://github.com/python/cpython/runs/2905621215: 2021-06-24T14:18:23.3772681Z == 2021-06-24T14:18:23.3773622Z FAIL: test_sendfile_close_peer_in_the_middle_of_receiving

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, here's a CI failure against 3.9: https://github.com/python/cpython/runs/2894813367?check_suite_focus=true -- ___ Python tracker <https://bugs.python.org/issue44

[issue43553] [sqlite3] Improve test coverage

2021-06-24 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33450] unexpected EPROTOTYPE returned by sendto on MAC OSX

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: See also bpo-44229. -- ___ Python tracker <https://bugs.python.org/issue33450> ___ ___ Python-bugs-list mailing list Unsub

[issue44237] test_ssl randomly fails on macOS GH Action: test_get_server_certificate_sni() and test_get_server_certificate_timeout()

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Marking this as a duplicate of bpo-44229. Please revert if you disagree. -- dependencies: -test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI resolution: -> duplicate st

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Marking bpo-44237 as a duplicate of this issue. -- ___ Python tracker <https://bugs.python.org/issue44229> ___ ___ Pytho

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Marking bpo-43855 as a duplicate of this issue. -- ___ Python tracker <https://bugs.python.org/issue44229> ___ ___ Pytho

[issue43855] test_ssl: test_msg_callback_deadlock_bpo43577() failed on macOS of GitHub Action

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Closing as a duplicate of bpo-44229. Please revert if you disagree. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-24 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25469 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26893 ___ Python tracker <https://bugs.python.org/issu

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I can reproduce these issues easily on 3.7, 3.8, and 3.9: $ python3.7 -m test test_ssl -u all -F -m test_get_server_certificate -v [...] test_get_server_certificate (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: ... should perhaps also return True in that case, but it does not seem to have any thing to say. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Using this patch, I'm (so far) no longer able to reproduce these test failures: diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index cee97a8302..c9c1546467 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -2443,9 +2443,13 @@ def

[issue43988] Add test.support.check_disallow_instantiation()

2021-06-24 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25466 pull_request: https://github.com/python/cpython/pull/26889 ___ Python tracker <https://bugs.python.org/issue43

[issue43553] [sqlite3] Improve test coverage

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25464 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26886 ___ Python tracker <https://bugs.python.org/issu

[issue43988] Add test.support.check_disallow_instantiation()

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: fixed -> status: closed -> open versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/i

[issue43988] Add test.support.check_disallow_instantiation()

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25463 pull_request: https://github.com/python/cpython/pull/26885 ___ Python tracker <https://bugs.python.org/issue43

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25462 pull_request: https://github.com/python/cpython/pull/26884 ___ Python tracker <https://bugs.python.org/issue42

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: See also bpo-33450. -- ___ Python tracker <https://bugs.python.org/issue44229> ___ ___ Python-bugs-list mailing list Unsub

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Has these issues (ConnectionRefusedError/ConnectionResetError during handshake) been reported on other systems than macOS? AFAICS, they've only been reported for the macOS CI. -- ___ Python tracker <ht

[issue44499] [sqlite3] make sqlite3.Connection exception refs strong

2021-06-23 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, pysqlite_Connection keeps borrowed references to all the sqlite3 exception types. Suggesting to convert these to strong refs. See comments on GH-26745: https://github.com/python/cpython/pull/26745#issuecomment-866810269 -- assignee

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

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25452 pull_request: https://github.com/python/cpython/pull/26876 ___ Python tracker <https://bugs.python.org/issue42

[issue44491] [sqlite3] allow clearing the authoriser callback

2021-06-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25438 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26863 ___ Python tracker <https://bugs.python.org/issu

[issue44491] [sqlite3] allow clearing the authoriser callback

2021-06-22 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, it is possible to clear both the sqlite3 trace callback and progress handler by passing 'None' as the callback/handler, however it is not possible to clear the authoriser callback. Suggesting to allow clearing the authoriser callback

[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2021-06-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, sqlite3 was converted to Argument Clinic in bpo-40956. -- ___ Python tracker <https://bugs.python.org/issue20

[issue44484] test_concurrent_futures: failure on Windows (x64)

2021-06-22 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : https://github.com/python/cpython/pull/26840/checks?check_run_id=2879802998 2021-06-21T22:34:41.2973359Z Current runner version: '2.278.0' 2021-06-21T22:34:41.3112811Z ##[group]Operating System 2021-06-21T22:34:41.3113619Z Microsoft Windows Server 2019

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-21 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25421 pull_request: https://github.com/python/cpython/pull/26840 ___ Python tracker <https://bugs.python.org/issue42

[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-06-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, bpo-44087 added the Py_TPFLAGS_DISALLOW_INSTANTIATION flag to sqlite3.Statement. (Side note: I find the issue title a little bit confusing.) -- ___ Python tracker <https://bugs.python.org/issue43

[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25397 pull_request: https://github.com/python/cpython/pull/26816 ___ Python tracker <https://bugs.python.org/issue44

[issue40956] Use Argument Clinic in sqlite3

2021-06-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Erlend, is anything left in this issue? Nothing left; thank you for your guidance and reviews, Dong-hee, Berker, Serhiy, and Pablo. -- resolution: -> fixed stage: patch review -> resolved status: open

[issue44444] How can track and trace your parcel live?

2021-06-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38211] clean up type_init()

2021-06-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'm marking this as closed/fixed. Mark, please reopen if you disagree :) -- nosy: +erlendaasland resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue44431] Add command-line functionality to uuid module

2021-06-16 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue44431> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue44434> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44430] [sqlite3] refactor threading tests

2021-06-16 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The current code duplication has several negative impacts, IMO: - Readability Currently the ThreadTests class spans 173 lines. Refactored, it spans 51 lines (should fit in a screenful), making it easy to see what's actually being tested. Currently

[issue44430] [sqlite3] refactor threading tests

2021-06-15 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25333 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26748 ___ Python tracker <https://bugs.python.org/issu

[issue44430] [sqlite3] refactor threading tests

2021-06-15 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : The threading tests (ThreadTests) in Lib/sqlite3/test/dbapi.py has a lot of code duplication, and none of the test methods use the test.support.threading_helper.reap_threads helper. Also, some branches are not covered by this test class. Suggesting

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-15 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25330 pull_request: https://github.com/python/cpython/pull/26745 ___ Python tracker <https://bugs.python.org/issue42

[issue41930] Wrap sqlite3_serialize API in sqlite3 module

2021-06-14 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > What would be the use case for this? Quoting D. Richard Hipp, from the sqlite-users mailing list, 2018-03-18, FWIW: These APIs support the concept of using small databases (small enough to fit in memory) as a container for passing information aro

<    1   2   3   4   5   6   7   8   9   >