Skip to content

bpo-44991: Normalise sqlite3 callback naming #28088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 7, 2021

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Aug 31, 2021

@encukou
Copy link
Member

encukou commented Sep 1, 2021

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
Copy link
Contributor Author

erlend-aasland commented Sep 1, 2021

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-aasland erlend-aasland changed the title bpo-44991: Normalise sqlite3 callback suffixes bpo-44991: Normalise sqlite3 callbacks, part 1 Sep 1, 2021
@erlend-aasland erlend-aasland changed the title bpo-44991: Normalise sqlite3 callbacks, part 1 bpo-44991: Normalise sqlite3 callback naming, part 1 Sep 1, 2021
@erlend-aasland
Copy link
Contributor Author

erlend-aasland commented Sep 1, 2021

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-aasland force-pushed the sqlite-normlise-callback-naming branch from df3becb to 0a9d214 Compare September 1, 2021 15:57
@erlend-aasland erlend-aasland changed the title bpo-44991: Normalise sqlite3 callback naming, part 1 bpo-44991: Normalise sqlite3 callback naming Sep 1, 2021
@encukou encukou merged commit 0474d06 into python:main Sep 7, 2021
@erlend-aasland erlend-aasland deleted the sqlite-normlise-callback-naming branch September 7, 2021 11:46
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