Introduction to Python SQL Libraries
Connect to SQLite, MySQL, and PostgreSQL databases with Python SQL libraries, then run common queries from a single Python application.
Topic - Edition
Connect to SQLite, MySQL, and PostgreSQL databases with Python SQL libraries, then run common queries from a single Python application.
Real Python's weekly AI news for October 31–November 6, 2026, explained in plain language: A Rigged AI Add-On, an AI Bug Hunter, and Siri Opens Up.
Explore more regex tools in Python, including the re module's search, substitution, and utility functions, compiled regexes, and match objects.
AI Agents for Beginners, Part 2: The agent picks between three database tools, uses each result to choose its next call, and stops at an eight-turn circuit-breaker if it gets stuck. The post Build Your First Multi-Tool…
Clément Mercier using Claude has discovered that there is no restriction on running wizards without any model or group. Impact CVSS v3.0 Base Score: 8.1 Attack Vector: Network Attack Complexity: Low Privileges Required:…
Clément Mercier using Claude has discovered that it is possible to retrieve the ephemeral data from the wizard execution of another user. Impact CVSS v3.0 Base Score: 2.6 Attack Vector: Network Attack Complexity: High…
Three Python classes, an OpenRouter key, and gpt-4.1-mini give the agent a calculator, a stub web search, and conversation recall that survives restarts. The post Give Your Python AI Agent Persistent Memory with One…
Why should every Python developer know about the CPython ABI? This week on the show, we speak with Nathan Goldbaum about free-threaded Python and the changes to the Python Application Binary Interface.
Test your grasp of Python's LBYL and EAFP coding styles, and learn when to prevent errors and when to handle them in your code.
kept: 200 strings, 3.9 KB of text heap: +200.0 MB That's the output of a small test, and the two lines should not be able to coexist. An array holds 200 short IDs, about 4 KB of characters. Forcing a full garbage…
Same loop, same array length, same field. One line changes between these two runs: how many kinds of object are in the array. 4 shapes: 1.51 ns per read 5 shapes: 3.31 ns per read The loop is one property read: function…
keep 1,000,000 objects alive: 38 ms in GC keep 100,000 objects alive: 155 ms in GC Both runs allocate the same 100 million objects. The second keeps a tenth as many alive at a time, and it spends four times as long…
LayoutCount: 1000 That number came from a loop that updates 1,000 cards, one time, inside one JavaScript task. A browser that's rendering a single frame should need to lay out the page once. This loop made it do so a…
in allocation order: 1.04 ns per element shuffled: 7.51 ns per element Same million objects. Same loop. Same result, down to the last digit. The only difference is the order of the items in the array. Picture a Node…
The way you design your identities will drive your data models, your service scope, and your revocation policies; enterprise identity management is thus an architectural problem, not an afterthought. Based on our…
A configurator is not finished when the price is right. The customer configured a specific thing, and the quote needs to show exactly that thing. A spec list is not enough. People want the picture of the product they…
Two people open the same settings page. One changes the title; the other saves a description a minute later. Both receive a successful response, but the second save restores the old title. The second person did not…
Most advice about contact form spam ends with "block it". Add a CAPTCHA, reject anything that looks odd, move on. That works until a real buyer gets blocked. Or until the opposite happens: everything gets through, and…
You open dist/, add up the JS, and relax: “the bundle is 420 KB.” That number is how much the file takes on disk. It is not what the person who opens your app downloads. Most CDNs and browsers deliver JavaScript…
AI-powered applications are becoming increasingly common, but adding an AI feature to an existing product is not as simple as connecting an API and displaying its response. A successful implementation requires…
90 items available