Commit graph

94603 commits

Author SHA1 Message Date
Victor Stinner
eec9331b20 Fix SystemError in "raise" statement
Issue #27558: Fix a SystemError in the implementation of "raise" statement.
In a brand new thread, raise a RuntimeError since there is no active
exception to reraise.

Patch written by Xiang Zhang.
2016-08-18 18:13:10 +02:00
Zachary Ware
54005afeee Use sys.version_info, not sys.version.
sys.version[0] gives a string, which fails > comparison with 2.
Reported by Arne Maximilian Richter on docs@
2016-08-17 09:51:20 -05:00
Victor Stinner
3da57436ba Issue #27698: Add socketpair to socket.__all__ on Windows 2016-08-17 14:40:08 +02:00
Victor Stinner
034fb564b1 Issue #27726: Fix "make tags"
* Memove -t option of ctags. The option was kept for backward compatibility,
  but it was completly removed recently. Patch written by Stéphane Wirtel.
* Set locale to C to call sort. vim expects that the tags file is sorted using
  english collation, so it fails if the locale is french for example. Use
  LC_ALL=C to force english sorting order. .
2016-08-17 14:00:58 +02:00
Victor Stinner
7e6977a8bc script_helper: kill the subprocess on error
If Popen.communicate() raises an exception, kill the child process to not leave
a running child process in background and maybe create a zombi process.

This change fixes a ResourceWarning in Python 3.6 when unit tests are
interrupted by CTRL+c.
2016-08-17 12:29:58 +02:00
Benjamin Peterson
6423429325 merge 3.4 (#27783) 2016-08-16 23:37:33 -07:00
Benjamin Peterson
a12d92bec1 merge 3.3 (#27783) 2016-08-16 23:36:20 -07:00
Benjamin Peterson
1f0e7c9933 rearrange methodcaller_new so that the main error case does not cause uninitialized memory usage (closes #27783) 2016-08-16 23:35:35 -07:00
Raymond Hettinger
379a3ffaf2 Remove duplicate of the entry in the seealso section 2016-08-16 10:59:04 -07:00
Gregory P. Smith
d4583d7fea Issue #26750: use inspect.isdatadescriptor instead of our own
_is_data_descriptor().
2016-08-15 23:23:40 -07:00
Terry Jan Reedy
22ba01ea55 Issue #27611: Don't import volatile attribute. 2016-08-16 01:44:12 -04:00
Benjamin Peterson
76aa1fb3b1 merge 3.4 (#27774) 2016-08-15 22:05:06 -07:00
Benjamin Peterson
10bc0f6edf merge 3.3 (#27774) 2016-08-15 22:03:44 -07:00
Benjamin Peterson
3a27b0857e do not decref value borrowed from list (closes #27774) 2016-08-15 22:01:41 -07:00
Benjamin Peterson
81b9ecd2a3 fix corner cases in the management of server_hostname (closes #27773) 2016-08-15 21:55:37 -07:00
Benjamin Peterson
b1c6bdc76a merge 3.4 2016-08-15 21:43:57 -07:00
Benjamin Peterson
432ea4ff37 fail when negative values are passed to instr() 2016-08-15 21:40:14 -07:00
Guido van Rossum
aa9560c633 Add docs for typing.AnyStr and typing.Text. By Michael Lee. 2016-08-15 15:06:38 -07:00
Ned Deily
3d4559936a Issue #10910: Update FreedBSD version checks for the ctype UTF-8 workaround.
The original problem has been fixed in newer versions of FreeBSD.
Patch by Dimitry Andric of the FreeBSD project.
2016-08-15 03:08:18 -04:00
Ned Deily
7659aab5e9 Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.
Patch by Ronald Oussoren.
2016-08-15 03:07:26 -04:00
Donald Stufft
80a3ba90fd merge 3.4 2016-08-14 16:10:17 -04:00
Donald Stufft
5e4aafa258 Update setuptools/pip to 25.2.0/8.1.2 2016-08-14 16:09:56 -04:00
Benjamin Peterson
91060f26f9 merge 3.4 (closes #27760) 2016-08-13 18:37:12 -07:00
Benjamin Peterson
5295532adb merge 3.3 (closes #27760) 2016-08-13 18:36:55 -07:00
Benjamin Peterson
4f976513ef fix possible integer overflow in binascii.b2a_qp (closes #27760)
Reported by Thomas E. Hybel
2016-08-13 18:33:33 -07:00
Benjamin Peterson
f17a8e9acd merge 3.4 2016-08-13 18:21:16 -07:00
Benjamin Peterson
40a77c3381 do not allow reading negative values with getstr() 2016-08-13 18:15:28 -07:00
Benjamin Peterson
9745ee0b44 merge 3.4 (closes #27758) 2016-08-13 17:21:54 -07:00
Benjamin Peterson
59b6abd38c merge 3.3 (#27758) 2016-08-13 17:21:22 -07:00
Benjamin Peterson
6e01d90cc8 check for overflow in join_append_data (closes #27758)
Reported by Thomas E. Hybel
2016-08-13 17:17:06 -07:00
R David Murray
689016fc00 #27753: fix typo (name->named). 2016-08-13 14:47:18 -04:00
Raymond Hettinger
f6ffa9826e Issue #27720: Fix error in eng_to_decimal docs and add examples from the specification.
(Based on a first draft patch from Evelyn Mitchell.)
2016-08-13 11:15:34 -07:00
Berker Peksag
bd664357f1 Issue #24637: Document that locals can be any mapping object
This behavior is already tested in test_general_eval in
Lib/test/test_builtin.py

Patch by Matthew Keeter.
2016-08-13 05:37:49 +03:00
Brett Cannon
6336fb2734 Issue #27712: Fix some typos in the import docs.
Thanks to Xiang Zhang for the patch.
2016-08-12 10:56:48 -07:00
Raymond Hettinger
7f65af3d2d Issue 27719: Remove a doc example that is not applicable in Python 3 2016-08-12 09:43:59 -07:00
Martin Panter
5401e87b01 Issue #25825: Fix references to Modules/python.exp
These were incorrectly changed in revision 88a532a31eb3.
2016-08-12 13:21:05 +00:00
Martin Panter
b4a2b36c99 Issue #27745: Fix some typos in Argument Clinic howto, by Lele Gaifax 2016-08-12 12:02:03 +00:00
Martin Panter
3cf0b2515b Issue #26741: Clean up subprocess.Popen object in test_poll 2016-08-12 11:59:52 +00:00
Martin Panter
b63c56077f Close HTTP connections and responses in tests to avoid ResourceWarnings 2016-08-12 11:59:52 +00:00
Terry Jan Reedy
2084350685 Issue #27714: text_textview now passes when re-run in the same process
because test_idle failed while running with test -w (and no -jn).
2016-08-10 16:52:24 -04:00
Martin Panter
540f0451d2 Correct misspellings of ISO-8859 2016-08-10 05:25:16 +00:00
Zachary Ware
4199bbaf63 Issue #27200: Fix doctests in Doc/library/hashlib.rst 2016-08-10 01:05:19 -05:00
Zachary Ware
9f8b3a0b92 Issue #27210: Fix doctests for a few modules.
Initial patch by Jelle Zijlstra.
2016-08-10 00:59:59 -05:00
Zachary Ware
640b1ca507 Issue #27209: Fix doctests in Doc/library/email*.rst
Patch by Jelle Zijlstra.
2016-08-10 00:39:41 -05:00
Zachary Ware
c90fccdff6 Issue #27208: Fix doctest in Doc/library/traceback.rst
Patch by Jelle Zijlstra.
2016-08-10 00:35:27 -05:00
Zachary Ware
4032620f93 Issue #27207: Fix doctests in Doc/whatsnew/3.2.rst
Initial patch by Jelle Zijlstra.
2016-08-10 00:30:41 -05:00
Zachary Ware
c483a01a8f Issue #27206: Fix doctests in Doc/tutorial.
Patch by Jelle Zijlstra.
2016-08-09 17:44:52 -05:00
Zachary Ware
2b52c0a25f Issue #27205: Fix doctests in Doc/library/collections.rst.
Initial patch by Jelle Zijlstra.
2016-08-09 17:38:22 -05:00
Zachary Ware
7a26da5845 Issue #27722: Fix default for touch method's 'mode' argument 2016-08-09 17:10:39 -05:00
Zachary Ware
378a1d77d9 Issue #27204: Fix doctests in Doc/howto
Patch by Jelle Zijlstra.
2016-08-09 16:47:04 -05:00