Live Feed/Python/Fact Record
Python logo
Python
feature 96% Confidence Gate September 20, 2026

PEP 823: None-aware access operators

This PEP introduces two new operators to the Python language to facilitate null-safe attribute and item access. These operators allow developers to access attributes or items on objects only if the object is not None, returning None otherwise.

Verified State Diff

Comparison Mode:
- Previous State
Developers must explicitly check for None using 'if x is not None:' or ternary expressions to avoid AttributeError when accessing attributes or items.
+ Verified New State
Developers can use new None-aware operators to perform safe attribute and item access, returning None automatically if the target object is None.

Impact & Verification Analysis

WHO IS AFFECTED

Python software developers and library maintainers.

WHY IT MATTERS

It reduces code complexity and the frequency of runtime errors related to NoneType objects, aligning Python's syntax with modern programming language standards for null safety.

Full Fact Overview

PEP 823 addresses the common boilerplate code required for checking None values before accessing attributes or dictionary keys. By implementing None-aware access operators (often referred to as safe navigation or null-coalescing operators in other languages like Swift or C#), Python aims to reduce the verbosity of conditional checks and minimize AttributeError exceptions. This change represents a significant shift in Python's syntax to improve code readability and safety when handling potentially null references in complex data structures.

Multi-Source Evidence Chain (1)

PEP 823: None-aware access operatorsPython
TRACKED ENTITY
Explore all historical Python changes
View Python Hub ➔