New submission from Dong-hee Na <donghee...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42755> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com