Pit buried in python2.7 source code or third-party package (continuously updated)

1. In the psutil package, in the aix environment, if the process command is too long, the program cannot obtain the complete process command. The test code is as follows

import psutil
proc=psutil.Process(11534558)
pidDictionary = proc.as_dict(attrs=['cmdline'])
print pidDictionary

  According to the source code, it is found that the pit may come from the underlying source code call of the C language. The source code is as follows:

def get_procfs_path():
    """Return updated psutil.PROCFS_PATH constant."""
    return sys.modules['psutil'].PROCFS_PATH

  Specifically, after reading the python source code analysis and then study, to be tested, python3 may also have this pit

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325946265&siteId=291194637
Recommended