« * K @hugovk.dev

Hugo van Kemenade @hugovk.dev

2026-11-24 09:45 UTC

?? is the none-coalescing operator. What is ?? ? From the PEP: `a ?? b` is equivalent to `a if a is not None else b`, except that `a` is only evaluated once. Similarly, `a or b` is equivalent to `a if a else b`, with `a` evaluated only once. peps.python.org/pep-0824/#ho... #Python #PEP #PEP824

Link: PEP 824 – None-coalescing operators | peps.python.org (peps.python.org/pep-0824/#how-to-teach-this)

A reply in a thread.

0 likes, 0 reposts, 1 replies

3 Next post4 More from @hugovk.devBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup