Skip to content
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

bpo-43094: Update sqlite3 docs to match implementation #24489

Closed
wants to merge 10 commits into from

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Feb 9, 2021

@erlend-aasland
Copy link
Contributor Author

@berkerpeksag Would you mind reviewing this?

skip news, I presume.

Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

I'm not Berker, but this LGTM :).

For convenience:
create_function:

"create_function($self, /, name, narg, func, *, deterministic=False)\n"

create_aggregate:

"create_aggregate($self, /, name, n_arg, aggregate_class)\n"

Which seems to match up with the changes in the docs.

@terryjreedy
Copy link
Member

This is a substantive change, not a typo or grammar fix, so I would not merge without a blurb.

@Fidget-Spinner
Copy link
Member

Fidget-Spinner commented Feb 9, 2021

Sorry if this isn't related, but I just noticed the docstrings on some other functions don't match either:
Eg create_collation docstring:

"create_collation($self, name, callback, /)\n"

Ref:

PyObject *name, PyObject *callable);

Meanwhile the one on python docs is correct
https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.create_collation

I wonder if this is intentional?

@erlend-aasland
Copy link
Contributor Author

Sorry if this isn't related, but I just noticed the docstrings on some other functions don't match either:
Eg create_collation docstring:
[...]

That seems to be a regression from #23341. Good catch! I guess it's fine to include that one in this PR. I'll do an audit of all docstrings/docs/specs in sqlite3 and add any discrepancies to the PR.

@erlend-aasland
Copy link
Contributor Author

This is a substantive change, not a typo or grammar fix, so I would not merge without a blurb.

Noted. Thanks!

@erlend-aasland
Copy link
Contributor Author

@Fidget-Spinner: I've done an audit of the module level functions. Should this be backported to 3.9 and 3.8? If so, I will have to split this PR in two: one that contains docstring fixes (regressions from my recent AC change), and one that contains documentation fixes that should be backported.

@Fidget-Spinner
Copy link
Member

@Fidget-Spinner: I've done an audit of the module level functions. Should this be backported to 3.9 and 3.8? If so, I will have to split this PR in two: one that contains docstring fixes (regressions from my recent AC change), and one that contains documentation fixes that should be backported.

Thanks for fixing them! My hunch is the regression fixes should go into another PR with the bpo number same as the PR which caused the regression, while the backportable stuff remains in this PR. However I am not an sqllite3 expert by any means, so I wouldn't be surprised if this hunch is wrong.

@erlend-aasland
Copy link
Contributor Author

Thanks for fixing them! My hunch is the regression fixes should go into another PR with the bpo number same as the PR which caused the regression, while the backportable stuff remains in this PR.

Makes sense!

@terryjreedy
Copy link
Member

Do not merge yet because there is still discussion on pydev, and some disagreement, as to precisely the fix should be. In particular, can we make the proper names keyword only? Please make sure you read the thread and wait for consensus.

Regression fixes do not have to be attached to the regressing issue. It has been done both ways, with a note on the original issue if done on a separate issue.

@erlend-aasland
Copy link
Contributor Author

Do not merge yet because there is still discussion on pydev, and some disagreement, as to precisely the fix should be. In particular, can we make the proper names keyword only? Please make sure you read the thread and wait for consensus.

Regression fixes do not have to be attached to the regressing issue. It has been done both ways, with a note on the original issue if done on a separate issue.

Yes, I'm following the thread. I think I'll close this PR bco. noise, and open a new one when there's concensus.

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.

6 participants