[New-bugs-announce] [issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

Dong-hee Na report at bugs.python.org
Sun Dec 27 03:11:58 EST 2020


New submission from Dong-hee Na <donghee.na at python.org>:

Docs says that pages default value is 0 but the implementation is -1

docs: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.backup
impl: https://github.com/python/cpython/blob/f4507231e3f0cf8827cec5592571ce371c6813e8/Modules/_sqlite/connection.c#L1565

But the behavior will be the same and if the pages is set to zero, we update this value to -1.
https://github.com/python/cpython/blob/f4507231e3f0cf8827cec5592571ce371c6813e8/Modules/_sqlite/connection.c#L1625

So IMHO, I'd like to suggest updating the docs rather than updating the implementation.

----------
components: Extension Modules
messages: 383838
nosy: berker.peksag, corona10, erlendaasland, serhiy.storchaka
priority: normal
severity: normal
status: open
title: sqlite3.Connection.backup default value is diffrent between implmentation and docs

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42755>
_______________________________________


More information about the New-bugs-announce mailing list