Commit graph

95217 commits

Author SHA1 Message Date
Raymond Hettinger
80490525e0 Issue #29011: Fix an important omission by adding Deque to the typing module. 2017-01-16 22:42:37 -08:00
Benjamin Peterson
a105dd3dc0 generate spaces instead of tabs into config.c 2017-01-16 00:05:12 -08:00
Martin Panter
8f1378366e Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
Martin Panter
536d70ed33 Fix grammar, typos and markup in documentation and code comments
* Indent versionchanged at method level, not class level
* Mark up ``--help`` to avoid generating an en dash
* Use forward slash in Unix command line with a dollar sign ($) prompt
2017-01-14 08:23:08 +00:00
Martin Panter
b71c0956d0 Issues #1621, #29145: Test for str.join() overflow 2017-01-12 11:54:59 +00:00
Martin Panter
52e29072e1 Issue #22980: Skip a sysconfig test if _ctypes is not available.
Extracted from revision a1daf2d289ad by Zachary Ware.
2017-01-13 10:38:09 +00:00
Vinay Sajip
5fd832ba09 Fixes #29261: added venv/scripts/common to LIBSUBDIRS. 2017-01-13 19:08:47 +00:00
Serhiy Storchaka
4b318f8be9 Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
2017-01-13 09:37:56 +02:00
Serhiy Storchaka
3023ebb43f Py_SIZE() was misused for dict. 2017-01-13 08:34:34 +02:00
Serhiy Storchaka
cb19aeb550 Merge heads 2017-01-12 19:42:44 +02:00
Vinay Sajip
98a74413b9 Issue #22343: Made bash activate script available on Windows. 2017-01-12 17:12:10 +00:00
Serhiy Storchaka
67796521dd Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 18:34:33 +02:00
Victor Stinner
9b8dcc6b1c Fix script_helper.run_python_until_end(): copy SYSTEMROOT
Windows requires at least the SYSTEMROOT environment variable to start Python.
If run_python_until_end() doesn't copy SYSTEMROOT, the function always fail on
Windows.
2017-01-12 11:51:46 +01:00
Victor Stinner
de383289ea Issue #25591: Fix test_imaplib if ssl miss 2017-01-12 11:51:31 +01:00
Serhiy Storchaka
87006a3d4a Issue #20804: Document the limitation of the unittest.mock.sentinel attributes. 2017-01-11 20:16:44 +02:00
Vinay Sajip
924aaae4c2 Issue #29220: Improved fix and test. 2017-01-11 17:35:36 +00:00
Martin Panter
9da31f7274 Issue #15657: METH_KEYWORDS cannot be used alone in Python 3 2017-01-11 11:41:03 +00:00
Xiang Zhang
8a17995589 Issue #29217: Fix the wrong type description of UUID.variant. 2017-01-10 11:29:27 +08:00
Xiang Zhang
b0541f4cdf Issue #29145: Fix overflow checks in str.replace() and str.join().
Based on patch by Martin Panter.
2017-01-10 10:52:00 +08:00
Stefan Krah
18e0a97a1a Issue #28701: Revert part of 5bdc8e1a50c8 for the following reasons:
- There was no real problem to begin with.

  - The hypothetical problem has been fixed by 5bdc8e1a50c8.
2017-01-09 13:11:27 +01:00
Victor Stinner
035ba5da3e Issue #29157: Prefer getrandom() over getentropy()
Copy and then adapt Python/random.c from default branch. Difference between 3.5
and default branches:

* Python 3.5 only uses getrandom() in non-blocking mode: flags=GRND_NONBLOCK
* If getrandom() fails with EAGAIN: py_getrandom() immediately fails and
  remembers that getrandom() doesn't work.
* Python 3.5 has no _PyOS_URandomNonblock() function: _PyOS_URandom()
  works in non-blocking mode on Python 3.5
2017-01-09 11:18:53 +01:00
Serhiy Storchaka
9937d90ee8 Issue #29190: Fixed possible errors in comparing strings in the pickle module. 2017-01-09 10:04:34 +02:00
Xiang Zhang
959ff7f1c6 Issue #29142: Fix suffixes in no_proxy handling in urllib.
In urllib.request, suffixes in no_proxy environment variable with
leading dots could match related hostnames again (e.g. .b.c matches a.b.c).
Patch by Milan Oberkirch.
2017-01-09 11:47:55 +08:00
Martin Panter
8cbd46f19f Issue #28815: Use new exception subclasses 2017-01-08 00:46:25 +00:00
Xavier de Gaye
645bc80918 test_curses - substitute self.skip() with self.skipTest() 2017-01-06 09:50:27 +01:00
Serhiy Storchaka
1d54b114c5 Issue #29156: Remove superfluous pow test.
test_powlong is the same as test_powint.
Patch by Lukas Schwaighofer.
2017-01-04 18:52:40 +02:00
Serhiy Storchaka
21fe721345 Fixed possible reference leaks in the _json module. 2017-01-03 11:17:44 +02:00
Larry Hastings
d9cb1b0c2d Forward-merge from 3.4. 2017-01-02 18:36:52 -08:00
Larry Hastings
31f9d9d340 Merge Python 3.5.3rc1 release changes back into the main branch. 2017-01-02 18:32:30 -08:00
Larry Hastings
e744804bc9 Post-release fixups for Python 3.5.3rc1. 2017-01-02 18:31:25 -08:00
Larry Hastings
aa772e3cd2 Merge Python 3.4.6rc1 changes back into main branch. 2017-01-02 18:30:26 -08:00
Larry Hastings
a7aa988ddc Post-release fixups for Python 3.4.6rc1. 2017-01-02 18:29:26 -08:00
Berker Peksag
225b01b840 Issue #15812: Delete redundant max(start, 0)
Noticed by Serhiy Storchaka.
2017-01-03 03:48:04 +03:00
Berker Peksag
7b4e551091 Issue #29012: Remove another outdated information
Patch by Jim Fasarakis-Hilliard.
2017-01-03 03:34:15 +03:00
Ned Deily
e8134afd8e merge 3.4 2017-01-02 02:48:26 -05:00
Ned Deily
0717564746 merge 3.3 2017-01-02 02:47:35 -05:00
Ned Deily
c276ffa0a9 ring IDLE.app into 2017, too 2017-01-02 02:46:09 -05:00
Larry Hastings
1c37ba7924 Added tag v3.5.3rc1 for changeset de530d7f21c0 2017-01-01 22:13:39 -08:00
Larry Hastings
af17a2bfba Added tag v3.4.6rc1 for changeset e199a272ccda 2017-01-01 22:13:29 -08:00
Larry Hastings
b32a03430f Version bump for 3.5.3rc1. 2017-01-01 22:12:52 -08:00
Larry Hastings
d12551fe71 Version bump for 3.4.6rc1. 2017-01-01 22:12:36 -08:00
Larry Hastings
e562a95003 Regenerated pydoc topics for 3.5.3rc1. 2017-01-01 22:09:56 -08:00
Larry Hastings
8f24f665d7 Regenerated pydoc topics for 3.4.6rc1. (Also fixed doc error, improved build.) 2017-01-01 22:09:46 -08:00
Larry Hastings
33014caa46 Null merge from 3.4. 2017-01-01 21:50:33 -08:00
Larry Hastings
03fdeb786c Fix test failure so it's no longer dependent on example.com. 2017-01-01 21:49:09 -08:00
Benjamin Peterson
493ac1bbe0 only include sys/random.h if it seems like it might have something useful (#29057) 2017-01-01 22:29:36 -06:00
Benjamin Peterson
c9d4c60a56 merge heads 2017-01-01 22:09:07 -06:00
Benjamin Peterson
4365833d11 merge 3.4 2017-01-01 22:08:33 -06:00
Benjamin Peterson
b6e2142b0c merge 3.3 2017-01-01 22:07:37 -06:00
Benjamin Peterson
e527dd34bc ring in 2017 for Python 2017-01-01 22:04:13 -06:00