[issue40154] embedded null byte when connecting to sqlite database using a bytes object

2020-04-17 Thread Fernando
Fernando added the comment: Hello SilentGhost, Okay, now I understand the difference and had my code working! Thank you very much for your answer and to all of you who help in making Python better. (Wish I had more knowledge of it to help) Have a nice day! -- _

[issue40154] embedded null byte when connecting to sqlite database using a bytes object

2020-04-08 Thread SilentGhost
SilentGhost added the comment: 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 >

[issue40154] embedded null byte when connecting to sqlite database using a bytes object

2020-04-08 Thread Fernando
Change by Fernando : -- components: +Extension Modules -IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue40154] embedded null byte when connecting to sqlite database using a bytes object

2020-04-08 Thread Fernando
Fernando added the comment: bump? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue40154] embedded null byte when connecting to sqlite database using a bytes object

2020-04-02 Thread Fernando
New submission from Fernando : Hello. I think that I found a bug in how sqlite3 module handle bytes. The connect function of sqlite3 accepts strings, FilePath objects and bytes. However, it's impossible for me to connect to bytes objects that are read from BufferedReaders. I always get: "Va