Staging
v0.5.1
https://github.com/python/cpython
Revision 95e9cef6f023a1cf365f2f02775badb3a6ac0d82 authored by Victor Stinner on 28 March 2015, 00:26:47 UTC, committed by Victor Stinner on 28 March 2015, 00:26:47 UTC
* _PyTime_AsTimeval() now ensures that tv_usec is always positive
* _PyTime_AsTimespec() now ensures that tv_nsec is always positive
* _PyTime_AsTimeval() now returns an integer on overflow instead of raising an
  exception
1 parent b7df314
Raw File
Tip revision: 95e9cef6f023a1cf365f2f02775badb3a6ac0d82 authored by Victor Stinner on 28 March 2015, 00:26:47 UTC
Issue #22117: Write unit tests for _PyTime_AsTimeval()
Tip revision: 95e9cef
python_ver_rc.h
// Resource script for Python core DLL.
// Currently only holds version information.
//
#include "winver.h"

#define PYTHON_COMPANY   "Python Software Foundation"
#define PYTHON_COPYRIGHT "Copyright \xA9 2001-2015 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 1991-1995 SMC."

#define MS_WINDOWS
#include "modsupport.h"
#include "patchlevel.h"
#ifdef _DEBUG
#   include "pythonnt_rc_d.h"
#   define PYTHON_DEBUG_EXT "_d"
#else
#   include "pythonnt_rc.h"
#   define PYTHON_DEBUG_EXT
#endif

/* e.g., 3.3.0a1
 * PY_VERSION comes from patchlevel.h
 */
#define PYTHON_VERSION PY_VERSION "\0"

/* 64-bit version number as comma-separated list of 4 16-bit ints */
#if PY_MICRO_VERSION > 64
#   error "PY_MICRO_VERSION > 64"
#endif
#if PY_RELEASE_LEVEL > 99
#   error "PY_RELEASE_LEVEL > 99"
#endif
#if PY_RELEASE_SERIAL > 9
#   error "PY_RELEASE_SERIAL > 9"
#endif
#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
back to top