one of the strings ``'<stdin>'`` or ``'???'``.
-.. cfunction:: long PyOS_GetLastModificationTime(char *filename)
-
- Return the time of last modification of the file *filename*. The result is
- encoded in the same way as the timestamp returned by the standard C library
- function :cfunc:`time`.
-
-
.. cfunction:: void PyOS_AfterFork()
Function to update some internal state after a process fork; this should be
PyNumber_Xor:PyObject*:o1:0:
PyNumber_Xor:PyObject*:o2:0:
-PyOS_GetLastModificationTime:long:::
-PyOS_GetLastModificationTime:char*:filename::
-
PyObject_AsFileDescriptor:int:::
PyObject_AsFileDescriptor:PyObject*:o:0:
Python/getargs.o \
Python/getcompiler.o \
Python/getcopyright.o \
- Python/getmtime.o \
Python/getplatform.o \
Python/getversion.o \
Python/graminit.o \
Core and Builtins
-----------------
+- Issue #4817: Remove unused function PyOS_GetLastModificationTime.
+
- Issue #4580: Fix slicing of memoryviews when the item size is greater than
one byte. Also fixes the meaning of len() so that it returns the number of
items, rather than the size in bytes.
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\Python\getmtime.c\r
-# End Source File\r
-# Begin Source File\r
-\r
SOURCE=..\..\Python\getopt.c\r
# End Source File\r
# Begin Source File\r
<File
RelativePath="..\..\Python\getcopyright.c">
</File>
- <File
- RelativePath="..\..\Python\getmtime.c">
- </File>
<File
RelativePath="..\..\Python\getopt.c">
</File>
RelativePath="..\..\Python\getcopyright.c"
>
</File>
- <File
- RelativePath="..\..\Python\getmtime.c"
- >
- </File>
<File
RelativePath="..\..\Python\getopt.c"
>
Python/getargs.c \
Python/getcompiler.c \
Python/getcopyright.c \
- Python/getmtime.c \
Python/getplatform.c \
Python/getversion.c \
Python/graminit.c \
; From python26_s.lib(getcopyright)
"Py_GetCopyright"
-; From python26_s.lib(getmtime)
- "PyOS_GetLastModificationTime"
-
; From python26_s.lib(getplatform)
"Py_GetPlatform"
$(PY_INCLUDE)\stringobject.h $(PY_INCLUDE)\sysmodule.h $(PY_INCLUDE)\traceback.h \
$(PY_INCLUDE)\tupleobject.h
-getmtime.obj: pyconfig.h
-
getplatform.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
$(PY_INCLUDE)\classobject.h $(PY_INCLUDE)\cobject.h $(PY_INCLUDE)\complexobject.h \
pyconfig.h $(PY_INCLUDE)\dictobject.h $(PY_INCLUDE)\fileobject.h \
pystate.h python.h pythonrun.h rangeobject.h sliceobject.h \
stringobject.h sysmodule.h traceback.h tupleobject.h
-getmtime.obj: pyconfig.h
-
getplatform.obj: abstract.h ceval.h classobject.h cobject.h complexobject.h \
pyconfig.h dictobject.h fileobject.h floatobject.h funcobject.h \
import.h intobject.h intrcheck.h listobject.h longobject.h \
PyNumber_Xor
PyOS_AfterFork
PyOS_FiniInterrupts
- PyOS_GetLastModificationTime
PyOS_InitInterrupts
PyOS_InterruptOccurred
PyOS_Readline
RelativePath="..\Python\getcopyright.c"
>
</File>
- <File
- RelativePath="..\Python\getmtime.c"
- >
- </File>
<File
RelativePath="..\Python\getopt.c"
>
+++ /dev/null
-
-/* Subroutine to get the last modification time of a file */
-
-/* (A separate file because this may be OS dependent) */
-
-#include "Python.h"
-#include "pyconfig.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-time_t
-PyOS_GetLastModificationTime(char *path, FILE *fp)
-{
- struct stat st;
- if (fstat(fileno(fp), &st) != 0)
- return -1;
- else
- return st.st_mtime;
-}
-
-#ifdef __cplusplus
-}
-#endif
-
typedef unsigned short mode_t;
#endif
-extern time_t PyOS_GetLastModificationTime(char *, FILE *);
- /* In getmtime.c */
/* Magic word to reject .pyc files generated by other Python versions.
It should change for each incompatible change to the bytecode.