What is the value of C _PyTime_t in Python
问题 When sleeping for a long time (like running time.sleep(3**3**3) ) in Python 3, the program returns an OverflowError with the error message "timestamp too large to convert to C _PyTime_t". What is the largest time length I can sleep? 回答1: The value should be 9223372036.854775, which is "is the maximum value for a 64-bit signed integer in computing". See this Wikipedia article. Mentioning of _PyTime_t in PEP 564: The CPython private "pytime" C API handling time now uses a new _PyTime_t type: