bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850) (GH-22107)

(cherry picked from commit c51db0ea40ddabaf5f771ea633b37fcf4c90a495)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
3 files changed