This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author SilentGhost
Recipients SilentGhost, ferferga
Date 2020-04-08.17:43:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586367808.13.0.146544727183.issue40154@roundup.psfhosted.org>
In-reply-to
Content
Hi Fernando,

the first parameter of the connect function is described in documentation as follows: 

> database is a path-like object giving the pathname (absolute or relative to the current working directory) of the database file to be opened. You can use ":memory:" to open a database connection to a database that resides in RAM instead of on disk.

So, while it can be a bytes object, it's still would be a bytes object representing a file-path. It's not bytes object representing a file content of the database.

Hope that helps.
History
Date User Action Args
2020-04-08 17:43:28SilentGhostsetrecipients: + SilentGhost, ferferga
2020-04-08 17:43:28SilentGhostsetmessageid: <1586367808.13.0.146544727183.issue40154@roundup.psfhosted.org>
2020-04-08 17:43:28SilentGhostlinkissue40154 messages
2020-04-08 17:43:27SilentGhostcreate