Commit graph

97350 commits

Author SHA1 Message Date
Victor Stinner
e33797b686 ctypes: fix CThunkObject_new()
* Initialize restype and flags fields to fix a crash when Python runs on a
  read-only file system
* Use Py_ssize_t type rather than int for the "i" iterator variable
* Reorder assignements to be able to more easily check if all fields are
  initialized

Issue #11048. Initial patch written by Marcin Bachry.
2016-07-27 16:58:47 +02:00
Berker Peksag
755df2a558 Issue #27633: Merge from 3.5 2016-07-27 13:33:28 +03:00
Berker Peksag
25539b089f Issue #27633: Fix usage of versionchanged directive in email.parser.rst
Patch by Florian Preinstorfer.
2016-07-27 13:32:54 +03:00
Alexander Belopolsky
611adf2466 Issue #24773: Fixed tests failures on systems with 32-bit time_t.
Several 32-bit systems have issues with transitions in the year
2037. This is a bug in the system C library since time_t does not
overflow until 2038, but let's skip tests starting from 2037 to work
around those bugs.
2016-07-26 12:23:16 -04:00
Xavier de Gaye
8d4989687c (merge from 3.5) Issue #26662: Set PYTHON_FOR_GEN in configure
as the Python program to be used for file generation during the build.
2016-07-26 12:55:20 +02:00
Xavier de Gaye
fd0d5939bd Issue #26662: Set PYTHON_FOR_GEN in configure
as the Python program to be used for file generation during the build.
2016-07-26 12:48:08 +02:00
Martin Panter
1050d2d0c7 Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.
Patch by Julien Palard.
2016-07-26 11:18:21 +02:00
Martin Panter
c75885bb86 Issue #26638: Merge CLI link fix from 3.5 2016-07-26 06:47:09 +00:00
Martin Panter
254da19d0e Issue #26638: Don’t link 2to3 -l option to the tarfile -l option 2016-07-26 06:46:06 +00:00
Terry Jan Reedy
17937832ba Issue #27620: Escape key closes Query box as cancelled. 2016-07-25 20:58:43 -04:00
Alexander Belopolsky
8e1d3a2d41 Issue 24773: Added a time_t overflow check. 2016-07-25 13:54:51 -04:00
Terry Jan Reedy
43b17134e9 Issue #24137, issue #27611: Restore tkinter after test_idle. 2016-07-25 00:31:54 -04:00
Martin Panter
b93d8637a6 Issue #1621: Avoid signed overflow in list and tuple operations
Patch by Xiang Zhang.
2016-07-25 02:39:20 +00:00
Martin Panter
32d2ce3561 Issue #27581: Merge overflow fix from 3.5 2016-07-25 03:31:29 +00:00
Terry Jan Reedy
c665dfd73e Issue #19198: IDLE: tab after initial whitespace should tab, not autocomplete.
Fixes problem with writing docstrings at lease twice indented.
2016-07-24 23:01:28 -04:00
Martin Panter
e8db861f47 Issue #27581: Don’t rely on overflow wrapping in PySequence_Tuple()
Patch by Xiang Zhang.
2016-07-25 02:30:05 +00:00
Martin Panter
996d72bccf Issue #7063: Remove dead code from array slice handling
Patch by Chuck.
2016-07-25 02:21:14 +00:00
Berker Peksag
3b055b5960 Issue #27601: Merge from 3.5 2016-07-25 04:56:19 +03:00
Berker Peksag
aa46bd461c Issue #27601: Improve example in the "Hashing of numeric types" section
* Fix return value of hash_compute() implementation
* Rename variable names to hash_value to improve readability

Patch by Emanuel Barry.
2016-07-25 04:55:51 +03:00
Berker Peksag
ced8d4c6eb Issue #27454: Use PyDict_SetDefault in PyUnicode_InternInPlace
Patch by INADA Naoki.
2016-07-25 04:40:39 +03:00
Steve Dower
81fb0e33d6 Merge from 3.5 2016-07-24 18:06:51 -07:00
Steve Dower
05338267ab Issue #27610: Adds PEP 514 metadata to Windows installer 2016-07-24 18:04:29 -07:00
Steve Dower
6ed63f31e9 Fixes default intermediate directory when building on Windows. 2016-07-24 18:03:22 -07:00
Alexander Belopolsky
95f7b9fcac Issue 24773: Make zoneinfo tests more robust. (reapply) 2016-07-24 20:36:55 -04:00
Terry Jan Reedy
c74fb9c6c5 Issue #27609: Explicitly return None when there are other returns.
In a few cases, reverse a condition and eliminate a return.
2016-07-24 20:35:43 -04:00
Alexander Belopolsky
cd28013d00 Reindented Lib/test/datetimetester.py. 2016-07-24 14:41:08 -04:00
Alexander Belopolsky
4719ae7567 Issue #24773: Made ZoneInfoCompleteTest a TestSuit.
This should improve the diagnostic and progress reports.
2016-07-24 14:39:28 -04:00
Alexander Belopolsky
8dadb2155b Issue 24773: Make zoneinfo tests more robust. 2016-07-23 11:16:56 -04:00
Steve Dower
1f7480a67e Fixes bad Misc/NEWS merge 2016-07-23 08:04:11 -07:00
Steve Dower
edddc2704c Issue #27469: Adds a shell extension to the launcher so that drag and drop works correctly. 2016-07-23 08:02:02 -07:00
Berker Peksag
f96c84f6e5 Issue #13849: Merge from 3.5 2016-07-23 08:43:04 +03:00
Berker Peksag
5f804e387e Issue #13849: Fix test_null_bytes under Windows 2016-07-23 08:42:41 +03:00
Berker Peksag
804a39f04f Issue #13849: Merge from 3.5 2016-07-23 07:32:14 +03:00
Berker Peksag
9adc1a38bd Issue #13849: Add tests for null byte checking in test_genericpath 2016-07-23 07:31:47 +03:00
Berker Peksag
b3bb436b86 Issue #27493: Fix test_path_objects under Windows 2016-07-23 07:15:12 +03:00
Berker Peksag
bd8b443742 Issue #27591: Merge from 3.5 2016-07-23 07:13:41 +03:00
Berker Peksag
1fd497ed91 Issue #27591: Set sigint_event to NULL if _PyOS_IsMainThread() returns false
Patch by Chris Angelico.
2016-07-23 07:13:14 +03:00
Martin Panter
525a949251 Issue #27130: Merge zlib 64-bit fixes from 3.5 2016-07-23 03:39:49 +00:00
Martin Panter
84544c1020 Issue #27130: Fix handling of buffers exceeding UINT_MAX in “zlib” module
Patch by Xiang Zhang.
2016-07-23 03:02:07 +00:00
Alexander Belopolsky
5d0c598382 Closes issue #24773: Implement PEP 495 (Local Time Disambiguation). 2016-07-22 18:47:04 -04:00
Vinay Sajip
638e622055 Closes #27493: accepted Path objects in file handlers for logging. 2016-07-22 18:23:04 +01:00
Victor Stinner
d3afb62b8f Merge 3.5 (INVALID_SOCKET) 2016-07-22 17:47:09 +02:00
Victor Stinner
524714eeda socket: use INVALID_SOCKET
* Replace "fd = -1" with "fd = INVALID_SOCKET"
* Replace "fd < 0" with "fd == INVALID_SOCKET": SOCKET_T is unsigned on Windows

Bug found by Pavel Belikov ("Fragment N1"):
http://www.viva64.com/en/b/0414/#ID0ECDAE
2016-07-22 17:43:59 +02:00
Victor Stinner
5e1989ce89 Merge 3.5 (fix internal_select) 2016-07-22 17:28:55 +02:00
Vinay Sajip
cccf6068fa Closes #26559: Allow configuring flush-on-close behaviour of MemoryHandler. 2016-07-22 16:27:31 +01:00
Victor Stinner
0cec877230 socket: Fix internal_select()
Bug found by Pavel Belikov ("Fragment N1"):
http://www.viva64.com/en/b/0414/#ID0ECDAE
2016-07-22 17:26:53 +02:00
Xavier de Gaye
d141531eb5 Issue #27472: Add test.support.unix_shell as the path to the default shell. 2016-07-22 12:15:29 +02:00
Zachary Ware
de85ed69f4 Closes #25393: Merge with 3.5 2016-07-19 16:46:09 -05:00
Zachary Ware
48e3f98206 Issue #25393: Fix probable copy/paste error in resource docs
Patch by Alakshendra Yadav.
2016-07-19 16:41:20 -05:00
Berker Peksag
fe8d966657 Issue #27567: Expose the POLLRDHUP constant in the select module 2016-07-19 21:09:26 +03:00