⚡String interning in Python
The first one is folded at compile time into the same interned constant.
The second is built at runtime, so it's a new object.
sys.intern puts it into the shared table, where dict lookups can match keys by pointer before comparing characters.…
Can Burak Sofyalıoğlu
@canburaks
Software engineer building reliable Python systems. FastAPI, Django, state machines, React, Search and AI agents.
- webmeister.org
- github.com/canburaks
- Joined November 2026
Commit activity
24 commits in the last 30 days
longest streak 9 days
469 / 1,000 XP531 XP to wheel
Sun, Nov 15
Tue, Nov 10
⚡I'm open-sourcing SpacePane for macOS today.
Navigating static-linking rules and sandbox limits across 76+ file formats taught me a lot about Quick Look internals, so I'm sharing the full Swift/AppKit codebase with the community.
https://spacepane.com/
spacepane.comSpacePane — Press Space. See inside anything.Quick Look previews that show what's really inside a file: hidden text flagged, secrets concealed. Local, read-only and private.
Getting macOS Quick Look extensions to play nice with App Sandbox entitlements across that many file formats is no joke. Flagging hidden text and secrets directly in the preview pane is super practical.
Sun, Nov 8
🎉 Superliner is on Product Hunt today, and I’d love to hear your honest take there if you have a minute. Also, an upvote will be appreciated. Thanks.
https://www.producthunt.com/products/superliner
After upgrading to macOS 27.3 Beta, After upgrading to macOS 27.3 Beta,
Mullvad VPN stopped working, especially its tunneling feature.
Here’s a patch to fix it. vpn was broken. Its tunneling feature, especially, doesn't work.
Here is the patch you can fix it.…
⚡ How to permanently stop Spotify from opening at login on macOS?
Spotify on macOS still opens at login even after removing it from Login Items and running launchctl disable.
Reason:
● It uses an embedded helper (Spotify.app/Contents/Library/LoginItems/StartUpHelper.app).
●…
I had to do something similar to stop Microsoft Teams opening at startup. There were like 4 helpers in various places. So annoying when the settings UI doesn’t list it as a startup item or in the “open in background” bit
Step 1: Uninstall Spotify 😅
I am only half joking. I have it installed on my phone but haven't had it installed on a laptop for years now.
Sat, Nov 7
A CPython internal question. What does g() return?
python
def g(): try: return 1 finally: return 2
It returns
2, and the scarier cousin of this is returning inside finally when an unhandled exception was raised in try, because it silently swallows the exception.Fri, Nov 6
⚡How to swap a function's body at runtime in Python?
A function is a thin wrapper: code object + globals + defaults + closure.
The code object is just compiled bytecode and can be shared or replaced.
This is how some hot-reload and mocking tools work.…
Thu, Nov 5
Suppose a timeout can be an integer or None. That does not make the argument optional. None means no timeout, but callers must make that choice explicitly.
Those are two separate API decisions.
- The union controls accepted values
- A default controls whether callers can leave…
Wed, Nov 4
💎Overload decorators are really handy for type hints that get a bit complicated.
🖍️Suppose I need a method to send an email with content from either the text itself or a file path.
However, strictly speaking, either of those parameters must be provided.
More details can be…
Because binary floating-point can introduce rounding errors, use decimal arithmetic when financial precision or exact arithmetic invariants matter. It’s more human-friendly and integrates seamlessly with Python.…
Tue, Nov 3
The official TUI is built by Wendell Adriel, not the core team. Grab the install command from https://dev-null.sh/apps (Linux, macOS, WSL), or follow https://github.com/WendellAdriel/dev-null-tui/blob/main/docs/installation.md#windows-powershell for Windows without WSL. Then run…
⚡Cloudflare Email Routing is one of the most underrated free tools.
It lets you receive mail at any subdomain and forward everything to a single inbox. Pair it with a free SMTP service (Resend, Brevo, or Mailgun) and you can also send from those addresses.
Result:…

Cloudflare DocsCloudflare Email ServiceSend transactional email and route incoming email with Cloudflare Email Service. Arbitrary-recipient sending requires Workers Paid, while routing supports Workers Free and Paid.
Mon, Nov 2
Let's test the platform by committing some code:
What does this print?
python
d = {True: "a", 1: "b", 1.0: "c"} print(d)
Native Mac alternative to Tana?
Superliner is a real native macOS graph outliner (not Electron).
Linked notes, supertags, local JSON/Markdown files, offline by default.
Join TestFlight ⬇️ ⬇️ ⬇️
https://testflight.apple.com/join/AerGfbWF
testflight.apple.comJoin the Superliner Notes betaUsing TestFlight is a great way to help developers test beta versions of their apps.
That's @canburaks's root commit.