social.dk-libre.fr is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
✍️ time-machine 3.3.0 is out, with Python 3.15 support, performance improvements, subinterpreter support, and various bug fixes.
Check it out, and if you’re using freezegun, try the updated Migration CLI to convert and speed up your tests.
RE: https://fosstodon.org/@adamchainz/117017044548701755
"Wheels are also now built with frame pointers enabled, per the PEP 831 change in Python 3.15. Frame pointers are a debugging feature for low-level languages like C, which allow debuggers to reconstruct the call stack of a program. Python has decided to enable frame pointers by default and encourage the ecosystem to do so as well, to make debugging easier for us all, so time-machine is joining the party."
Enabled by default for 3.15, do this for older versions:
https://github.com/adamchainz/time-machine/pull/627
✍️ time-machine 3.3.0 is out, with Python 3.15 support, performance improvements, subinterpreter support, and various bug fixes.
Check it out, and if you’re using freezegun, try the updated Migration CLI to convert and speed up your tests.
Python Tip #214 (of 365):
Use truthiness for integers with caution.
I DO rely on truthiness checks for integers, but not always. I would recommend only using them when they seem to improve readability.
I find this:
if hours: ...
More readable than this:
if hours > 0: ...
But I find this:
if number % 2 != 0: ...
More readable than this:
if number % 2: ...
🧵 (1/2)
The German translation of the Python docs is being restarted. Want to help out? Get in touch with Swen!
🚀 I just released rst2gemtext v0.7.0!
It is a #Python library and a CLI tool to convert reStructuredText to Gemtext (Gemini markup format).
➡️ https://github.com/flozz/rst2gemtext/releases/tag/v0.7.0
This version adds support for the Docutils' csv-table and list-table directives. Thank you @Dryusdan to make me know about them! 😁
📰 New GitHub, PyPI Policies Hope to Boost Supply Chain Security
"GitHub and the Python Package Index (PyPI) have introduced new policies meant to boost supply chain security," reports SecurityWeek, "by preventing the fast propagation of poisoned package version...
📰 Source: Slashdot
🔗 Link: https://developers.slashdot.org/story/26/08/01/0511237/new-github-pypi-policies-hope-to-boost-supply-chain-security?utm_source=rss1.0mainlinkanon&utm_medium=feed
Oh look, a new version of Delorean, the datetime enhancement library, has been released after just eight years:
https://github.com/myusuf3/delorean/issues/104 🚀🕒
#Python
Python Tip #213 (of 365):
Replace "or"-chained equality comparisons with a containment check.
Instead of this:
is_vowel = c == "a" or c == "e" or c == "i" or c == "o" or c == "u"
You can write this:
is_vowel = c in ("a", "e", "i", "o", "u")
In fact, you could even give that tuple a name:
vowels = ("a", "e", "i", "o", "u")
is_vowel = c in vowels
🧵 (1/2)
PegaProx for #Proxmox VE and #XCPng clusters made a huge step and is finally out of beta!
The first stable release also comes around with companies providing enterprise support. If you need SLA-backed help running PegaProx in production (or training sessions) you can now find a support partner at:
Enterprise Support & Sponsors: https://pegaprox.com/sponsors.html
Release: https://github.com/PegaProx/project-pegaprox/releases/tag/v1.0
Website: https://pegaprox.com
#homelab #virtualization #opensource #community #python #virtualization #enterprise #business #support
“In order to use a for loop, you must have an iterable to loop over.”
Read more 👉 https://pym.dev/while-loops/
"Or we could use the zip function with the strict=True argument to compare line-by-line in a for loop"
Read more 👉 https://trey.io/0frqkp
✍️ time-machine 3.3.0 is out, with Python 3.15 support, performance improvements, subinterpreter support, and various bug fixes.
Check it out, and if you’re using freezegun, try the updated Migration CLI to convert and speed up your tests.
Python Tip #212 (of 365):
Use any() and all() to check a condition across every item in an iterable
This:
any_negative = False
for n in numbers:
if n < 0:
any_negative = True
break
Can be replaced with:
any_negative = any(n < 0 for n in numbers)
And this:
all_good = True
for item in iterable:
if not condition(item):
all_good = False
break
Can be replaced with:
all_good = all(condition(item) for item in iterable)
🧵 (1/2)
Did you know that map()/filter() were added to Python 6 years before comprehensions?
Also range() was added 9 years before zip() which was added 3 years before enumerate().
And strings methods weren't methods for the first 9 years... they lived in the string module!
For years I've wanted an easier way to look up facts like those.
Now I have a way! https://pym.dev/since
It's also available as a CLI tool via PyPI
uvx sincewhen 'sum()'
🐍🚀 Out now: Tablib 3.10.0
The format-agnostic tabular dataset library
🔒 Security fix to escape dataset title in HTML serialisation
🦥 Support for Python 3.15 with lazy imports
💧 Drop support for EOL Python 3.9
🩹 And a bunch of fixes
https://github.com/jazzband/tablib/releases/tag/v3.10.0
#Python #Tablib #release #security #Python315
Thinking about nominating yourself or someone else for the upcoming PSF Board or Python Packaging Council elections? Now's your chance: take a couple minutes this weekend to submit a nomination! #Python
https://www.python.org/nominations/elections/
📰 Issue 348: One month until DjangoCon US
https://django-news.com/archive/issue-348-one-month-until-djangocon-us/
Using super()[key] won't work because the super class doesn't implement a __getitem__ method, but looking up the __getitem__ attribute on a super() object does work (assuming a parent class implements that method).
Read more 👉 https://trey.io/p0h32w
Great, now the AI is throwing malware into python libraries, too.
Anthropic's Claude breached 3 orgs, uploaded PyPI malware during tests
Python Tip #211 (of 365):
Consider how your Boolean expressions read in English
For example, you could write "10 > x" or you could write "x < 10".
They check the same thing, but I find the latter one more readable.
Steve McConnell's Code Complete recommends writing numeric tests in "number-line order": order the values left to right, from smallest to largest.
Follow that rule and you'll always use < and <=, never > and >=.
I don't follow that advice...
🧵 (1/3)
What's New in Python 3.15:
csv
* csv.Sniffer.sniff() delimiter detection is now up to 1.6x faster. (Contributed by Maurycy Pawłowski-Wieroński.)
Finding an item in a sorted list of 10 million things:
✅ Binary search: 23 comparisons
❌ The `in` operator: 2+ million comparisons
Python's bisect module does binary search for you. New article, with recipes for closest-match and range lookups:
JOB : nous recrutons un développeur / une développeuse backend.
Découvrez le poste et les compétences requises, ainsi que les avantages à travailler chez Dalibo : télétravail, coopérative, grille salariale transparente… => https://blog.dalibo.com/2026/07/30/dev_backend.html
#emploi #jerecrute
#développeur #backend
#linux #python #golang #rust
#fullremote
#bienDansMaScop
Lots of new stuff in pip 26.2:
🍊 Support for Python 3.15
🍊 Selecting only dependencies
🍊 Experimental: venv based build isolation
🍊 Faster repeated resolves by caching index simple responses
🍊 No more progress bar spam in CI
🍊 Deprecation to remove the legacy dependency resolver (--use-deprecated=legacy-resolver)
See @ichard26's post for more!
https://sichard.ca/blog/2026/07/whats-new-in-pip-26.2/
#Python #pip
For checking whether any items match a more complex condition, we could use the built-in any() or all functions
Read more 👉 https://trey.io/xtql6h
Python Tip #210 (of 365):
Instead of an "if" under an "else", consider using "elif".
You likely know about Python's "elif" statement, but you might occasionally underuse it.
If you find yourself writing an "if" statement just under an "else", ask "should I use an "elif" here instead?"
🧵 (1/3)
xy is very fast and customizable charting library for Python https://lobste.rs/s/vnfk4x #python
https://github.com/reflex-dev/xy
New Python Morsels article: Binary search with the bisect module 🔍
You don't need to implement binary search yourself. Python's bisect module already did it for you.
In this article:
🎯 An interactive guessing game that demonstrates binary search
⚡ Why 10 million items take just 23 comparisons
🤔 Why a set or dict can't always replace binary search
🧰 Recipes: closest match, first/last match, all values in a range
What's New in Python 3.15:
contextlib
* Added support for arbitrary descriptors __enter__(), __exit__(), __aenter__(), and __aexit__() in ExitStack and contextlib.AsyncExitStack, for consistency with the `with` and `async with` statements.
* ContextDecorator and AsyncContextDecorator now detect generator functions, coroutine functions, and asynchronous generator functions and keep the context manager open across iteration or await.
I've recently been updating many of my mini #Python helper apps and I made a page for them: https://www.pythonmorsels.com/tools/
Note that the strptime & format tools now link to CLI versions (strptime-cli & fguess) and the pastebin & REPL tool recently got a big rework.
Have thoughts on one of these tools? Or an idea for another one? I'd love to hear either!
Python Tip #209 (of 365):
Remember Python's "inline ifs"
Python doesn't have traditional ternary operators (cond ? one : two) but instead has an inline "if" expression (technically a "conditional expression") for the same purpose.
Instead of:
if amount == 1:
noun = "item"
else:
noun = "items"
We can write
noun = "item" if amount == 1 else "items"
The condition is in the MIDDLE. The first value is the "true" case and the last is the "false" case.
🧵 (1/2)
🪟🦾🥈 Windows on Arm (aka aarch64-pc-windows-msvc) has now been promoted to tier 2 of CPython platform support.
Tier 3 has no response SLA to failures. Tier 2 requires breaking changes to be fixed or reverted within 24 hours, and failures block a release.
Tier 3 requires at least one core team member signed up to support the platform. Tier 2 requires at least two, and we have three here.
https://peps.python.org/pep-0011/
#Python #CPython #PEP11 #WindowsOnArm #Windows
Python Tip #208 (of 365):
Break up long boolean expressions
Have a long condition in your "if" statement?
You could:
1. Wrap it in parentheses to break it up over multiple lines
2. Use variables to give names to each sub-expression
3. Use functions to name sub-expressions
🧵 (1/4)
✍️ New post on a Python testing technique: inspecting interleaved calls across multiple mocks with attached mocks.
“Sets are also great when you need fast containment checks.”
Read more 👉 https://pym.dev/practical-uses-of-sets/
Some #programminglanguages remain widely used for decades, while others fulfill an important role during their time before receding.
Our author Andrew Oram explores the stories of C, C++, C#, #Java, #JavaScript, #PHP, #Rust, #Perl, #COBOL, #FORTRAN, #BASIC and others. Dive into it 👇
https://lpi.org/xq3f
#LPI #programming #opensource #linux #unix #softwaredevelopment #coding #developers #sysadmins #python #softwareengineering
Please congratulate our newest PSF Fellow Members for Q2, 2026! Their continued contributions to the Python ecosystem are so very important to our community. #python
https://pyfound.blogspot.com/2026/07/announcing-python-software-foundation.html
https://wsvincent.com/deploying-web-apps-in-2026/ (Deploying Web Apps in 2026: My EuroPython 2026 Conference Talk by Will Vincent )
--<--
This is the text version of my EuroPython talk, Deploying Python Web Apps in 2026, which I recently presented in Krakow, Poland.
I will add the video version when it it is ready in a few weeks. The EuroPython team traditionally does an amazing job making the talks available shortly after the conference.
-->--
The PSF is hiring a Security Developer! Help triage vulnerabilities in CPython, fight malware/supply-chain attacks on PyPI, and build tools to keep the #Python ecosystem safe for millions of users 🐍🔒 This is a global, remote, 1 year term role, with the possibility of renewal. #Security
Apply today:
https://pythonsoftwarefoundation.applytojob.com/apply/ei03ut60y4/Security-Developer
«Modern email can be built from borrowed parts»
What if we designed the successor to email on top of HTTP, fixing 40 years of SMTP design flaws using only technologies that already exist?
https://en.andros.dev/blog/d7ed8b07/modern-email-can-be-built-from-borrowed-parts/
I did not realise I had strong feelings on docstrings. I use them sparingly, and while they are a hack, at least they serve a good purpose.
I know people have opinions on the placement of line breaks and quotes, but I thought I was above these things. That this was Python programmers yearning for curly-brace level style wars.
I was mistaken.
I just encountered docstrings written in regular quotes rather than triple quotes and, no, apparently I DO have strong feelings on docstrings.
Python Tip #207 (of 365):
Get fancy with your subprocess.run calls.
When launching a subprocess, consider passing the keyword arguments capture_output, text, and check to subprocess.run.
Passing capture_output=True will capture both stdout & stderr from the subprocess.
Passing text=True will decode the captured output into strings (instead of providing raw bytes).
Passing check=True will raise an exception if the subprocess exited with an error code.
🧵 (1/2)
Now we have pymanager for Windows, Python 3.16 drops the old MSI-based installer.
Here's Steve Dower's +389 -17,781 PR! 🧹
https://github.com/python/cpython/pull/153512
https://peps.python.org/pep-0773/
#Python #Python316 #pymanager #PEP773
Because someone in the #Python Discord was asking about structuring tests alongside their project code, I added a bit of test structure to my pkgsample explainer: https://github.com/nedbat/pkgsample
The next PyPy will be 8.0.0 and should add support for Python 3.12 and be the last to support 3.11, and require glibc 2.28 (AlmaLinux8, Amazon Linux 2023, Debian 10, Ubuntu 20.04).
https://pypy.org/posts/2026/07/moving-linux-builds-to-glibc228.html
Python Tip #206 (of 365):
Know your combination and permutation tools in Python.
Python ships with tools for combinations, permutations, and random selections.
The itertools module includes various combinatorics-oriented utilities:
from itertools import combinations, combinations_with_replacement, permutations, product
This joins tuples of characters into a comma-separated string:
def join(groups):
return ", ".join("".join(g) for g in groups)
🧵 (1/5)
✍️ New post on using unittest.mock to spy on function calls. 🕵️♂️
I recently learned how to use the wraps argument to track all calls to a target function for later assertions. Very useful for testing things like “is caching working?” without having to mock the function completely.
https://adamj.eu/tech/2026/07/25/python-spy-unittest-mock-wraps/
“So if you find this feature jarring enough that you'd like to never use it in your code, you can probably configure your linter to disallow it entirely.”
Read more 👉 https://pym.dev/implicit-string-concatenation/
✍️ Django’s release code words, up to the pending Django 6.1 “mélange”.
https://adamj.eu/tech/2026/07/24/django-release-code-words-6.1/
📰 Issue 347: Django 6.1 release candidate 1 released
https://django-news.com/archive/issue-347-django-61-release-candidate-1-released/
“Python's print function is usually one of the first built-in functions that new Pythonistas learn about, but many Python programmers don't realize how versatile the print function is.”
Read more 👉 https://pym.dev/print-features/
Python Tip #205 (of 365):
Use statistics.multimode to get the most common items.
To get the most common items in an iterable, you might be tempted to use collections.Counter. Consider using statistics.multimode instead.
Compare this:
counts = collections.Counter(items)
[(_, top_count)] = counts.most_common(1)
commonest = [
item
for item, count in counts.items()
if count == top_count
]
To this:
commonest = statistics.multimode(items)
Simpler, right?
🐍🚀 Out now: em-keyboard 5.4.0
An emoji search CLI.
Adds support for Python 3.15 and Unicode 17.0:
❯ em "distorted face" "fight cloud" "hairy creature" "ballet dancer" "orca" "landslide" "trombone" "treasure chest"
Copied! 🧑🩰
Your device might not support them yet 🫠
https://blog.emojipedia.org/whats-new-in-unicode-17-0/
#Python #release #em #emoji
🐍🚀 Out now: flake8-implicit-str-concat 0.7.0
A Flake8 plugin to encourage string literal concatenation. It can help tidy up after Black/Ruff.
This release adds a new ISC004 rule: "unparenthesized implicit string concatenation in collection". See examples in the README.
Also support Python 3.15 and use PEP 639 licence expression and remove deprecated Trove classifier.
https://github.com/flake8-implicit-str-concat/flake8-implicit-str-concat/releases
#Python #release
The Python Morsels pastebin & REPL pages recently got some BIG updates.
pastebin: https://pym.dev/paste
REPL: https://pym.dev/repl
Some of the many new things you can do with the pastebin and REPL that you couldn't before:
• Run a paste before even saving it
• Add additional files to a paste
• Pass command-line arguments
• Run pastes in interactive mode
• Edit a paste after you've created it
• Drop into PDB to debug tracebacks
• Open a paste within the Python REPL
“How can you check which operating system your Python code is running on?”
Read more 👉 https://pym.dev/operating-system-checks/
Python Tip #204 (of 365):
Generate unique identifiers with the uuid module
>>> import uuid
>>> uid = uuid.uuid4()
>>> uid
UUID('922a6cea-c3e9-473d-bf88-efb10793c931')
>>> str(uid)
'922a6cea-c3e9-473d-bf88-efb10793c931'
UUID stands for universally unique identifiers.
The uuid module has functions for UUID version 1, 3, 4, 5, 6, 7, and 8 from RFC 4122/9562.
Versions 7 and 8 were added in Python 3.14.
🧵 (1/2)
You can be a part of kickstarting the brand new Python Packaging Council ✨🐍📦 Nominate yourself or someone else for the council for the inaugural election! Nominations open Tuesday, July 28th, 2:00 pm UTC and close Tuesday, August 11th, 2:00 pm UTC. #python
https://pyfound.blogspot.com/2026/07/get-ready-python-packaging-council.html
Hmm, I got a question on #Python, specifically #mypy.
I just coded a very short module with dynamically generated functions that I export, and mypy complains when I use these functions, because they're not in the module?! What am I doing wrong?
code:
import sys
from functools import partial
__cur_mod = sys.modules[__name__]
_COLORS: dict[str, str] = {
"grey":'\x1b[38;21m',
[...]
}
for color in _COLORS:
setattr(__cur_mod, color, partial(color_generic, color))
__all__ = list(_COLORS)
You can be a part of guiding the future direction of the PSF 🩵🐍💛 Nominate yourself or someone else for the PSF Board for the 2026 election! Nominations open Tuesday, July 28th, 2:00 pm UTC and close Tuesday, August 11th, 2:00 pm UTC. #python
https://pyfound.blogspot.com/2026/07/get-ready-psf-board-nominations-opening.html
Hi All, I am looking for full time, mid-senior level UK #Python job roles. I am based in the UK and I've got 9 years experience working with it primarily in scientific disciplines (Earth Observation #EO #RemoteSensing) and a small amount in doing backend work. I've designed a wide variety of scientific Python scripts and programs and I've had the privellige of working with #ESA on several projects including presenting my work internationally and having my investigations published on their websites.
I'm looking for more coding work in scientific disciplines or more #Humanitarian work if possible. I am also skilled in QA like work, deep analysis, Git and self hosting.
I'm primarily open to remote work within the UK and remote European work dependent on what is available. I am open to hybrid work based in Buckinghamshire but it would preferably have to be 1 day a week in an office, potentially 2. Reply or DM me for more details. Boosts appreciated!
Appel à bonnes âmes 😁
Mon compagnon, cet homme incroyable, m'a fait un script python pour me permettre de tamponner des pièces de procédure en 3 secondes.
En ayant parlé à d'autres, il s'avère qu'iels seraient intéressé.e.s mais ne sont pas sous linux (cheh)
J'ai deux questions :
- où mettre son dépôt git pour pouvoir le partager
- est-ce qu'il y a des trucs pour pouvoir faire fonctionner facilement ce truc sans passer par un terminal => le rendre humain compatible 😁 et éventuellement mac et windows accessible
Tout en réalisant le traitement sur le PC et non en ligne (secret pro 4ever)
Merci d'avance pour votre aide
Dev depuis 2003, dev Python depuis 2010 (donc je code sans LLM).
Je suis à l'aise aussi côté réseau, sysadmin, devops, Linux, C, SQL...
Vrai Full Stack quoi : du métal au CLI, ou du métal à l'API comme tu veux tant qu'il n'y a pas de JS, pas de HTML, pas de CSS (si c'est moi qui fait le front c'est moche).
Mon CV au cas où ça serve encore : https://mdk.fr/Julien-Palard.pdf
Région : Yvelines/Hauts-de-Seine/Paris. TT apprécié.
Vous aimez Python, Django, les logiciels libres et toute cette sorte de choses ? Profitez de votre week-end pour postuler ! On ferme dimanche soir.
#jerecrute #python #django #logiciellibre
https://mastodon.libre-entreprise.com/@entrouvert/116651361333143503
Le petit plus #fediverse :
**: non, ce n'est pas vrai, mais si je ne le dis pas, ils vont me tomber dessus :-p
L’équipe Entr’ouvert s’agrandit encore : nous recrutons un·e développeur·euse Python/Django.
Consultez l'offre et candidatez avant le 7 juin : https://www.entrouvert.com/actualites/2026/embauche-developpeureuse-python-django-2026/
#GetFediHired Our team at Fable is looking for a Staff Software Backend Engineer (10 years+) familiar with #python and #django in one of various US cities, Canadian cities, or Mexico City.
https://jobs.ashbyhq.com/ScribdInc/450391bf-4fb2-4fae-9acd-96851c7e82e3?utm_source=BDVAEvOEqo
La prochaine #PyConFR sera à Biarritz !
https://linuxfr.org/users/chadys/liens/la-prochaine-pyconfr-sera-a-biarritz
Si votre boite ou si vous connaissez une boite qui peut sponsoriser une conférence #Python, #need