[docs] resource.getpagesize documentation error
Culp, Steven (ARC-PX)[Lockheed Martin Space OPNS]
steven.culp at nasa.gov
Wed Mar 26 01:44:44 CET 2014
Hi,
On http://docs.python.org/2/library/resource.html#resource.getrusage, it says
"resource.getpagesize()¶<http://docs.python.org/2/library/resource.html#resource.getpagesize>
Returns the number of bytes in a system page. (This need not be the same as the hardware page size.) This function is useful for determining the number of bytes of memory a process is using. The third element of the tuple returned by getrusage()<http://docs.python.org/2/library/resource.html#resource.getrusage> describes memory usage in pages; multiplying by page size produces number of bytes."
The last sentence of the above appears to be incorrect - at least on my Windows PC running Cygwin with Python 2.6.8. The third element of the tuple returned by getrusage (according to tests using Python and C getrusage functions) appears to be kbytes.
Hope this helps.
Thanks,
-Steve Culp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20140326/1047bd38/attachment.html>
More information about the docs
mailing list