]>
granicus.if.org Git - python/log
Serhiy Storchaka [Fri, 13 Jan 2017 06:37:05 +0000 (08:37 +0200)]
Py_SIZE() was misused for dict.
Serhiy Storchaka [Fri, 13 Jan 2017 06:34:34 +0000 (08:34 +0200)]
Py_SIZE() was misused for dict.
Serhiy Storchaka [Thu, 12 Jan 2017 17:44:06 +0000 (19:44 +0200)]
Null merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:43:06 +0000 (19:43 +0200)]
Null merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:42:44 +0000 (19:42 +0200)]
Merge heads
Vinay Sajip [Thu, 12 Jan 2017 17:13:27 +0000 (17:13 +0000)]
Issue #22343: Merged change from 3.5.
Serhiy Storchaka [Thu, 12 Jan 2017 17:12:21 +0000 (19:12 +0200)]
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.
Vinay Sajip [Thu, 12 Jan 2017 17:12:10 +0000 (17:12 +0000)]
Issue #22343: Made bash activate script available on Windows.
Serhiy Storchaka [Thu, 12 Jan 2017 16:34:33 +0000 (18:34 +0200)]
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.
Victor Stinner [Thu, 12 Jan 2017 10:53:09 +0000 (11:53 +0100)]
Merge 3.5
Victor Stinner [Thu, 12 Jan 2017 10:51:46 +0000 (11:51 +0100)]
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.
Victor Stinner [Thu, 12 Jan 2017 10:51:31 +0000 (11:51 +0100)]
Issue #25591: Fix test_imaplib if ssl miss
Serhiy Storchaka [Wed, 11 Jan 2017 18:17:34 +0000 (20:17 +0200)]
Merge with 3.5.
Serhiy Storchaka [Wed, 11 Jan 2017 18:16:44 +0000 (20:16 +0200)]
Issue #20804: Document the limitation of the unittest.mock.sentinel attributes.
Vinay Sajip [Wed, 11 Jan 2017 17:41:28 +0000 (17:41 +0000)]
Issue #292Merged fixes from 3.5.
Vinay Sajip [Wed, 11 Jan 2017 17:35:36 +0000 (17:35 +0000)]
Issue #29220: Improved fix and test.
Martin Panter [Wed, 11 Jan 2017 11:56:22 +0000 (11:56 +0000)]
Issue #29239: Fix --enable-optimizations bug number
Martin Panter [Wed, 11 Jan 2017 11:51:02 +0000 (11:51 +0000)]
Issue #15657: Merge other doc fix from 3.5
Martin Panter [Wed, 11 Jan 2017 11:50:06 +0000 (11:50 +0000)]
Issue #15657: Delete incorrect statement from PyMethodDef documentation
Patch by Berker Peksag.
Martin Panter [Wed, 11 Jan 2017 11:41:03 +0000 (11:41 +0000)]
Issue #15657: METH_KEYWORDS cannot be used alone in Python 3
Xiang Zhang [Tue, 10 Jan 2017 03:30:02 +0000 (11:30 +0800)]
Issue #29217: Merge 3.5.
Xiang Zhang [Tue, 10 Jan 2017 03:29:27 +0000 (11:29 +0800)]
Issue #29217: Fix the wrong type description of UUID.variant.
Xiang Zhang [Tue, 10 Jan 2017 02:54:19 +0000 (10:54 +0800)]
Issue #29145: Merge 3.5.
Xiang Zhang [Tue, 10 Jan 2017 02:52:00 +0000 (10:52 +0800)]
Issue #29145: Fix overflow checks in str.replace() and str.join().
Based on patch by Martin Panter.
Vinay Sajip [Mon, 9 Jan 2017 16:54:12 +0000 (16:54 +0000)]
Fixes #29177: Improved resilience of logging tests which use socket servers.
Thanks to Xavier de Gaye for the report and patch improvements.
Vinay Sajip [Mon, 9 Jan 2017 16:46:04 +0000 (16:46 +0000)]
Fixes #29133: clarified shlex documentation.
Stefan Krah [Mon, 9 Jan 2017 12:11:51 +0000 (13:11 +0100)]
Merge 3.5.
Stefan Krah [Mon, 9 Jan 2017 12:11:27 +0000 (13:11 +0100)]
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 .
Victor Stinner [Mon, 9 Jan 2017 10:21:26 +0000 (11:21 +0100)]
Null merge 3.5
Python/random.c is more then in the 3.6 branch.
Victor Stinner [Mon, 9 Jan 2017 10:18:53 +0000 (11:18 +0100)]
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
Serhiy Storchaka [Mon, 9 Jan 2017 08:09:43 +0000 (10:09 +0200)]
Issue #29190: Fixed possible errors in comparing strings in the pickle module.
Serhiy Storchaka [Mon, 9 Jan 2017 08:04:34 +0000 (10:04 +0200)]
Issue #29190: Fixed possible errors in comparing strings in the pickle module.
Xiang Zhang [Mon, 9 Jan 2017 03:50:02 +0000 (11:50 +0800)]
Issue #29142: Merge 3.5.
Xiang Zhang [Mon, 9 Jan 2017 03:47:55 +0000 (11:47 +0800)]
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.
Raymond Hettinger [Mon, 9 Jan 2017 02:22:24 +0000 (18:22 -0800)]
Sync-up with 3.7 by backporting minor lru_cache code beautification
Raymond Hettinger [Mon, 9 Jan 2017 01:28:20 +0000 (17:28 -0800)]
Issue #29203: functools.lru_cache() now respects PEP 468
Xiang Zhang [Sun, 8 Jan 2017 15:26:57 +0000 (23:26 +0800)]
Issue #29034: Fix memory leak and use-after-free in path_converter.
Raymond Hettinger [Sun, 8 Jan 2017 08:37:13 +0000 (00:37 -0800)]
Add OrderedDict test for PEP 468 (guaranteed ordered of kwargs)
Raymond Hettinger [Sun, 8 Jan 2017 06:05:12 +0000 (22:05 -0800)]
Update OrderedDict docs to reflect acceptance of PEP 468
Martin Panter [Sun, 8 Jan 2017 01:06:18 +0000 (01:06 +0000)]
Issue #28815: Merge test tweak from 3.5
Martin Panter [Sun, 8 Jan 2017 00:46:25 +0000 (00:46 +0000)]
Issue #28815: Use new exception subclasses
Stefan Krah [Sun, 8 Jan 2017 00:36:00 +0000 (01:36 +0100)]
Add comment why the change in
d83884b3a427 wasn't necessary.
Stefan Krah [Sun, 8 Jan 2017 00:11:27 +0000 (01:11 +0100)]
Revert part of
3cb3e224b692 in code that I maintain.
Berker Peksag [Sat, 7 Jan 2017 06:32:56 +0000 (09:32 +0300)]
Issue #16026: Fix parameter names of DictReader and DictWriter
CPython and PyPy use f as the name of the first parameter of
DictReader and DictWriter classes.
Patch by James Salt and Greg Bengeult.
Victor Stinner [Fri, 6 Jan 2017 23:07:45 +0000 (00:07 +0100)]
Issue #29157: Prefer getrandom() over getentropy()
* dev_urandom() now calls py_getentropy(). Prepare the fallback to support
getentropy() failure and falls back on reading from /dev/urandom.
* Simplify dev_urandom(). pyurandom() is now responsible to call getentropy()
or getrandom(). Enhance also dev_urandom() and pyurandom() documentation.
* getrandom() is now preferred over getentropy(). The glibc 2.24 now implements
getentropy() on Linux using the getrandom() syscall. But getentropy()
doesn't support non-blocking mode. Since getrandom() is tried first, it's not
more needed to explicitly exclude getentropy() on Solaris. Replace:
"if defined(HAVE_GETENTROPY) && !defined(sun)"
with "if defined(HAVE_GETENTROPY)"
* Enhance py_getrandom() documentation. py_getentropy() now supports ENOSYS,
EPERM & EINTR
Victor Stinner [Fri, 6 Jan 2017 17:15:51 +0000 (18:15 +0100)]
Fix unittest.mock._Call: don't ignore name
Issue #28961: Fix unittest.mock._Call helper: don't ignore the name parameter
anymore.
Patch written by Jiajun Huang.
Victor Stinner [Fri, 6 Jan 2017 09:44:44 +0000 (10:44 +0100)]
Fix subprocess.Popen.__del__() fox Python shutdown
Issue #29174, #26741: subprocess.Popen.__del__() now keeps a strong reference
to warnings.warn() function.
Xavier de Gaye [Fri, 6 Jan 2017 08:51:22 +0000 (09:51 +0100)]
test_curses - substitute self.skip() with self.skipTest()
Xavier de Gaye [Fri, 6 Jan 2017 08:50:27 +0000 (09:50 +0100)]
test_curses - substitute self.skip() with self.skipTest()
INADA Naoki [Fri, 6 Jan 2017 08:32:01 +0000 (17:32 +0900)]
Issue #29159: Fix regression in bytes(x) when x.__index__() raises Exception.
Victor Stinner [Thu, 5 Jan 2017 21:58:53 +0000 (22:58 +0100)]
Issue #27961: Define HAVE_LONG_LONG as 1.
Fix backward compatibility issue, HAVE_LONG_LONG was defined but empty, whereas
it is defined as 1 in Python 3.5.
Terry Jan Reedy [Thu, 5 Jan 2017 04:17:47 +0000 (23:17 -0500)]
Issue #29162: Don't depend on 'from tkinter import *' importing sys.
Fix error in format string.
Xavier de Gaye [Wed, 4 Jan 2017 20:51:16 +0000 (21:51 +0100)]
Issue #26851: Set Android compilation and link flags.
Serhiy Storchaka [Wed, 4 Jan 2017 16:53:00 +0000 (18:53 +0200)]
Issue #29156: Remove superfluous pow test.
test_powlong is the same as test_powint.
Patch by Lukas Schwaighofer.
Serhiy Storchaka [Wed, 4 Jan 2017 16:52:40 +0000 (18:52 +0200)]
Issue #29156: Remove superfluous pow test.
test_powlong is the same as test_powint.
Patch by Lukas Schwaighofer.
Victor Stinner [Wed, 4 Jan 2017 11:01:16 +0000 (12:01 +0100)]
Issue #24773: fix datetime.time constructor docstring
The default value of fold is zero, not True. Fix the docstring of the Python
implementation.
Victor Stinner [Tue, 3 Jan 2017 22:47:12 +0000 (23:47 +0100)]
Issue #29140: Fix hash(datetime.time)
Fix time_hash() function: replace DATE_xxx() macros with TIME_xxx() macros.
Before, the hash function used a wrong value for microseconds if fold is set
(equal to 1).
Serhiy Storchaka [Tue, 3 Jan 2017 09:19:48 +0000 (11:19 +0200)]
Fixed possible reference leaks in the _json module.
Serhiy Storchaka [Tue, 3 Jan 2017 09:17:44 +0000 (11:17 +0200)]
Fixed possible reference leaks in the _json module.
Larry Hastings [Tue, 3 Jan 2017 02:39:09 +0000 (18:39 -0800)]
Null-merge from 3.5.
Larry Hastings [Tue, 3 Jan 2017 02:36:52 +0000 (18:36 -0800)]
Forward-merge from 3.4.
Larry Hastings [Tue, 3 Jan 2017 02:32:30 +0000 (18:32 -0800)]
Merge Python 3.5.3rc1 release changes back into the main branch.
Larry Hastings [Tue, 3 Jan 2017 02:31:25 +0000 (18:31 -0800)]
Post-release fixups for Python 3.5.3rc1.
Larry Hastings [Tue, 3 Jan 2017 02:30:26 +0000 (18:30 -0800)]
Merge Python 3.4.6rc1 changes back into main branch.
Larry Hastings [Tue, 3 Jan 2017 02:29:26 +0000 (18:29 -0800)]
Post-release fixups for Python 3.4.6rc1.
Berker Peksag [Tue, 3 Jan 2017 00:48:34 +0000 (03:48 +0300)]
Issue #15812: Merge from 3.5
Berker Peksag [Tue, 3 Jan 2017 00:48:04 +0000 (03:48 +0300)]
Issue #15812: Delete redundant max(start, 0)
Noticed by Serhiy Storchaka.
Berker Peksag [Tue, 3 Jan 2017 00:35:49 +0000 (03:35 +0300)]
Issue #29012: Merge from 3.5
Berker Peksag [Tue, 3 Jan 2017 00:34:15 +0000 (03:34 +0300)]
Issue #29012: Remove another outdated information
Patch by Jim Fasarakis-Hilliard.
Ned Deily [Mon, 2 Jan 2017 07:50:33 +0000 (02:50 -0500)]
merge 3.5
Ned Deily [Mon, 2 Jan 2017 07:48:26 +0000 (02:48 -0500)]
merge 3.4
Ned Deily [Mon, 2 Jan 2017 07:47:35 +0000 (02:47 -0500)]
merge 3.3
Ned Deily [Mon, 2 Jan 2017 07:46:09 +0000 (02:46 -0500)]
ring IDLE.app into 2017, too
Larry Hastings [Mon, 2 Jan 2017 06:13:39 +0000 (22:13 -0800)]
Added tag v3.5.3rc1 for changeset
de530d7f21c0
Larry Hastings [Mon, 2 Jan 2017 06:13:29 +0000 (22:13 -0800)]
Added tag v3.4.6rc1 for changeset
e199a272ccda
Larry Hastings [Mon, 2 Jan 2017 06:12:52 +0000 (22:12 -0800)]
Version bump for 3.5.3rc1.
Larry Hastings [Mon, 2 Jan 2017 06:12:36 +0000 (22:12 -0800)]
Version bump for 3.4.6rc1.
Larry Hastings [Mon, 2 Jan 2017 06:09:56 +0000 (22:09 -0800)]
Regenerated pydoc topics for 3.5.3rc1.
Larry Hastings [Mon, 2 Jan 2017 06:09:46 +0000 (22:09 -0800)]
Regenerated pydoc topics for 3.4.6rc1. (Also fixed doc error, improved build.)
Larry Hastings [Mon, 2 Jan 2017 05:50:55 +0000 (21:50 -0800)]
Null merge from 3.5.
Larry Hastings [Mon, 2 Jan 2017 05:50:33 +0000 (21:50 -0800)]
Null merge from 3.4.
Larry Hastings [Mon, 2 Jan 2017 05:49:09 +0000 (21:49 -0800)]
Fix test failure so it's no longer dependent on example.com.
Benjamin Peterson [Mon, 2 Jan 2017 04:30:26 +0000 (22:30 -0600)]
merge 3.5 (#29057)
Benjamin Peterson [Mon, 2 Jan 2017 04:29:36 +0000 (22:29 -0600)]
only include sys/random.h if it seems like it might have something useful (#29057)
Benjamin Peterson [Mon, 2 Jan 2017 04:09:23 +0000 (22:09 -0600)]
merge 3.5
Benjamin Peterson [Mon, 2 Jan 2017 04:09:18 +0000 (22:09 -0600)]
merge heads
Benjamin Peterson [Mon, 2 Jan 2017 04:09:07 +0000 (22:09 -0600)]
merge heads
Benjamin Peterson [Mon, 2 Jan 2017 04:08:44 +0000 (22:08 -0600)]
merge 3.5
Benjamin Peterson [Mon, 2 Jan 2017 04:08:33 +0000 (22:08 -0600)]
merge 3.4
Benjamin Peterson [Mon, 2 Jan 2017 04:07:37 +0000 (22:07 -0600)]
merge 3.3
Benjamin Peterson [Mon, 2 Jan 2017 04:04:13 +0000 (22:04 -0600)]
ring in 2017 for Python
Berker Peksag [Mon, 2 Jan 2017 03:59:12 +0000 (06:59 +0300)]
Issue #15812: Merge from 3.5
Berker Peksag [Mon, 2 Jan 2017 03:57:43 +0000 (06:57 +0300)]
Issue #15812: inspect.getframeinfo() now correctly shows the first line of a context
Patch by Sam Breese.
Berker Peksag [Mon, 2 Jan 2017 03:14:12 +0000 (06:14 +0300)]
Issue #29013: Merge from 3.5
Berker Peksag [Mon, 2 Jan 2017 03:13:42 +0000 (06:13 +0300)]
Issue #29013: Fix allowZip64 documentation
Zip files can be larger than 4 GiB if allowZip64
is true (default since Python 3.4)
Berker Peksag [Mon, 2 Jan 2017 03:01:07 +0000 (06:01 +0300)]
Issue #29012: Merge from 3.5
Berker Peksag [Mon, 2 Jan 2017 03:00:35 +0000 (06:00 +0300)]
Issue #29012: Remove outdated information about __bases__
Patch by Jim Fasarakis-Hilliard.
Berker Peksag [Mon, 2 Jan 2017 02:51:04 +0000 (05:51 +0300)]
Issue #29129: Fix typo in "Using auto" section
Berker Peksag [Mon, 2 Jan 2017 02:45:16 +0000 (05:45 +0300)]
Issue #29024: Merge from 3.5
Berker Peksag [Mon, 2 Jan 2017 02:44:49 +0000 (05:44 +0300)]
Issue #29024: Add Kivy entry to GUI FAQ
Patch by inclement.