Topics covered in this episode:
PEP 772 – Packaging governance processOfficial Django MongoDB Backend Now Available in Public PreviewDeveloper PhilosophyPython 3.13.2 releasedExtrasJokeWatch on YouTube
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest CoursePatreon SupportersMichael: @[email protected] / @mkennedy.codes (bsky)Brian: @[email protected] / @brianokken.bsky.socialShow: @[email protected] / @pythonbytes.fm (bsky)Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.
Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
Brian #1: PEP 772 – Packaging governance process
draft, created 21-Jan, by Barry Warsaw, Deb Nicholson, Pradyun Gedam“As Python packaging has matured, several interrelated problems with the current way of managing the technical development, decision making and processes have become apparent.”“This PEP proposes a Python Packaging Council with broad authority over packaging standards, tools, and implementations. Like the Python Steering Council, the Packaging Council seeks to exercise this authority as rarely as possible; instead, they use this power to establish standard processes.”PEP discussesPyPA, Packaging-WG, Interoperability Standards, Python Steering Council, and Expectations of an elected Packaging CouncilA specification withComposition: 5 peopleMandate, Responsibilities, Delegations, Process, Terms, etc.Michael #2: Official Django MongoDB Backend Now Available in Public Preview
Over the last few years, Django developers have increasingly used MongoDB, presenting an opportunity for an official MongoDB-built Python package to make integrating both technologies as painless as possible.FeaturesThe ability to use Django models with confidence. Developers can use Django models to represent MongoDB documents, with support for Django forms, validations, and authentication.Django admin support. The package allows users to fire up the Django admin page as they normally would, with full support for migrations and database schema history.Native connecting from settings.py. Just as with any other database provider, developers can customize the database engine in settings.py to get MongoDB up and running.MongoDB-specific querying optimizations. Field lookups have been replaced with aggregation calls (aggregation stages and aggregate operators), JOIN operations are represented through $lookup, and it’s possible to build indexes right from Python.Limited advanced functionality. While still in development, the package already has support for time series, projections, and XOR operations.Aggregation pipeline support. Raw querying allows aggregation pipeline operators. Since aggregation is a superset of what traditional MongoDB Query API methods provide, it gives developers more functionality.Brian #3: Developer Philosophy
by qntmIntended as “advice for junior developers about personal dev philosophy”, I think these are just great tips to keep in mind.The itemsAvoid, at all costs, arriving at a scenario where the ground-up rewrite starts to look attractiveThis is less about “don’t do rewrites”, but about noticing the warning signs ahead of time.Aim to be 90% done in 50% of the available timeGreat quote: “The first 90% of the job takes 90% of the time. The last 10% of the job takes the other 90% of the time.”Automate good practicesThink about pathological data“Nobody cares about the golden path. Edge cases are our entire job.”Brian’s note: But also think about the happy path. Documenting and testing what you think of as the happy path is a testing start and helps others understand your idea of how things are supposed to work.There’s usually a simpler way to write itWrite code to be testableIt is insufficient for code to be provably correct; it should be obviously, visibly, trivially correctBrian’s note: Even if it’s obviously, visibly, trivially correct, it will still break. So test it anyway.Michael #4: Python 3.13.2 released
Python 3.13’s second maintenance release. About 250 changes went into this updateAlso Python 3.12.9, Python 3.12’s ninth maintenance release already. Just 180 changes for 3.12, but it’s still worth upgrading.For us, it’s simply rebuilding our Docker base (i.e. —no-cache) with these lines:RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN --mount=type=cache,target=/root/.cache uv venv --python 3.13 /venv
Still thinking about pytest plugins a lot.The top pytest plugin listHas been updated for FebIs starting to include things without “pytest” in the name, like Hypothesis and Syrupy. Eventually I’ll have to add “looking at trove classifiers” as part of the search, but for now, let me know if you’re favorite is missing.Includes T&C podcast episode links if I’ve covered it on the show. There’s 2 so farThere's a new release of PyScript out. All the details are here: Highlight is new PyGame-CE support. Go play!PEP 2026 – Calendar versioning for Python rejected. :(PEP 759 – External Wheel Hosting withdrawnPride Versioning