OK, I've checked in some changes to the posix module to add support for a few of the POSIX interfaces Andrew expressed interest in seeing (and some he said weren't such a good idea, or at least not necessary, but about which I decided I disagreed after all). For those of you who aren't on the checkins list (??), I've attached the message so you'll know what functions were added.
-Fred
-- Fred L. Drake, Jr. fdrake@acm.org Corporation for National Research Initiatives
OK, I've checked in some changes to the posix module to add support for a few of the POSIX interfaces Andrew expressed interest in seeing (and some he said weren't such a good idea, or at least not necessary, but about which I decided I disagreed after all).
I wish you'd made your disagreement public before checking it in... But it's not too late...
--Guido van Rossum (home page: http://www.python.org/~guido/)
Fred L. Drake, Jr. writes (in a CVS checkin):
Added support for abort(), ctermid(), tmpfile(), tempnam(), tmpnam(), and TMP_MAX.
For those of you following along, the tmpfile(), tempnam(), tmpnam() functions were ones I listed as probably not worth adding. On the other hand, David Beazley wrote:
I think that the POSIX module should strive to be as complete as possible--even if certain functions are closely related other functionality in the library (tmpfile for instance). I suspect
... and that's a good point, too. The POSIX functions may provide adaptability that a Python analog doesn't; for example, you could read /etc/passwd in pure Python, but that wouldn't handle NIS or shadow passwords. So I guess I'll vote for completeness over lack of overlap; leave tmpfile() & friends in.
... and that's a good point, too. The POSIX functions may provide adaptability that a Python analog doesn't; for example, you could read /etc/passwd in pure Python, but that wouldn't handle NIS or shadow passwords. So I guess I'll vote for completeness over lack of overlap; leave tmpfile() & friends in.
OK, I agree now.
--Guido van Rossum (home page: http://www.python.org/~guido/)