Change by Erlend Egeberg Aasland :
--
pull_requests: +22956
pull_request: https://github.com/python/cpython/pull/24126
___
Python tracker
<https://bugs.python.org/issue41
Erlend Egeberg Aasland added the comment:
> I'm also in the process of removing PySocketModuleAPI from _ssl.c.
BTW, do we still want to keep the socket CAPI for external users?
--
___
Python tracker
<https://bugs.python.org/issu
Change by Erlend Egeberg Aasland :
--
pull_requests: +22947
pull_request: https://github.com/python/cpython/pull/24117
___
Python tracker
<https://bugs.python.org/issue41
Erlend Egeberg Aasland added the comment:
> I'm also in the process of removing PySocketModuleAPI from _ssl.c.
That's the only user of the API, right? In that case, I'll target _decimal
instead. Hai Shi is working on _curses and _datetime, AF
Erlend Egeberg Aasland added the comment:
> Welcome to join this bpo, you can enhance those extension modules if you like
> :)
Thanks :) I'll take a look at socket first.
--
___
Python tracker
<https://bugs.python.org/i
Erlend Egeberg Aasland added the comment:
Hai Shi, do you mind if I have a go at the socket module CAPI capsule?
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue41
Erlend Egeberg Aasland added the comment:
> +1 for dropping support for < 3.7.15 in master. We should fix or skip tests
> in maintenance branches.
PR's for fixing the tests in 3.9 and 3.8 are now awaiting merge. PR for
dropping support for SQLite pre 3.7.15 in master
Change by Erlend Egeberg Aasland :
--
pull_requests: +22935
pull_request: https://github.com/python/cpython/pull/24106
___
Python tracker
<https://bugs.python.org/issue40
Change by Erlend Egeberg Aasland :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue40822>
___
___
Pyth
Erlend Egeberg Aasland added the comment:
> FWIW, any core dev can merge SQLite updates for Windows (if they're satisfied
> there are no issues).
A CI check would indicate that there are no issues. The PoC CI is just a short
bash script wrapped in GitHub's workflow syntax. I'd be
Change by Erlend Egeberg Aasland :
--
pull_requests: +22926
pull_request: https://github.com/python/cpython/pull/24095
___
Python tracker
<https://bugs.python.org/issue1635
Change by Erlend Egeberg Aasland :
Added file:
https://bugs.python.org/file49718/0001-Add-simple-validation-CI.patch
___
Python tracker
<https://bugs.python.org/issue42
Change by Erlend Egeberg Aasland :
Removed file:
https://bugs.python.org/file49694/0001-Add-simple-validation-CI.patch
___
Python tracker
<https://bugs.python.org/issue42
Erlend Egeberg Aasland added the comment:
Ok, perhaps we should leave a comment about that? It already has a comment
about multi-phase init.
What about Modules/_testbuffer.c and the xx-modules?
$ grep -E 'static PyTypeObject .* =' $(find . -name "*.c"|grep -vE
'(Do
Change by Erlend Egeberg Aasland :
--
pull_requests: +22899
pull_request: https://github.com/python/cpython/pull/24066
___
Python tracker
<https://bugs.python.org/issue40
Change by Erlend Egeberg Aasland :
--
pull_requests: +22898
pull_request: https://github.com/python/cpython/pull/24065
___
Python tracker
<https://bugs.python.org/issue40
Erlend Egeberg Aasland added the comment:
Should Modules/_testcapimodule.c stay untouched?
--
___
Python tracker
<https://bugs.python.org/issue40077>
___
___
Change by Erlend Egeberg Aasland :
--
keywords: +patch
pull_requests: +22888
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24053
___
Python tracker
<https://bugs.python.org/issu
Erlend Egeberg Aasland added the comment:
Yes, R. Hipp has fixed this here:
https://www2.sqlite.org/cgi/src/info/e5d7209e118a8453
We still need to modify PCbuild in order to build the SQLite library with math
functions from 3.35.0 and onwards
Erlend Egeberg Aasland added the comment:
Using a NullSocket fixes the test in commit
f0f8ff8f06afd43947e268824aa4381add05ce8f
--
___
Python tracker
<https://bugs.python.org/issue38
Erlend Egeberg Aasland added the comment:
I've forked your work, Jason:
https://github.com/erlend-aasland/cpython/tree/bpo-38780-test
I added the test from msg356475, and I'm able to reproduce it by asserting that
the `socket` attribute is present (commit
Erlend Egeberg Aasland added the comment:
FYI, I've opened a thread on the SQLite Forum:
https://sqlite.org/forum/forumpost/721645dc36
--
___
Python tracker
<https://bugs.python.org/issue42
Erlend Egeberg Aasland added the comment:
Using SQLite 3.35.0 nightly build, building Python using PCbuild/build.bat and
PCBuild\pcbuild.sln with VS 2017 (does this reflect how the Windows team build
the installers?), I can confirm that math functions are _not_ included by
default. I added
Change by Erlend Egeberg Aasland :
--
pull_requests: +22850
pull_request: https://github.com/python/cpython/pull/24008
___
Python tracker
<https://bugs.python.org/issue24
Change by Erlend Egeberg Aasland :
--
pull_requests: +22849
pull_request: https://github.com/python/cpython/pull/24007
___
Python tracker
<https://bugs.python.org/issue40
Change by Erlend Egeberg Aasland :
--
pull_requests: +22825
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23980
___
Python tracker
<https://bugs.python.org/issu
Change by Erlend Egeberg Aasland :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42243>
___
___
Change by Erlend Egeberg Aasland :
--
resolution: -> wont fix
___
Python tracker
<https://bugs.python.org/issue42243>
___
___
Python-bugs-list mailing list
Un
Change by Erlend Egeberg Aasland :
--
keywords: +patch
pull_requests: +22823
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23978
___
Python tracker
<https://bugs.python.org/issu
Change by Erlend Egeberg Aasland :
--
pull_requests: +22819
pull_request: https://github.com/python/cpython/pull/23975
___
Python tracker
<https://bugs.python.org/issue40
Change by Erlend Egeberg Aasland :
--
pull_requests: +22817
pull_request: https://github.com/python/cpython/pull/23972
___
Python tracker
<https://bugs.python.org/issue1635
Change by Erlend Egeberg Aasland :
--
keywords: +patch
pull_requests: +22810
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23965
___
Python tracker
<https://bugs.python.org/issu
Change by Erlend Egeberg Aasland :
--
pull_requests: +22809
pull_request: https://github.com/python/cpython/pull/23964
___
Python tracker
<https://bugs.python.org/issue40
Erlend Egeberg Aasland added the comment:
> So, can this be closed?
For macOS, the SQLITE_ENABLE_MATH_FUNCTIONS option is enabled by default, but
I'm not sure about the Windows build. The SQLite docs says:
"This option is also included on Windows builds using the "Makefile.m
Erlend Egeberg Aasland added the comment:
Seems like the math functions will be included by default anyways, so we'll
have to explicitly exclude them if we don't want them.
https://www.sqlite.org/draft/compile.html#enable_math_functions:
"This option [SQLITE_ENABLE_MATH_FUNC
Erlend Egeberg Aasland added the comment:
I see no reason not to build SQLite with -DSQLITE_ENABLE_MATH_FUNCTIONS for the
Windows and macOS builds. Why take the detour through the Python library when
you can use the built-in SQLite functions?
The change is trivial: Add
Erlend Egeberg Aasland added the comment:
See attached proof-of-concept CI check. This GitHub Workflow extracts the
SQLite version information, downloads the amalgamation source code, and does a
simple `cmp` on each file.
Example run:
https://github.com/erlend-aasland/cpython-source-deps
Change by Erlend Egeberg Aasland :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue40866>
___
___
Change by Erlend Egeberg Aasland :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue42624>
___
___
Python-bugs-list mailing list
Unsub
Change by Erlend Egeberg Aasland :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue24139>
___
___
Python-bugs-list mailing list
Unsub
Change by Erlend Egeberg Aasland :
--
pull_requests: +22697
pull_request: https://github.com/python/cpython/pull/23838
___
Python tracker
<https://bugs.python.org/issue40
Erlend Egeberg Aasland added the comment:
Steve Dower: It should be fairly easy to add a CI check that validates the
source checksums, so you don't need to do it manually every time. I can throw
up a simple GH workflow for the sqlite branch if you want
Change by Erlend Egeberg Aasland :
--
nosy: +ned.deily, steve.dower
___
Python tracker
<https://bugs.python.org/issue42584>
___
___
Python-bugs-list mailin
Change by Erlend Egeberg Aasland :
--
pull_requests: +22541
pull_request: https://github.com/python/cpython/pull/23675
___
Python tracker
<https://bugs.python.org/issue42
Change by Erlend Egeberg Aasland :
--
keywords: +patch
pull_requests: +22540
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23674
___
Python tracker
<https://bugs.python.org/issu
New submission from Erlend Egeberg Aasland :
SQLite 3.34.0 was released 2020-12-01:
https://www.sqlite.org/releaselog/3_34_0.html
Compiles fine on master, and tests are completing without error.
--
components: Library (Lib)
messages: 382625
nosy: erlendaasland
priority: normal
Erlend Egeberg Aasland added the comment:
Thanks, Jason! I won't have time to look at this until perhaps next week,
however, feel free to add tests as you like.
N.B.: My patches might not be the best solution to the problem; it was just
something I threw up based on my initial understanding
Change by Erlend Egeberg Aasland :
--
pull_requests: +22319
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23428
___
Python tracker
<https://bugs.python.org/issu
Change by Erlend Egeberg Aasland :
--
pull_requests: +22285
pull_request: https://github.com/python/cpython/pull/23393
___
Python tracker
<https://bugs.python.org/issue1635
Erlend Egeberg Aasland added the comment:
For sqlite3, see bpo-42064
--
___
Python tracker
<https://bugs.python.org/issue1635741>
___
___
Python-bugs-list mailin
New submission from Erlend Egeberg Aasland :
Silent truncation was deprecated in Python 3.7 in bpo-28332 with commit
6a7d3480fc8fe4c60538547d2935083ccff0f631 by Serhiy Storchaka. It should be ok
to turn these into OverflowError's starting with Python 3.10.
--
components: Library (Lib
Change by Erlend Egeberg Aasland :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue42393>
___
___
Python-bugs-list mailing list
Un
Change by Erlend Egeberg Aasland :
--
pull_requests: +22232
pull_request: https://github.com/python/cpython/pull/23341
___
Python tracker
<https://bugs.python.org/issue40
Erlend Egeberg Aasland added the comment:
Yes, all sqlite3 types are converted to heap types.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Erlend Egeberg Aasland :
--
pull_requests: +6
pull_request: https://github.com/python/cpython/pull/23337
___
Python tracker
<https://bugs.python.org/issue41
Change by Erlend Egeberg Aasland :
--
title: Convert sqlite3 to PEP 384 -> Convert sqlite3 to heap types (PEP 384)
type: -> resource usage
versions: +Python 3.10
___
Python tracker
<https://bugs.python.org/i
Change by Erlend Egeberg Aasland :
--
pull_requests: +22193
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23302
___
Python tracker
<https://bugs.python.org/issu
Erlend Egeberg Aasland added the comment:
Sure, I'll create a PR right away.
--
___
Python tracker
<https://bugs.python.org/issue29076>
___
___
Python-bug
Change by Erlend Egeberg Aasland :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue38823>
___
___
Python-bugs-list mailing list
Unsub
Change by Erlend Egeberg Aasland :
--
pull_requests: +22082
pull_request: https://github.com/python/cpython/pull/23170
___
Python tracker
<https://bugs.python.org/issue1635
Change by Erlend Egeberg Aasland :
--
keywords: +patch
pull_requests: +22075
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23163
___
Python tracker
<https://bugs.python.org/issu
New submission from Erlend Egeberg Aasland :
Ref. discussion on GH-23148:
https://github.com/python/cpython/pull/23148#discussion_r517536083
OptimizedUnicode was obsoleted and undocumented in Python 3.3 (see commit
86dc732f1f).
Suggesting to either deprecate OptimizedUnicode in 3.10
Change by Erlend Egeberg Aasland :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue42262>
___
___
Python-bugs-list mailing list
Unsub
Change by Erlend Egeberg Aasland :
--
pull_requests: +22060
pull_request: https://github.com/python/cpython/pull/23148
___
Python tracker
<https://bugs.python.org/issue1635
Change by Erlend Egeberg Aasland :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue15751>
___
___
Python-bugs-list mailing list
Unsub
Change by Erlend Egeberg Aasland :
--
pull_requests: +22050
pull_request: https://github.com/python/cpython/pull/23136
___
Python tracker
<https://bugs.python.org/issue40
Erlend Egeberg Aasland added the comment:
FYI, rebased https://github.com/erlend-aasland/cpython/tree/bpo-42064/all onto
master, added Petr Viktorin's _PyType_GetModuleByDef() for use in item 7
(module state). I still run into problems in item 8, but I haven't devoted much
time for this yet
Change by Erlend Egeberg Aasland :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue42100>
___
___
Python-bugs-list mailing list
Unsub
Change by Erlend Egeberg Aasland :
--
pull_requests: +22040
pull_request: https://github.com/python/cpython/pull/23124
___
Python tracker
<https://bugs.python.org/issue40
Erlend Egeberg Aasland added the comment:
I've converted _sre to multi-phase init in this branch:
https://github.com/erlend-aasland/cpython/tree/bpo-1635741/sre
I'm waiting for GH-23101 to be merged (or rejected) before I submit the PR.
It's a fairly large PR (1 file changed, 259 insertions
Change by Erlend Egeberg Aasland :
--
pull_requests: +22025
pull_request: https://github.com/python/cpython/pull/23108
___
Python tracker
<https://bugs.python.org/issue40
Erlend Egeberg Aasland added the comment:
> Are all these occurrences in the module initialization code?
Most of them, but not all.
> but rewriting can introduce new bugs.
Of course.
> You can do this, but it will be treated as pure cosmetic change. It can be
> accepted if
Change by Erlend Egeberg Aasland :
--
keywords: +patch
pull_requests: +22018
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23101
___
Python tracker
<https://bugs.python.org/issu
New submission from Erlend Egeberg Aasland :
Quoting from https://docs.python.org/3.10/c-api/module.html:
"It is recommended extensions use other PyModule_* and PyObject_* functions
rather than directly manipulate a module’s __dict__."
A number of modules still access the module
Erlend Egeberg Aasland added the comment:
> [not sure if this is how you do backporting, a new issue and GH PR for each
> supported release tag?]
Backports are almost always created as backports of a specific GitHub pull
request. The pull request is labelled as, for example, "nee
Change by Erlend Egeberg Aasland :
--
keywords: +patch
nosy: +erlendaasland
nosy_count: 1.0 -> 2.0
pull_requests: +22016
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19581
___
Python tracker
<https://bugs.p
Change by Erlend Egeberg Aasland :
--
keywords: +patch
nosy: +erlendaasland
nosy_count: 1.0 -> 2.0
pull_requests: +22017
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19581
___
Python tracker
<https://bugs.p
Erlend Egeberg Aasland added the comment:
> Should I close this issue—and PR—then? - Backport from master to these?
If this fix is wanted in 3.9 and 3.8, I think the correct way to proceed would
be to close GH-23072 and backport GH-19581.
Try checking out 3.9 and cherrypicking 7f33
Change by Erlend Egeberg Aasland :
--
nosy: +ronaldoussoren
___
Python tracker
<https://bugs.python.org/issue42229>
___
___
Python-bugs-list mailing list
Unsub
Erlend Egeberg Aasland added the comment:
> Yes, this commit extends his changes to include macOS support (for some
> reason that SQLite version check doesn’t work properly on macOS
I can't reproduce this on master on macOS 10.15.7 with the SQLite 3.28.0 that's
shipped with
Erlend Egeberg Aasland added the comment:
Oh, I see now that you're only mentioning 3.9 here. The issue was fixed in
master only (that is 3.10 alpha). Perhaps GH-19581 should be backported to 3.9,
or even 3.8, but that's not for me to decide.
Note: your patch is against 3.10, not 3.9
Erlend Egeberg Aasland added the comment:
Look at bpo-24464 regarding the shared cache issue. Apparently I did not
remember correctly regarding its status.
--
___
Python tracker
<https://bugs.python.org/issue42
Erlend Egeberg Aasland added the comment:
FYI, commit 7f331c8 (GH-19581 / bpo-40318) migrates the sqlite3 to the new
trace API.
There was also a discussion about sqlite3_enable_shared_cache() on bpo, but I
think it was closed as "wont-fix", IIRC.
--
nosy: +erl
Change by Erlend Egeberg Aasland :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue40512>
___
___
Python-bugs-list mailing list
Unsub
Erlend Egeberg Aasland added the comment:
> Thank you erlendaasland for working on GH-22484.
… and thank you for taking the time to review this!
--
___
Python tracker
<https://bugs.python.org/issu
Change by Erlend Egeberg Aasland :
--
pull_requests: +21976
pull_request: https://github.com/python/cpython/pull/23057
___
Python tracker
<https://bugs.python.org/issue40
Change by Erlend Egeberg Aasland :
--
keywords: +patch
pull_requests: +21965
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23046
___
Python tracker
<https://bugs.python.org/issu
New submission from Erlend Egeberg Aasland :
Get rid of the `pysqlite_Cache->decref_factory` hack by implementing proper
support for cyclic garbage collection.
--
components: Library (Lib)
messages: 379998
nosy: berker.peksag, erlendaasland
priority: normal
severity: normal
sta
Erlend Egeberg Aasland added the comment:
I've narrowed down the traverse problems to Py_VISIT(state->CacheType).
Suspecting this has to do with the cyclic references in cache/connection.
Preliminary tests with GC tracking `cache->factory` look promising, but this is
a part of the
Erlend Egeberg Aasland added the comment:
Sorted out item 7 (module state). Item 8 is mostly in place, although I get
ref. count errors if I add traverse/clear callbacks, so I've temporarily
disabled those.
Proof-of-concept of multi-phase init can be found here:
https://github.com/erlend
Erlend Egeberg Aasland added the comment:
Connection.__init__() fixed by iterating though tp_bases in order to find the
correct base class to load the state from. There should be a better way to do
this than to dig through type member internals
Erlend Egeberg Aasland added the comment:
Work with item 7 is progressing; see WIP branch for details. Current
showstopper is how to fetch module state from Connection.__init__ when it has
been overloaded (for example in /Lib/sqlite3/test/factory.py). Guessing that
Py_TYPE(self) does
Erlend Egeberg Aasland added the comment:
FYI, WIP branch for this bpo is here:
https://github.com/erlend-aasland/cpython/commits/bpo-42064/all
This currently includes items 1 though 6. I'll update the WIP branch with a
draft of items 7 and 8, hopefully tomorrow
Erlend Egeberg Aasland added the comment:
No, unless we can add `self` as a private context to a sqlite3 database handle,
we can't use that shortcut. However, using a custom context struct works, and
it's a minor code change.
Proof-of-concept implementation diffstat:
2 files changed, 54
Erlend Egeberg Aasland added the comment:
Instead of using a custom context struct for sqlite3_create_funcion_v2(), we
may just use sqlite3_context_db_handle() to get `self`, and then fetch the
state using PyType_GetModuleState(Py_TYPE(self
New submission from Erlend Egeberg Aasland :
Porting sqlite3 to multi-phase initialisation is non-trivial and must be broken
into smaller bpo's, often with multiple PR's per bpo. As far as I can see, this
is the task list:
1) Heap types (PEP 384): bpo-41861
2) Argument Clinic: bpo-40956
3
New submission from Erlend Egeberg Aasland :
Fixed in GH-22417 / bpo-41861
--
resolution: -> out of date
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Erlend Egeberg Aasland :
The 'defining_class' AC converter is not documented.
https://www.python.org/dev/peps/pep-0573/#argument-clinic
https://docs.python.org/3.10/howto/clinic.html
--
components: Argument Clinic
messages: 378696
nosy: erlendaasland, larry
Change by Erlend Egeberg Aasland :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Erlend Egeberg Aasland added the comment:
By the way, what's the preferred way to benchmark performance?
--
___
Python tracker
<https://bugs.python.org/issue40
401 - 500 of 656 matches
Mail list logo