Baptiste Mispelon

@bmispelon
369 Followers
232 Following
853 Posts

💩🔥💻

Django server boy

#Django #Python

Bloghttps://blog.bmispelon.rocks/
Pronouns🇬🇧 He/him 🇫🇷 Il 🇳🇴 Han
GitHubhttps://github.com/bmispelon/

📢 Django Day Copenhagen 2026 is happening 📢

When: Friday, October 2nd
What: All day event + evening party
Where: Union, Copenhagen

Information about tickets, CFP etc. will follow in the coming weeks. There's a chance it will be a continuation of previous events, BUT don't hesitate to send in your ideas, we're happy to try something new ✨

#Django #DjangoDayCPH #DjangoDay

Since @webology has gone mad with March, I'm hosting Shitposting Office hours tonight. Message me or @bmispelon for a link to the gist with the details.

https://time.is/0200PM_20_March_2026_in_CT?SPWG

SPWG

Exact time now, time zone, time difference, sunrise/sunset time and key facts for New York, United States.

SnoopJ (@[email protected])

This is your periodic reminder that `0xfor....real` is a syntactically-valid AND error-free #Python program

Hachyderm.io

@mahryekuh found the perfect event for you, right in your favorite city 🙊

https://fosstodon.org/@cheukting_ho/116126843772954263

Cheuk Ting Ho (@[email protected])

Are you living in #Amsterdam? Come to the #PyTV speaker meet and greet with #PyLadies! It's your chance of meeting some of the prominent people in #Python. Sign up here: https://www.meetup.com/pyladiesams/events/313322734/?eventOrigin=group_upcoming_events https://www.meetup.com/pyladiesams/events/313322734/?eventOrigin=group_upcoming_events

Fosstodon
@treyhunner Tagging you on this since it might qualify as a #Pythonoddity

Can someone explain this #Python import behavior?
I'm in a directory with 3 files:

a.py contains `A = 1; from b import *`
b.py contains `from a import *; A += 1`
c.py contains `from a import A; print(A)`

Can you guess and explain what happens when you run `python c.py`?

ImportError
21%
RecursionError
6.7%
Prints 1
34.3%
Prints 2
38.1%
Poll ended at .

https://maxhalford.github.io/blog/text-classification-zstd/

This is a cool blog post about using compression.zstd in Python as a surprisingly effective (and fast!) simple text classifier.

Text classification with Python 3.14's zstd module

Python 3.14 introduced the compression.zstd module. It is a standard library implementation of Facebook’s Zstandard (Zstd) compression algorithm. It was developed a decade ago by Yann Collet, who holds a blog devoted to compression algorithms. I am not a compression expert, but Zstd caught my eye because it supports incremental compression. You can feed it data to compress in chunks, and it will maintain an internal state. It’s particularly well suited for compressing small data. It’s perfect for the classify text via compression trick, which I described in a previous blog post 5 years ago.

Max Halford

RE: https://hachyderm.io/@itworldcup/115960578331633434

Less than half an hour left and Rust is leading by just 4 votes!!!

Vote #Python and boost!

#VotePythonForITWorldCup

I've just released part three of my Quirks of Django's template language blog series:

https://blog.lilyf.org/posts/django-template-quirks-3/

#django #DjangoTemplates

Quirks in Django's template language part 3

Django Rusty Templates Since September 2024, I (and some collaborators) have been building a reimplementation of Django’s templating language in Rust, called Django Rusty Templates. During this process, we have discovered several weird edge-cases and bugs, some of which I’ve talked about before (Part 1, Part 2). The {% now %} tag The {% now %} tag is provided by Django to display the current date or time. It uses a format specifier language designed for compatibility with PHP, which feels like an odd decision in retrospect, since most Python programmers are used to the strftime style formatting provided by the Python datetime module.

Lily's Blog

RE: https://hachyderm.io/@itworldcup/115926604229775228

PHP is currently winning 51% to 49% against #Python with only 6 votes needed to swing it!

But it'll be a tough 10 hours so vote and boost!

#VotePythonForITWorldCup