STINNER Victor added the comment: > Before implementing this as a PR, I would like guidance as to the best place > to integrate this: > 1. as os.getloadavg(), > 2. in _testcapi > 3. in winapi (although it is a conglomeration of WinAPIs) > 4. in regrtest (as Python).
That's tough question. Usuaully, the os module is a thin wrapper to native functions. os.getloadavg() calls C getloadavg(). It doesn't implement the logic to open /proc/loadavg and parses it. Can I see the code somewhere before giving an answer? :-) If you want to add a public function, you must open a new issue. In case of doubt, we might start with a first implementation in libregrtest? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30263> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com