]>
granicus.if.org Git - python/log
Berker Peksag [Thu, 30 Jul 2015 15:06:09 +0000 (18:06 +0300)]
Issue #15582: Add a whatsnew entry for inspect.getdoc() changes in 3.5.
Patch by Martin Panter.
Victor Stinner [Thu, 30 Jul 2015 08:13:52 +0000 (10:13 +0200)]
py_getrandom(): getrandom() *can* return EINTR
See the latest version of getrandom() manual page:
http://man7.org/linux/man-pages/man2/getrandom.2.html#NOTES
The behavior when a call to getrandom() that is blocked while reading from
/dev/urandom is interrupted by a signal handler depends on the
initialization state of the entropy buffer and on the request size, buflen.
If the entropy is not yet initialized, then the call will fail with the
EINTR error. If the entropy pool has been initialized and the request size
is large (buflen > 256), the call either succeeds, returning a partially
filled buffer, or fails with the error EINTR. If the entropy pool has been
initialized and the request size is small (buflen <= 256), then getrandom()
will not fail with EINTR. Instead, it will return all of the bytes that
have been requested.
Note: py_getrandom() calls getrandom() with flags=0.
Berker Peksag [Wed, 29 Jul 2015 21:03:48 +0000 (00:03 +0300)]
Issue #24109: Include Tools/scripts/diff.py instead of duplicating it in difflib documentation.
Patch by Keith Gray.
Jason R. Coombs [Wed, 29 Jul 2015 18:29:26 +0000 (14:29 -0400)]
Merge with 3.4 for Issue #24729
Jason R. Coombs [Wed, 29 Jul 2015 18:25:58 +0000 (14:25 -0400)]
Merge
Robert Collins [Wed, 29 Jul 2015 18:16:46 +0000 (06:16 +1200)]
Issue #23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
Robert Collins [Wed, 29 Jul 2015 18:14:32 +0000 (06:14 +1200)]
Issue #23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
Jason R. Coombs [Wed, 29 Jul 2015 18:04:36 +0000 (14:04 -0400)]
Issue #24729: Correct reference to open function.
Victor Stinner [Wed, 29 Jul 2015 12:40:53 +0000 (14:40 +0200)]
Merge 3.4 (Misc/ACKS)
Victor Stinner [Wed, 29 Jul 2015 12:40:38 +0000 (14:40 +0200)]
Issue #23319: Add Matthieu Gautier to Misc/ACKS
Victor Stinner [Wed, 29 Jul 2015 12:35:12 +0000 (14:35 +0200)]
Merge 3.4 (ctypes)
Victor Stinner [Wed, 29 Jul 2015 12:33:52 +0000 (14:33 +0200)]
Issue #23319: Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
written by Matthieu Gautier.
Ned Deily [Wed, 29 Jul 2015 06:25:41 +0000 (23:25 -0700)]
Issue #19450: merge from 3.4
Ned Deily [Wed, 29 Jul 2015 06:22:23 +0000 (23:22 -0700)]
Issue #19450: Update OS X installer builds to use SQLite 3.8.11.
Robert Collins [Wed, 29 Jul 2015 00:53:30 +0000 (12:53 +1200)]
Issue #23254: Document how to close the TCPServer listening socket.
Patch from Martin Panter.
Robert Collins [Wed, 29 Jul 2015 00:52:40 +0000 (12:52 +1200)]
Issue #23254: Document how to close the TCPServer listening socket.
Patch from Martin Panter.
Victor Stinner [Wed, 29 Jul 2015 00:28:32 +0000 (02:28 +0200)]
What's New in Python 3.5: document os.urandom() changes
Victor Stinner [Tue, 28 Jul 2015 23:41:25 +0000 (01:41 +0200)]
What's New in Python 3.5: document socket.sendall() change on timeout
Victor Stinner [Tue, 28 Jul 2015 23:39:13 +0000 (01:39 +0200)]
What's New in Python 3.5: Document ssl methods change on timeout
Victor Stinner [Tue, 28 Jul 2015 23:11:10 +0000 (01:11 +0200)]
What's New in Python 3.5: move PEP 475 doc
Alessandro Cucci [Tue, 28 Jul 2015 19:00:10 +0000 (21:00 +0200)]
Issue #24729: Update tutorial to match implementation.
Steve Dower [Tue, 28 Jul 2015 18:09:40 +0000 (11:09 -0700)]
Issue #19450: Update Windows builds to use SQLite 3.8.11.0
Steve Dower [Tue, 28 Jul 2015 18:05:18 +0000 (11:05 -0700)]
Issue #19450: Update Windows builds to use SQLite 3.8.11.0
Raymond Hettinger [Tue, 28 Jul 2015 09:07:14 +0000 (02:07 -0700)]
merge
Raymond Hettinger [Tue, 28 Jul 2015 09:05:44 +0000 (02:05 -0700)]
Issue #24735: Fix invalid memory access in combinations_with_replacement()
Steve Dower [Mon, 27 Jul 2015 21:56:58 +0000 (14:56 -0700)]
Allow intermediate build directory to be overridden.
Victor Stinner [Mon, 27 Jul 2015 21:37:11 +0000 (23:37 +0200)]
Issue #24732, #23834: Fix sock_accept_impl() on Windows
accept() returns INVALID_SOCKET on error, it's not necessary a negative number.
Berker Peksag [Mon, 27 Jul 2015 21:08:24 +0000 (00:08 +0300)]
Issue #23441: rcompleter now prints a tab character instead of displaying
possible completions for an empty word.
Initial patch by Martin Sekera.
Berker Peksag [Mon, 27 Jul 2015 21:06:31 +0000 (00:06 +0300)]
Issue #23441: rcompleter now prints a tab character instead of displaying
possible completions for an empty word.
Initial patch by Martin Sekera.
Berker Peksag [Mon, 27 Jul 2015 13:48:06 +0000 (16:48 +0300)]
Issue #24728: Null merge
Berker Peksag [Mon, 27 Jul 2015 13:46:11 +0000 (16:46 +0300)]
Issue #24728: Fix building without threads.
Patch by Louis Dassy.
Stefan Krah [Mon, 27 Jul 2015 10:56:49 +0000 (12:56 +0200)]
Fix refleak.
Robert Collins [Sun, 26 Jul 2015 22:42:54 +0000 (10:42 +1200)]
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
Robert Collins [Sun, 26 Jul 2015 22:42:01 +0000 (10:42 +1200)]
Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
Larry Hastings [Sun, 26 Jul 2015 14:59:45 +0000 (07:59 -0700)]
Merge Python 3.5.0b4 changes back with 3.5 branch head.
Larry Hastings [Sun, 26 Jul 2015 14:55:08 +0000 (07:55 -0700)]
Post-release updates for Python 3.5.0b4.
Serhiy Storchaka [Sun, 26 Jul 2015 06:02:23 +0000 (09:02 +0300)]
Issue #24683: Fixed crashes in _json functions called with arguments of
inappropriate type.
Serhiy Storchaka [Sun, 26 Jul 2015 06:01:22 +0000 (09:01 +0300)]
Issue #24683: Fixed crashes in _json functions called with arguments of
inappropriate type.
Larry Hastings [Sat, 25 Jul 2015 21:23:29 +0000 (14:23 -0700)]
Added tag v3.5.0b4 for changeset
c0d641054635
Larry Hastings [Sat, 25 Jul 2015 21:22:13 +0000 (14:22 -0700)]
Version bump for Python 3.5.0b4.
Larry Hastings [Sat, 25 Jul 2015 21:17:35 +0000 (14:17 -0700)]
Updated pydoc topics for 3.5.0b4.
Berker Peksag [Sat, 25 Jul 2015 11:55:06 +0000 (14:55 +0300)]
Issue #21697: shutil.copytree() now correctly handles symbolic links that point to directories.
Patch by Eduardo Seabra and Thomas Kluyver.
Berker Peksag [Sat, 25 Jul 2015 11:53:48 +0000 (14:53 +0300)]
Issue #21697: shutil.copytree() now correctly handles symbolic links that point to directories.
Patch by Eduardo Seabra and Thomas Kluyver.
Berker Peksag [Sat, 25 Jul 2015 11:27:07 +0000 (14:27 +0300)]
Issue #24420: Fix documentation regression introduced by
f0a00ee094ff .
These functions accept same arguments as subprocess.Popen().
Patch by Martin Panter.
Berker Peksag [Sat, 25 Jul 2015 11:14:24 +0000 (14:14 +0300)]
Issue #24279: Update test_base64 to use test.support.script_helper.
Initial patch by Christie.
Berker Peksag [Sat, 25 Jul 2015 10:03:08 +0000 (13:03 +0300)]
Issue #24713: Use importlib.reload() in import reference document.
imp.reload() was deprecated in Python 3.4 and changed to call
importlib.reload().
Patch by Petr Viktorin.
Berker Peksag [Sat, 25 Jul 2015 10:02:37 +0000 (13:02 +0300)]
Issue #24713: Use importlib.reload() in import reference document.
imp.reload() was deprecated in Python 3.4 and changed to call
importlib.reload().
Patch by Petr Viktorin.
Serhiy Storchaka [Sat, 25 Jul 2015 09:10:21 +0000 (12:10 +0300)]
Issue #14373: Fixed segmentation fault when gc.collect() is called during
constructing lru_cache (C implementation).
Victor Stinner [Sat, 25 Jul 2015 00:43:31 +0000 (02:43 +0200)]
Merge 3.4
Victor Stinner [Sat, 25 Jul 2015 00:40:40 +0000 (02:40 +0200)]
asyncio: sync with github
* Fix ResourceWarning warnings in test_streams
* Return True from StreamReader.eof_received() to fix
http://bugs.python.org/issue24539 (but still needs a unittest).
Add StreamReader.__repr__() for easy debugging.
* remove unused imports
* Issue #234: Drop JoinableQueue on Python 3.5+
Victor Stinner [Sat, 25 Jul 2015 00:23:21 +0000 (02:23 +0200)]
asyncio: Add asyncio.compat module
Move compatibility helpers for the different Python versions to a new
asyncio.compat module.
Ned Deily [Fri, 24 Jul 2015 23:24:47 +0000 (16:24 -0700)]
Issue #24603: merge from 3.4
Ned Deily [Fri, 24 Jul 2015 23:21:18 +0000 (16:21 -0700)]
Issue #24603: Update the OS X 32-bit installer build to use OpenSSL 1.0.2d.
Berker Peksag [Fri, 24 Jul 2015 14:36:21 +0000 (17:36 +0300)]
Issue #24695: Fix a regression in traceback.print_exception()
If exc_traceback is None we shouldn't print a traceback header
like described in the documentation.
Serhiy Storchaka [Fri, 24 Jul 2015 06:05:59 +0000 (09:05 +0300)]
Issue #24620: Random.setstate() now validates the value of state last element.
Serhiy Storchaka [Fri, 24 Jul 2015 06:02:53 +0000 (09:02 +0300)]
Issue #24620: Random.setstate() now validates the value of state last element.
Meador Inge [Fri, 24 Jul 2015 03:49:37 +0000 (22:49 -0500)]
Issue #24485: Function source inspection fails on closures.
The fix for Issue #21217 introduced a regression that caused
`inspect.getsource` to return incorrect results on nested
functions. The root cause of the regression was due to
switching the implementation to analyze the underlying
bytecode instead of the source code.
This commit switches things back to analyzing the source code
in a more complete way. The original bug and the regression
are both fixed by the new source code analysis.
Robert Collins [Thu, 23 Jul 2015 16:10:27 +0000 (04:10 +1200)]
Add versionchanged information for mock_open.
Robert Collins [Thu, 23 Jul 2015 16:09:59 +0000 (04:09 +1200)]
Add versionchanged information for mock_open.
Robert Collins [Thu, 23 Jul 2015 15:48:45 +0000 (03:48 +1200)]
Issue #21750: Further fixup to be styled like other mock APIs.
Robert Collins [Thu, 23 Jul 2015 15:48:20 +0000 (03:48 +1200)]
Issue #21750: Further fixup to be styled like other mock APIs.
Yury Selivanov [Thu, 23 Jul 2015 14:10:00 +0000 (17:10 +0300)]
Issue #24485: Revert backwards compatibility breaking changes of #21217.
Yury Selivanov [Thu, 23 Jul 2015 12:58:37 +0000 (15:58 +0300)]
Issue #24692: Add more tests for types.coroutine
Yury Selivanov [Thu, 23 Jul 2015 12:01:58 +0000 (15:01 +0300)]
Issue #24619: Simplify async/await tokenization.
This commit simplifies async/await tokenization in tokenizer.c,
tokenize.py & lib2to3/tokenize.py. Previous solution was to keep
a stack of async-def & def blocks, whereas the new approach is just
to remember position of the outermost async-def block.
This change won't bring any parsing performance improvements, but
it makes the code much easier to read and validate.
Yury Selivanov [Thu, 23 Jul 2015 06:10:44 +0000 (09:10 +0300)]
Issue #24687: Plug refleak on SyntaxError in function parameters annotations.
Yury Selivanov [Thu, 23 Jul 2015 05:54:35 +0000 (08:54 +0300)]
Issue #24688: ast.get_docstring() for 'async def' functions.
Robert Collins [Wed, 22 Jul 2015 20:08:59 +0000 (08:08 +1200)]
Remove line numbers from unittest in susp-ignored.
Robert Collins [Wed, 22 Jul 2015 20:08:38 +0000 (08:08 +1200)]
Remove line numbers from unittest in susp-ignored.
Robert Collins [Wed, 22 Jul 2015 19:32:27 +0000 (07:32 +1200)]
Merge unittest docs suspicious fix.
Robert Collins [Wed, 22 Jul 2015 19:07:07 +0000 (07:07 +1200)]
Fix suspicious after the unittest docs change.
Robert Collins [Wed, 22 Jul 2015 18:39:06 +0000 (06:39 +1200)]
Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
Robert Collins [Wed, 22 Jul 2015 18:37:26 +0000 (06:37 +1200)]
Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
Berker Peksag [Wed, 22 Jul 2015 16:25:37 +0000 (19:25 +0300)]
Issue #23440: Improve http.server.SimpleHTTPRequestHandler tests
* Tests that index.html is served, rather than an automatic directory listing
* Tests that there is no extra data sent after the response
Patch by Martin Panter.
Yury Selivanov [Wed, 22 Jul 2015 11:48:57 +0000 (14:48 +0300)]
Issue #24619: More tests; fix nits in compiler.c
Yury Selivanov [Wed, 22 Jul 2015 10:33:45 +0000 (13:33 +0300)]
Issue #24619: New approach for tokenizing async/await.
This commit fixes how one-line async-defs and defs are tracked
by tokenizer. It allows to correctly parse invalid code such
as:
>>> async def f():
... def g(): pass
... async = 10
and valid code such as:
>>> async def f():
... async def g(): pass
... await z
As a consequence, is is now possible to have one-line
'async def foo(): await ..' functions:
>>> async def foo(): return await bar()
Zachary Ware [Wed, 22 Jul 2015 04:27:08 +0000 (23:27 -0500)]
Issue #24603: Update the Windows build to use OpenSSL 1.0.2d
Zachary Ware [Wed, 22 Jul 2015 04:20:47 +0000 (23:20 -0500)]
Issue #24603: Update the Windows build to use OpenSSL 1.0.2d
Zachary Ware [Wed, 22 Jul 2015 03:50:43 +0000 (22:50 -0500)]
Merge with 3.4
Zachary Ware [Wed, 22 Jul 2015 03:50:29 +0000 (22:50 -0500)]
rstlint: explicitly open files as UTF8
Zachary Ware [Wed, 22 Jul 2015 03:34:16 +0000 (22:34 -0500)]
Issue #24680: Merge with 3.4
Zachary Ware [Wed, 22 Jul 2015 03:33:16 +0000 (22:33 -0500)]
Issue #24680: Remove random backslash. Patch by cdz.
Serhiy Storchaka [Tue, 21 Jul 2015 19:40:18 +0000 (22:40 +0300)]
Issue #24678: Fixed raiseExceptions typo in logging tests.
Patch by Jacek Kołodziej.
Serhiy Storchaka [Tue, 21 Jul 2015 19:39:26 +0000 (22:39 +0300)]
Issue #24678: Fixed raiseExceptions typo in logging tests.
Patch by Jacek Kołodziej.
Yury Selivanov [Tue, 21 Jul 2015 16:01:52 +0000 (19:01 +0300)]
Issue #24669: Fix inspect.getsource() for 'async def' functions.
Patch by Kai Groner.
Berker Peksag [Tue, 21 Jul 2015 06:29:48 +0000 (09:29 +0300)]
Use setUpClass and tearDownClass correctly in test_os.
According to the documentation, they must be decorated as classmethods.
Steve Dower [Tue, 21 Jul 2015 04:34:45 +0000 (21:34 -0700)]
Fixes argument handling in build.bat and HHC search
Steve Dower [Tue, 21 Jul 2015 02:52:15 +0000 (19:52 -0700)]
Updates get_wix.py for newer version of WiX.
Terry Jan Reedy [Mon, 20 Jul 2015 21:45:22 +0000 (17:45 -0400)]
Merge with 3.4
Terry Jan Reedy [Mon, 20 Jul 2015 21:44:59 +0000 (17:44 -0400)]
Issue #20792: Expand idle_test.test_pathbowser. Tweak file to not copy twice.
Original patch by Saimadhav Heblikar.
Serhiy Storchaka [Mon, 20 Jul 2015 19:58:02 +0000 (22:58 +0300)]
Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind()
for single-byte argument on Linux.
Victor Stinner [Mon, 20 Jul 2015 15:13:16 +0000 (17:13 +0200)]
Merge 3.4
Victor Stinner [Mon, 20 Jul 2015 15:12:57 +0000 (17:12 +0200)]
Issue #24675: Avoid DeprecationWarning in test_os
Patch written by Martin Panter. I replace tearDown() with addCleanup().
Raymond Hettinger [Mon, 20 Jul 2015 07:10:48 +0000 (03:10 -0400)]
merge
Raymond Hettinger [Mon, 20 Jul 2015 07:09:22 +0000 (03:09 -0400)]
Issue #19663: Improve error message for defaultdict.
Serhiy Storchaka [Sat, 18 Jul 2015 20:27:00 +0000 (23:27 +0300)]
Issue #24580: Symbolic group references to open group in re patterns now are
explicitly forbidden as well as numeric group references.
Serhiy Storchaka [Sat, 18 Jul 2015 20:20:50 +0000 (23:20 +0300)]
Issue #24206: Fixed __eq__ and __ne__ methods of inspect classes.
Serhiy Storchaka [Sat, 18 Jul 2015 20:19:05 +0000 (23:19 +0300)]
Issue #24206: Fixed __eq__ and __ne__ methods of inspect classes.
Serhiy Storchaka [Sat, 18 Jul 2015 20:18:33 +0000 (23:18 +0300)]
Fixed typos in Misc/NEWS.
Benjamin Peterson [Sat, 18 Jul 2015 18:00:00 +0000 (11:00 -0700)]
merge 3.4 (#24655)
Benjamin Peterson [Sat, 18 Jul 2015 17:59:13 +0000 (10:59 -0700)]
improve style of the convert macro (#24655)
Patch by Brian Cain.