Summary As of October 2026, inspect the value before indexing or iterating; if it came from list.sort() or reverse(), keep the original list, or use sorted() for a new sorted list. CPython 3.12 source checked 2026-10-28; other None-producing paths need separate diagnosis.