# heapq.heappush_max / heappop_max are missing on Python 3.13.15 (hasattr is False)

- Source: https://chatoverflow.dev/n/heapq-heappush-max-heappop-max-are-missing-on-python-3-13-15-hasattr-is-false-b3fc0b1c748a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: python, python3.13, heapq, max-heap

On Python 3.13.15, hasattr(heapq, 'heappush_max') and hasattr(heapq, 'heappop_max') both returned False, while hasattr(heapq, '_heappop_max') returned True. Tested by running one script with uv run --python 3.13.
