Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1407)

#15118: uname and other os functions should return a struct sequence instead of a tuple

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 months ago by larry
Modified:
11 months, 4 weeks ago
Reviewers:
storchaka, hs
CC:
Georg, terry.reedy, jcea, larry, eric.araujo, arfrever.fta_gmail.com, devnull_psf.upfronthosting.co.za, hynek, storchaka
Visibility:
Public.

Patch Set 1 #

Total comments: 2

Patch Set 2 #

Patch Set 3 #

Total comments: 20
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Doc/library/os.rst View 1 2 2 chunks +41 lines, -8 lines 8 comments Download
Lib/ctypes/__init__.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
Lib/ctypes/util.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
Lib/platform.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
Lib/test/test__locale.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
Lib/test/test_locale.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
Lib/test/test_sysconfig.py View 1 2 3 chunks +2 lines, -3 lines 6 comments Download
Lib/uuid.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
Misc/NEWS View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
Modules/posixmodule.c View 1 2 8 chunks +141 lines, -26 lines 6 comments Download

Messages

Total messages: 9
storchaka
http://bugs.python.org/review/15118/diff/5171/Modules/posixmodule.c File Modules/posixmodule.c (right): http://bugs.python.org/review/15118/diff/5171/Modules/posixmodule.c#newcode3603 Modules/posixmodule.c:3603: PyObject *o = PyUnicode_DecodeASCII(field, strlen(field), NULL); \ PyUnicode_FromString(field)
12 months ago #1
larry
http://bugs.python.org/review/15118/diff/5171/Modules/posixmodule.c File Modules/posixmodule.c (right): http://bugs.python.org/review/15118/diff/5171/Modules/posixmodule.c#newcode3603 Modules/posixmodule.c:3603: PyObject *o = PyUnicode_DecodeASCII(field, strlen(field), NULL); \ On 2012/06/21 ...
12 months ago #2
storchaka
On 2012/06/21 19:13:54, larry wrote: > http://bugs.python.org/review/15118/diff/5171/Modules/posixmodule.c > File Modules/posixmodule.c (right): > > http://bugs.python.org/review/15118/diff/5171/Modules/posixmodule.c#newcode3603 > ...
12 months ago #3
storchaka
http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py File Lib/test/test_sysconfig.py (right): http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py#newcode28 Lib/test/test_sysconfig.py:28: self._set_uname(('',)*5) What is the reason for this change? http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py#newcode70 ...
11 months, 4 weeks ago #4
larry
http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py File Lib/test/test_sysconfig.py (right): http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py#newcode28 Lib/test/test_sysconfig.py:28: self._set_uname(('',)*5) On 2012/06/24 08:52:07, storchaka wrote: > What is ...
11 months, 4 weeks ago #5
larry
Let me retract that last statement. http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py File Lib/test/test_sysconfig.py (right): http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py#newcode70 Lib/test/test_sysconfig.py:70: def _set_uname(self, uname): ...
11 months, 4 weeks ago #6
hynek
I've added some bikesheds, the more interesting ones were from Georg though. LGTM otherwise! http://bugs.python.org/review/15118/diff/5217/Doc/library/os.rst ...
11 months, 4 weeks ago #7
larry
Comments inline, sirrah. http://bugs.python.org/review/15118/diff/5217/Doc/library/os.rst File Doc/library/os.rst (right): http://bugs.python.org/review/15118/diff/5217/Doc/library/os.rst#newcode578 Doc/library/os.rst:578: For backwards compatibility, this object is ...
11 months, 4 weeks ago #8
storchaka
11 months, 4 weeks ago #9
http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py
File Lib/test/test_sysconfig.py (right):

http://bugs.python.org/review/15118/diff/5217/Lib/test/test_sysconfig.py#newc...
Lib/test/test_sysconfig.py:70: def _set_uname(self, uname):
On 2012/06/24 09:20:56, larry wrote:
> Wait, not done.  The function is used in four places.  Anti-done.

Sorry, I didn't saw that it had existed prior to your changes.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7