Message296312
| Author |
vstinner |
| Recipients |
jkloth, louielu, terry.reedy, vstinner |
| Date |
2017年06月19日.11:43:32 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1497872613.06.0.180345690226.issue30263@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年06月19日 11:43:33 | vstinner | set | recipients:
+ vstinner, terry.reedy, jkloth, louielu |
| 2017年06月19日 11:43:33 | vstinner | set | messageid: <1497872613.06.0.180345690226.issue30263@psf.upfronthosting.co.za> |
| 2017年06月19日 11:43:33 | vstinner | link | issue30263 messages |
| 2017年06月19日 11:43:32 | vstinner | create |
|