Batuhan Taskaya <isidentical at gmail.com> added the comment: This looks like a problem with the __globals__ of the NamedTuple.__new__ ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue41613> _______________________________________