http://bugs.python.org/review/10812/diff/1871/3539
File Modules/posixmodule.c (right):
http://bugs.python.org/review/10812/diff/1871/3539#newcode355
Modules/posixmodule.c:355: PyParse_off_t(PyObject* arg, void* addr)
Why can't this be off_t *addr ?
Also the function should be declared static and not use the upper case PyParse
name as it is for internal use in this file.
I can imagine this could be useful elsewhere; but we should change it from
static to something that lives in a library as cpython API later when we find
another use for it.
http://bugs.python.org/review/10812/diff/1871/3539#newcode3455
Modules/posixmodule.c:3455: Like utime(), but if path is a symbolic link, it is
not dereferenced.");
Like utimes() I think you mean?
http://bugs.python.org/review/10812/diff/1871/3539#newcode4452
Modules/posixmodule.c:4452: Gets the host id, a unique 32-bit identifier for the
current machine.");
don't claim that it is unique. :) gethostid and sethostid are old deprecated C
library APIs, I hope nobody uses them. Do you have code that needs them?
Issue 10812: Add some posix functions
Created 2 years, 2 months ago by rosslagerwall
Modified 2 years, 2 months ago
Reviewers: gregory.p.smith
Base URL: None
Comments: 3