FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-41861: Convert sqlite3 to PEP 384 by erlend-aasland · Pull Request #22409 · python/cpython · GitHub

/ cpython Public

bpo-41861: Convert sqlite3 to PEP 384 - #22409

Closed
erlend-aasland wants to merge 8 commits into
python:masterfrom
erlend-aasland:fix-bpo-41861
Closed

bpo-41861: Convert sqlite3 to PEP 384#22409
erlend-aasland wants to merge 8 commits into
python:masterfrom
erlend-aasland:fix-bpo-41861

Conversation

erlend-aasland commented Sep 25, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

TODO:

  • Fix Cursor type leaks references
  • Fix Connection type leaks references

@berkerpeksag or @vstinner, could you point me in the right direction regarding solving the ref. leaks? I've been testing using python.exe -m test -F -r -j1 -R 3:10 test_sqlite.

https://www.python.org/dev/peps/pep-0384/

First step of converting sqlite3 to multi-phase init. AFAICS, the next step would be dynamic state.

https://bugs.python.org/issue41861

erlend-aasland changed the title bpo-41861: Convert sqlite to PEP 384 bpo-41861: Convert sqlite3 to PEP 384 Sep 25, 2020

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Sorry, but this PR is too large to be easily reviewed.

It seems like the PR converts static types to heap types. Can you try to write a first PR which only modify a few files and convert few types (ex: 3), which would be easier to review?

Please don't propose multiple PRs in parallel, since conflicts in PyInit__sqlite3() are likely.

For example, starting by only converting cache types:

extern PyTypeObject pysqlite_NodeType;
extern PyTypeObject pysqlite_CacheType;

Copy link
Copy Markdown
Contributor Author

Sorry, but this PR is too large to be easily reviewed.

It seems like the PR converts static types to heap types. Can you try to write a first PR which only modify a few files and convert few types (ex: 3), which would be easier to review?

Of course. I'll remove the two problematic commits and create a new PR. Thanks!

Please don't propose multiple PRs in parallel, since conflicts in PyInit__sqlite3() are likely.

Acknowledged.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL