Message46485
Logged In: YES
user_id=21627
struct rusage is already defined in
Modules/resourcemodule.c. It would be good if there was only
a single definition of the type object.
To achieve this, resourcemodule.c should expose a C API (e.g.
PyObject *PyResource_FromResource(struct rusage*)
). This should be put into a CObject, which should be
published through the module; then posixmodule should import
resource when wait4 is called for the first time.
Alternative, wait4 could be added to resourcemodule.c entirely.
Yet another alternative, on top of this approach,
posixmodule and/or os.py could provide their own definition
of wait4 which delegates to resource.wait4 on first usage.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:38:58 | admin | link | issue1000267 messages |
2007-08-23 15:38:58 | admin | create | |
|