Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0a40ffb1
Commit
0a40ffb1
authored
Feb 13, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2063: correct order of utime and stime in os.times()
result on Windows.
parent
5f8bd372
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
Doc/library/os.rst
Doc/library/os.rst
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
Modules/posixmodule.c
Modules/posixmodule.c
+2
-2
No files found.
Doc/library/os.rst
View file @
0a40ffb1
...
@@ -1846,7 +1846,7 @@ written in Python, such as a mail server's external command delivery program.
...
@@ -1846,7 +1846,7 @@ written in Python, such as a mail server's external command delivery program.
user time, children's system time, and elapsed real time since a fixed point in
user time, children's system time, and elapsed real time since a fixed point in
the past, in that order. See the Unix manual page :manpage:`times(2)` or the
the past, in that order. See the Unix manual page :manpage:`times(2)` or the
corresponding Windows Platform API documentation. Availability: Macintosh, Unix,
corresponding Windows Platform API documentation. Availability: Macintosh, Unix,
Windows.
Windows.
On Windows, only the first two items are filled, the others are zero.
.. function:: wait()
.. function:: wait()
...
...
Misc/NEWS
View file @
0a40ffb1
...
@@ -1132,6 +1132,8 @@ Library
...
@@ -1132,6 +1132,8 @@ Library
Extension Modules
Extension Modules
-----------------
-----------------
- #2063: correct order of utime and stime in os.times() result on Windows.
- Patch #1736: Fix file name handling of _msi.FCICreate.
- Patch #1736: Fix file name handling of _msi.FCICreate.
- Updated ``big5hkscs`` codec to the HKSCS revision of 2004.
- Updated ``big5hkscs`` codec to the HKSCS revision of 2004.
...
...
Modules/posixmodule.c
View file @
0a40ffb1
...
@@ -5987,10 +5987,10 @@ posix_times(PyObject *self, PyObject *noargs)
...
@@ -5987,10 +5987,10 @@ posix_times(PyObject *self, PyObject *noargs)
*/
*/
return
Py_BuildValue
(
return
Py_BuildValue
(
"ddddd"
,
"ddddd"
,
(
double
)(
kernel
.
dwHighDateTime
*
429
.
4967296
+
kernel
.
dwLowDateTime
*
1e-7
),
(
double
)(
user
.
dwHighDateTime
*
429
.
4967296
+
(
double
)(
user
.
dwHighDateTime
*
429
.
4967296
+
user
.
dwLowDateTime
*
1e-7
),
user
.
dwLowDateTime
*
1e-7
),
(
double
)(
kernel
.
dwHighDateTime
*
429
.
4967296
+
kernel
.
dwLowDateTime
*
1e-7
),
(
double
)
0
,
(
double
)
0
,
(
double
)
0
,
(
double
)
0
,
(
double
)
0
);
(
double
)
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment