• Nick Coghlan's avatar
    Issue #19700: set __spec__ appropriately in runpy · 720c7e28
    Nick Coghlan yazdı
    Note that __spec__.name is not currently guaranteed to be in
    sys.modules when the code is running, only __name__ is.
    
    The "running module is in sys.modules" invariant will be
    expanded to also cover __spec__.name in a subsequent patch.
    720c7e28
script_helper.py 6.17 KB