Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - Python
Calendar · NOV 2026
‹ Nov 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Favorites (0)

Community stream

Community

The Mind Builds an API

Iris, Violet, and the human-readable interfaces of System 777 For months I have been asking the wrong question about Violet. What is she? An alter? An anima? A tulpa-like companion? A dream guide? A daimon? A spiritual being who attached herself to…

kenneth-reitz

Typing feature to statically get all subclasses of class

I sometimes find myself with this problem: class Base: # Possibly an ABC ... class SubA(Base): ... class SubB(Base): ... For example with custom exceptions, base ast nodes and so on. Now I often want to use exhaustive pattern matching while…

discuss-python-ideas

Proposal: int.from_bytes and int.to_bytes, but for buffers

Right now you have to take a slice before passing any data to int.from_bytes if you want to parse int at a certain offset. Which is extra allocations, even if it is something as cheap as memoryview. The same goes for int.to_bytes, it allocates bytes…

discuss-python-ideas

Quoting Jeremy Morrell

My hypothesis is that there is a new opportunity for Extensible Software on the web. LLMs radically lower the cost of authoring extensions, and modern sandbox primitives lower the deployment cost and provide good security boundaries. We can build…

simon-willison

Conceptual integrity and counting lines of code

Last week I recorded an episode of the Talking Postgres podcast with Claire Giordano on the subject of "How AI is changing software development". We had a really great conversation. Here are a couple of my highlights from a lightly edited transcript…

simon-willison

Add programmatic support for rerunning the current program inside a venv

Python programs often need to be run inside a venv in order to allow the use of packages from pypi.org. But creating and entering a venv before running a script is a barrier, especially if a python program has been written for use by people who are…

discuss-python-ideas

`frozendict` and `MappingProxyType`s as object-level `__dict__` values

Hi everyone. This is another one of those “frozen/freezable object” thoughts. Most user-defined “immutable” objects are made via subclassing and overriding __setattr__ (or the more convenient @dataclasses.dataclass(frozen=True)). This works well…

discuss-python-ideas

Mojo🔥 is now open source

Mojo🔥 is now open source The Mojo programming language has been promising an open source release since May 2023. Last week they shipped their 1.0 and today they have followed through on that original promise, releasing the compiler and toolchain…

simon-willison

Add public functions to inspect dataclass parameters and methods

dataclasses were originally intended as boilerplate writers but due to their structure a number of tools special case them and in doing so currently rely on either internal attributes or external observations. I think we should acknowledge this and…

discuss-python-ideas

Markdown SVG upgrades

I started building my markdown-svg-renderer tool in May, but I've since added enough features to it that it's worth talking about here again. It's evolved into my ideal tool for sharing Markdown transcripts that include SVG documents. Given my…

simon-willison

Quoting Dario Amodei

I do agree that the public has a negative view of AI (and that this is a big problem), but I don’t think it is primarily caused by me or any other AI leader warning about AI’s risks. I think it is fundamentally a crisis of trust. I think that…

simon-willison

A two-namespace model for Python modules to distinguish public/internal

Paraphrasing the Zen of Python: Namespaces are one honking great idea – let’s add one more to every module! A module logically has an external API (the symbols users are intended to access) and an internal implementation (the symbols used to…

discuss-python-ideas

Add a list.swap_values method

I would like to propose adding a new built-in method to Python lists for swapping two specific values: list.swap_values(v1, v2, all_occurrences=True). Currently, swapping values within a list requires complex loops or long list comprehensions. I…

discuss-python-ideas

IDLE proposal: Optional background shading for indentation levels

I am currently learning Python using IDLE, and I would like to propose an optional visual aid that could make Python’s indentation structure easier to understand and debug. The feature would apply a subtle background shade to each indentation level.…

discuss-python-ideas

CORS Chat

Tool: CORS Chat I built this today (with GPT-5.6-Sol xhigh) to help test Qwen 3.8 27B running in LM Studio on both my M5 MacBook Pro and an NVIDIA DGX Spark. It provides a web UI for exercising an OpenAI-Responses-compatible chat endpoint. I've…

simon-willison

replyfast 0.4.0 is available

Yesterday I released replyfast version 0.4.0, which is a Python module to receive and send messages on Signal You can install it via python3 -m pip install replyfast or uv pip install replyfast I have a script to help you to register as a device,…

kushal-das

1312 items available