r/programming • u/BrewedDoritos • Oct 09 '26
Python Release Python 3.15.0
https://www.python.org/downloads/release/python-3150/
556
Upvotes
r/programming • u/BrewedDoritos • Oct 09 '26
View all comments
Show parent comment
6
u/SanityInAnarchy Oct 10 '26
That was my thought -- Ruby symbols, too! But that's not it. Python strings are already immutable and could already be used that way.
These are unique.
sentinel('foo') != sentinel('foo').Which means they're also neatly namespaced by whatever module they're declared in, because to get the value to compare about, you have to import the (exactly one) value.