Python Monthly News

Python Gets a ?? Operator and Other Python News for December 2026

Welcome to the final Python news roundup of 2026! If you’ve ever wished Python had a cleaner way to fall back on a default when a value is None, then this month brings good news: on November 24, the Steering Council accepted the ?? None-coalescing operator for Python 3.16. Its companion, the ??= assignment form, didn’t make the cut.

Not every change was an addition, though. CPython’s experimental JIT compiler needed an accepted PEP to stay in the codebase, and in mid-October, its authors withdrew that PEP after detailed feedback from the council. As a result, the JIT code is expected to leave the main branch during the 3.16 cycle.

You’ll also find out what new tricks regular expressions picked up in Python 3.16.0a2, and why the CPython team now caps how many pull requests a newcomer can keep open at once.

November also brought sad news for the community. Guido van Rossum shared a moving tribute to Tim Peters, the author of the Zen of Python and the inventor of Timsort, who died in July.

Finally, Anthropic, Google, and OpenAI each shipped a new flagship model within about a week of one another, and two hijacked releases of Microsoft’s Agent Framework on PyPI stole credentials from the machines they were installed on.

There’s a lot to catch up on, so grab a coffee and dig into this month’s Python news!

Python’s New ?? Operator

Last month’s roundup covered PEPs 823 and 824, which propose four new operators for working with values that might be None: the ?. and ?[ ] access operators and the ?? and ??= coalescing operators.

On November 1, author Marc Mueller submitted both PEPs to the Steering Council, and on November 24, the council accepted PEP 824 on one condition: the ??= assignment operator had to go.

That leaves the ?? operator, which is set to arrive in Python 3.16. It evaluates its left operand and returns it unless it’s None. If it is None, then Python evaluates and returns the right operand instead. If you’ve ever used or to fill in a default, then you’ve probably been bitten by the difference:

Language: Python
timeout = 0

timeout or 30  # 30, because 0 is falsy
timeout ?? 30  # 0, because 0 isn't None

The same goes for empty strings, empty lists, and False, which are all perfectly valid values that or happily throws away. You can also chain the operator, and Python stops at the first value that isn’t None:

Language: Python
timeout = user_timeout ?? config.get("timeout") ?? 30

The right-hand side is evaluated lazily, which also makes ?? a better fit than dict.get() with a default. For example, d.get(key) ?? make_default() only calls make_default() when it actually needs a fallback.

One gotcha: ?? binds more loosely than or and and, so a ?? b or c means a ?? (b or c). The PEP recommends adding parentheses whenever you mix them.

As for the assignment form, the council said that ?? stands on its own as an explicit way to express a fallback for None, but it wasn’t convinced that ??= makes code easier to read. It also pointed out that Python has no or= either.

Not everyone was happy with that. Guido van Rossum, who sponsored the PEP, replied that he was disappointed, since most of his own use cases need the ??= operator, and that you’ll now have to write x = x ?? default in many places.

He also asked whether a new PEP adding or=, and=, and ??= together would stand a better chance. A council member replied that, speaking personally, those operators could be discussed in a separate PEP, so this story may not be over.

PEP 823, which covers the ?. and ?[ ] access operators, is still waiting for a decision. Either way, it’s a remarkable turnaround for an idea that started with PEP 505 back in 2015 and was deferred for years. You can’t try ?? yet, though, since Python 3.16.0a2 shipped two weeks before the decision.

The JIT Is Set to Leave the Main Branch

If you’ve followed this saga in earlier roundups, then you know how it started. In June, the Steering Council put the JIT on notice: the experiment could stay in the main branch only if a standards-track PEP won approval within about six months. The JIT team answered in July with PEP 836, a two-and-a-half-year plan to turn the JIT into a supported feature.

That plan is now off the table. On September 21, the council posted detailed feedback on the PEP, and on October 19, Savannah Ostrowski announced that she and her co-authors, Brandt Bucher and Ken Jin, were withdrawing it. She pointed to the high bar that the council had set and to the authors’ limited time.

The council’s concerns went beyond raw speed. It found the PEP overly optimistic about how little users would notice when the JIT was on, and it called security an underserved area.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Article

Already a member? Sign-In

Locked learning resources

The full article is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Article

Already a member? Sign-In

About Leodanis Pozo Ramos

Leodanis is a self-taught Python developer, educator, and technical writer with over 10 years of experience.

» More about Leodanis

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

What Do You Think?

What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment below and let us know.

Commenting Tips: The most useful comments are those written with the goal of learning from or helping out other students. Get tips for asking good questions and get answers to common questions in our support portal.


Looking for a real-time conversation? Visit the Real Python Community Chat or join the next “Office Hours” Live Q&A Session. Happy Pythoning!

Become a Member to join the conversation.

Keep Learning

Related Topics: community news