Overlooked Python Typing
Briefly

Overlooked Python Typing
"Expected December 2025 Django 6.0 supports Python 3.12, 3.13, and 3.14 Built-in support for the Content Security Policy (CSP) standard is now available, making it easier to protect web applications against content injection attacks such as cross-site scripting (XSS). The Django Template Language now supports template partials, making it easier to encapsulate and reuse small named fragments within a template file."
"Django now includes a built-in Tasks framework for running code outside the HTTP request-response cycle. This enables offloading work, such as sending emails or processing data, to background workers. Email handling in Django now uses Python's modern email API, introduced in Python 3.6. This API, centered around the <code>email.message.EmailMessage</code> class"
"Learned from this PR for the Talk Python book. Fix common misspellings in text files. It's designed primarily for checking misspelled words in source code (backslash escapes are skipped), but it can be used with other files as well. It does not check for word membership in a complete dictionary, but instead looks for a set of common misspellings. Therefore it should catch errors like "adn", but it will not catch "adnasdfasdf". It shouldn't generate false-positives when you use a niche term it doesn't know about."
Advent of Code starts today. Django 6 is expected December 2025 and will support Python 3.12 through 3.14. Built-in Content Security Policy (CSP) support aims to reduce content injection attacks such as XSS. The Django Template Language will support template partials for reusable named fragments. Django will include a built-in Tasks framework to run code outside the HTTP request-response cycle, enabling background work like sending emails or processing data. Email handling will use Python's modern email API centered on email.message.EmailMessage. Advanced Python typing topics mentioned include get_args, TypeGuard, and TypeIs. codespell checks common misspellings in source files without producing niche false positives. Live episodes stream Monday at 10am PT on pythonbytes.fm/live and an email digest is available for supporters.
Read at Pythonbytes
Unable to calculate read time
[
|
]