Title: Make optional parameters of sqlite3.connect() keyword-only · Issue #93057 · python/cpython · GitHub
Open Graph Title: Make optional parameters of sqlite3.connect() keyword-only · Issue #93057 · python/cpython
X Title: Make optional parameters of sqlite3.connect() keyword-only · Issue #93057 · python/cpython
Description: sqlite3.connect() has a large number of parameters: 1 required and 7 optional. It is much more convenient to pass optional arguments by keyword, because you can pass only values which differs from default. And if you pass positional argu...
Open Graph Description: sqlite3.connect() has a large number of parameters: 1 required and 7 optional. It is much more convenient to pass optional arguments by keyword, because you can pass only values which differs from ...
X Description: sqlite3.connect() has a large number of parameters: 1 required and 7 optional. It is much more convenient to pass optional arguments by keyword, because you can pass only values which differs from ...
Opengraph URL: https://github.com/python/cpython/issues/93057
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make optional parameters of sqlite3.connect() keyword-only","articleBody":"`sqlite3.connect()` has a large number of parameters: 1 required and 7 optional. It is much more convenient to pass optional arguments by keyword, because you can pass only values which differs from default. And if you pass positional arguments, it is easy to make an error and pass value as wrong argument.\r\n\r\nIt is recommended to make optional rarely used arguments keyword-only. I do not think it will break much code, but we need a deprecation period for this.\r\n\r\nThe problem is that `sqlite3.connect()` was converted to Argument Clinic, and it was much easier to add deprecation warning in the old code.\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-107879\n* gh-107948\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2022-05-21T15:57:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/93057/cpython/issues/93057"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:531fd190-6f13-3c30-fe92-5380f638c9e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E484:F5661:268BFDD:34390BB:696AD94E |
| html-safe-nonce | d17bd57362e42563e2e226be90aeef6f34c7ffb5336ff03176e1a9215ade7727 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDg0OkY1NjYxOjI2OEJGREQ6MzQzOTBCQjo2OTZBRDk0RSIsInZpc2l0b3JfaWQiOiIzNDA2MDUzNjE4OTE1OTI0MzAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eca48250f8460253b06a140494434151a7c46ef1a99907315137e8993580a722 |
| hovercard-subject-tag | issue:1244010323 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/93057/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c70b5b8e4597364999792147374dadac820bca8288be5286547b3c31521c117/python/cpython/issues/93057 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c70b5b8e4597364999792147374dadac820bca8288be5286547b3c31521c117/python/cpython/issues/93057 |
| og:image:alt | sqlite3.connect() has a large number of parameters: 1 required and 7 optional. It is much more convenient to pass optional arguments by keyword, because you can pass only values which differs from ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width