summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a fast path (no iterator creation) for a common case for repeating ↵Raymond Hettinger2015-09-192-4/+20
| | | | deques of size 1
* Merge 3.5Victor Stinner2015-09-191-4/+6
|\
| * Issue #24999: In longobject.c, use two shifts instead of ">> 2*PyLong_SHIFT" toVictor Stinner2015-09-191-4/+6
| | | | | | | | | | | | avoid undefined behaviour when LONG_MAX type is smaller than 60 bits. This change should fix a warning with the ICC compiler.
* | Issue #25101: Try to create a file to test write access in test_zipfile.Serhiy Storchaka2015-09-191-0/+7
|\ \ | |/
| * Issue #25101: Try to create a file to test write access in test_zipfile.Serhiy Storchaka2015-09-191-0/+7
| |\
| | * Issue #25101: Try to create a file to test write access in test_zipfile.Serhiy Storchaka2015-09-191-0/+7
| | |
* | | Hoist constant expression out of an inner loopRaymond Hettinger2015-09-191-2/+6
| | |
* | | Merge for issue #25133Brett Cannon2015-09-181-2/+2
|\ \ \ | |/ /
| * | Make it clearer that the constants in the selectors docs are module-levelBrett Cannon2015-09-181-2/+2
| | |
* | | Merge for issue #24915Brett Cannon2015-09-188-7/+185
|\ \ \ | |/ /
| * | Issue #24915: Add Clang support to PGO builds and use the test suiteBrett Cannon2015-09-188-7/+185
| | | | | | | | | | | | | | | | | | for profile data. Thanks to Alecsandru Patrascu of Intel for the initial patch.
* | | Merge 3.5 (test_email)Victor Stinner2015-09-181-0/+3
|\ \ \ | |/ /
| * | Merge 3.4 (test_email)Victor Stinner2015-09-181-0/+3
| |\ \ | | |/
| | * Issue #24836: Skip FormatDateTests of test_email.test_utils on Mac OS X SnowVictor Stinner2015-09-181-0/+3
| | | | | | | | | | | | Leopard because this OS uses out of date (pre 2011k) timezone files.
* | | Issue #25003: Skip test_os.URandomFDTests on Solaris 11.3 and newerVictor Stinner2015-09-181-7/+9
| | | | | | | | | | | | | | | When os.urandom() is implemented with the getrandom() function, it doesn't use a file descriptor.
* | | Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()Victor Stinner2015-09-185-21/+110
| | | | | | | | | | | | | | | | | | function instead of the getentropy() function. The getentropy() function is blocking to generate very good quality entropy, os.urandom() doesn't need such high-quality entropy.
* | | Merge 3.5Victor Stinner2015-09-183-16/+11
|\ \ \ | |/ /
| * | Issue #25150: Hide the private _Py_atomic_xxx symbols from the publicVictor Stinner2015-09-183-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Python.h header to fix a compilation error with OpenMP. PyThreadState_GET() becomes an alias to PyThreadState_Get() to avoid ABI incompatibilies. It is important that the _PyThreadState_Current variable is always accessed with the same implementation of pyatomic.h. Use the PyThreadState_Get() function so extension modules will all reuse the same implementation.
* | | Null merge 3.5: datetime was already fixed, but with a very different ↵Victor Stinner2015-09-180-0/+0
|\ \ \ | |/ / | | | | | | implementation
| * | Merge 3.4 (datetime rounding)Victor Stinner2015-09-184-45/+110
| |\ \ | | |/
| | * Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methodsVictor Stinner2015-09-184-41/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of datetime.datetime: microseconds are now rounded to nearest with ties going to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards zero (ROUND_DOWN). It's important that these methods use the same rounding mode than datetime.timedelta to keep the property: (datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t) It also the rounding mode used by round(float) for example. Add more unit tests on the rounding mode in test_datetime.
* | | Oops, fix test_microsecond_rounding()Victor Stinner2015-09-181-2/+2
| | | | | | | | | | | | Test self.theclass, not datetime. Regression introduced by manual tests.
* | | Merge 3.5 (pytime)Victor Stinner2015-09-180-0/+0
|\ \ \ | |/ /
| * | Issue #25155: Fix _PyTime_Divide() roundingVictor Stinner2015-09-182-11/+16
| | | | | | | | | | | | | | | _PyTime_Divide() rounding was wrong: copy code from Python default which has now much better unit tests.
* | | Merge 3.5 (NEWS)Victor Stinner2015-09-181-0/+4
|\ \ \ | |/ /
| * | Issue #25155: document the bugfix in Misc/NEWSVictor Stinner2015-09-181-0/+4
| | | | | | | | | | | | Oops, I forgot to document my change.
* | | Merge 3.5 (pytime, odict)Victor Stinner2015-09-181-1/+1
|\ \ \ | |/ /
| * | odictobject.c: fix compiler warningVictor Stinner2015-09-181-1/+1
| | | | | | | | | | | | | | | PyObject_Length() returns a P_ssize_t, not an int. Use a Py_ssize_t to avoid overflow.
| * | Issue #25155: Add _PyTime_AsTimevalTime_t() functionVictor Stinner2015-09-183-42/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, the tv_sec field of the timeval structure has the type C long, whereas it has the type C time_t on all other platforms. A C long has a size of 32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not enough to store an Epoch timestamp after the year 2038. Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now(): convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t. It allows to support dates after the year 2038 on Windows. Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of seconds when rounding the number of microseconds.
* | | Issue #25155: Add _PyTime_AsTimevalTime_t() functionVictor Stinner2015-09-183-23/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, the tv_sec field of the timeval structure has the type C long, whereas it has the type C time_t on all other platforms. A C long has a size of 32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not enough to store an Epoch timestamp after the year 2038. Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now(): convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t. It allows to support dates after the year 2038 on Windows. Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of seconds when rounding the number of microseconds.
* | | Null merge 3.5Victor Stinner2015-09-180-0/+0
|\ \ \ | |/ /
| * | Issue #25122: sync test_eintr with Python 3.6Victor Stinner2015-09-182-98/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test_eintr: support verbose mode, don't redirect eintr_tester output into a pipe * eintr_tester: replace os.fork() with subprocess to have a cleaner child process (ex: don't inherit setitimer()) * eintr_tester: kill the process if the unit test fails * test_open/test_os_open(): write support.PIPE_MAX_SIZE bytes instead of support.PIPE_MAX_SIZE*3 bytes
* | | Issue #25122: Fix test_eintr.test_open() on FreeBSDVictor Stinner2015-09-182-29/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Skip test_open() and test_os_open(): both tests uses a FIFO and signals, but there is a bug in the FreeBSD kernel which blocks the test. Skip the tests until the bug is fixed in FreeBSD kernel. Remove also debug traces from test_eintr: * stop using faulthandler to have a timeout * remove print() Write also open and close on two lines in test_open() and test_os_open() tests. If these tests block again, we can know if the test is stuck at open or close. test_eintr: don't always run the test in debug mode.
* | | Merge 3.5 (imp/_imp)Victor Stinner2015-09-181-3/+4
|\ \ \ | |/ /
| * | Issue #25160: Fix import_init() comments and messagesVictor Stinner2015-09-181-3/+4
| | | | | | | | | | | | import_init() imports the "_imp" module, not the "imp" module.
* | | Null mergeSerhiy Storchaka2015-09-180-0/+0
|\ \ \ | |/ /
| * | Null mergeSerhiy Storchaka2015-09-180-0/+0
| |\ \ | | |/
| | * Issue #25108: Backported tests for traceback functions print_stack(),Serhiy Storchaka2015-09-181-0/+35
| | | | | | | | | | | | format_stack(), and extract_stack() called without arguments.
* | | Issue #25108: Omitted internal frames in traceback functions print_stack(),Serhiy Storchaka2015-09-183-0/+44
|\ \ \ | |/ / | | | | | | format_stack(), and extract_stack() called without arguments.
| * | Issue #25108: Omitted internal frames in traceback functions print_stack(),Serhiy Storchaka2015-09-183-0/+44
| | | | | | | | | | | | format_stack(), and extract_stack() called without arguments.
* | | Issue 25147: add reason for using _collectionsEthan Furman2015-09-181-0/+1
| | |
* | | Close issue24756: clarify usage of run_docstring_examples()Ethan Furman2015-09-181-7/+23
|\ \ \ | |/ /
| * | Issue24756: clarify usage of run_docstring_examples()Ethan Furman2015-09-181-7/+23
| |\ \ | | |/
| | * Issue24756: clarify usage of run_docstring_examples()Ethan Furman2015-09-181-7/+23
| | |
* | | Close issue25147: use C implementation of OrderedDictEthan Furman2015-09-181-1/+6
| | |
* | | Close issue24840: Enum._value_ is queried for bool(); original patch by Mike ↵Ethan Furman2015-09-183-0/+11
| | | | | | | | | | | | Lundy
* | | Merge 3.5Yury Selivanov2015-09-161-3/+2
|\ \ \ | |/ /
| * | whatsnew/3.5: Reword bytes*.hex messageYury Selivanov2015-09-161-3/+2
| | |
* | | Issue #25122: add debug traces to test_eintr.test_open()Victor Stinner2015-09-161-0/+14
| | |
* | | Issue #25122: optimize test_eintrVictor Stinner2015-09-151-2/+2
| | | | | | | | | | | | | | | Fix test_write(): copy support.PIPE_MAX_SIZE bytes, not support.PIPE_MAX_SIZE*3 bytes.