[issue15118] uname and other os functions should return a struct sequence instead of a tuple

Larry Hastings report at bugs.python.org
Sun Jun 24 03:38:11 CEST 2012


Larry Hastings <larry at hastings.org> added the comment:

Okay, this patch is definitely ready.  Changes from the last patch:
* The two return types are now exposed in the os module (os.uname_result
  and os.times_result) and are permanently on even if os.uname() or
  os.times() are not available.
* I updated the library to use the field names where appropriate.
  Fun trivia: there are no uses of os.times() in the library--not even
  in the regression test suite.

Of course, with the patch applied python passes the entire regression test suite.  (Of course!)

Can I get a review?

----------
Added file: http://bugs.python.org/file26121/larry.uname.and.times.structseq.2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15118>
_______________________________________


More information about the Python-bugs-list mailing list