Skip to content

bpo-44991: Normalise sqlite3 callback naming - #28088

Merged
encukou merged 3 commits into
python:mainfrom
erlend-aasland:sqlite-normlise-callback-naming
Sep 7, 2021
Merged

bpo-44991: Normalise sqlite3 callback naming#28088
encukou merged 3 commits into
python:mainfrom
erlend-aasland:sqlite-normlise-callback-naming

Conversation

@erlend-aasland

@erlend-aaslanderlend-aasland commented Aug 31, 2021

Copy link
Copy Markdown
Contributor

@encukou

Copy link
Copy Markdown
Member

What about _destructor?

This PR turns out to be very small; maybe combine it with the next step if there is one coming?

@erlend-aasland

erlend-aasland commented Sep 1, 2021

Copy link
Copy Markdown
ContributorAuthor

What about _destructor?

Thanks for the heads-up. I'll add it right away.

This PR turns out to be very small; maybe combine it with the next step if there is one coming?

The next step of normalising is approximately 100 lines added and removed; I think it would clutter things too much. I'm fine with that, but it may be more timeconsuming to review.

@erlend-aaslanderlend-aasland changed the title bpo-44991: Normalise sqlite3 callback suffixesbpo-44991: Normalise sqlite3 callbacks, part 1Sep 1, 2021
@erlend-aaslanderlend-aasland changed the title bpo-44991: Normalise sqlite3 callbacks, part 1bpo-44991: Normalise sqlite3 callback naming, part 1Sep 1, 2021
@erlend-aasland

erlend-aasland commented Sep 1, 2021

Copy link
Copy Markdown
ContributorAuthor

I'll include the other changes; if you think it's too much, we can just revert that commit.

I see the diff wasn't as bad as I expected. Only 60-ish lines.

- all callbacks are now named xxx_callback
- normalise callable naming in set_*() functions
- normalise context argument naming in callbacks
@erlend-aasland
erlend-aaslandforce-pushed the sqlite-normlise-callback-naming branch from df3becb to 0a9d214CompareSeptember 1, 2021 15:57
@erlend-aaslanderlend-aasland changed the title bpo-44991: Normalise sqlite3 callback naming, part 1bpo-44991: Normalise sqlite3 callback namingSep 1, 2021
@encukou
encukou merged commit 0474d06 into python:mainSep 7, 2021
@erlend-aasland
erlend-aasland deleted the sqlite-normlise-callback-naming branch September 7, 2021 11:46
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@erlend-aasland@encukou@the-knights-who-say-ni@bedevere-bot