mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.
This commit is contained in:
parent
dd5aa36f17
commit
6fe20b3aee
6 changed files with 96 additions and 33 deletions
|
@ -2362,17 +2362,6 @@ run_in_subinterp(PyObject *self, PyObject *args)
|
|||
return PyLong_FromLong(r);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
_PyLong_FromTime_t(time_t value)
|
||||
{
|
||||
#if defined(HAVE_LONG_LONG) && SIZEOF_TIME_T == SIZEOF_LONG_LONG
|
||||
return PyLong_FromLongLong(value);
|
||||
#else
|
||||
assert(sizeof(time_t) <= sizeof(long));
|
||||
return PyLong_FromLong(value);
|
||||
#endif
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
test_pytime_object_to_time_t(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue