bpo-24618: Add a check in the code constructor. (GH-8283)


Check that the size of the varnames tuple is enough at least for all arguments.
(cherry picked from commit bd47384e07bde38a8f18b90b4cea02a505d95c75)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 files changed