]> granicus.if.org Git - python/log
python
9 years agoIssue #24485: Revert backwards compatibility breaking changes of #21217.
Yury Selivanov [Thu, 23 Jul 2015 14:10:00 +0000 (17:10 +0300)]
Issue #24485: Revert backwards compatibility breaking changes of #21217.

9 years agoIssue #24692: Add more tests for types.coroutine
Yury Selivanov [Thu, 23 Jul 2015 12:58:37 +0000 (15:58 +0300)]
Issue #24692: Add more tests for types.coroutine

9 years agoIssue #24619: Simplify async/await tokenization.
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.

9 years agoIssue #24687: Plug refleak on SyntaxError in function parameters annotations.
Yury Selivanov [Thu, 23 Jul 2015 06:10:44 +0000 (09:10 +0300)]
Issue #24687: Plug refleak on SyntaxError in function parameters annotations.

9 years agoIssue #24688: ast.get_docstring() for 'async def' functions.
Yury Selivanov [Thu, 23 Jul 2015 05:54:35 +0000 (08:54 +0300)]
Issue #24688: ast.get_docstring() for 'async def' functions.

9 years agoRemove line numbers from unittest in susp-ignored.
Robert Collins [Wed, 22 Jul 2015 20:08:59 +0000 (08:08 +1200)]
Remove line numbers from unittest in susp-ignored.

9 years agoRemove 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.

9 years agoMerge unittest docs suspicious fix.
Robert Collins [Wed, 22 Jul 2015 19:32:27 +0000 (07:32 +1200)]
Merge unittest docs suspicious fix.

9 years agoFix suspicious after the unittest docs change.
Robert Collins [Wed, 22 Jul 2015 19:07:07 +0000 (07:07 +1200)]
Fix suspicious after the unittest docs change.

9 years agoIssue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
Robert Collins [Wed, 22 Jul 2015 18:39:06 +0000 (06:39 +1200)]
Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.

9 years agoIssue #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.

9 years agoIssue #23440: Improve http.server.SimpleHTTPRequestHandler tests
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.

9 years agoIssue #24619: More tests; fix nits in compiler.c
Yury Selivanov [Wed, 22 Jul 2015 11:48:57 +0000 (14:48 +0300)]
Issue #24619: More tests; fix nits in compiler.c

9 years agoIssue #24619: New approach for tokenizing async/await.
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()

9 years agoIssue #24603: Update the Windows build to use OpenSSL 1.0.2d
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

9 years agoIssue #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

9 years agoMerge with 3.4
Zachary Ware [Wed, 22 Jul 2015 03:50:43 +0000 (22:50 -0500)]
Merge with 3.4

9 years agorstlint: explicitly open files as UTF8
Zachary Ware [Wed, 22 Jul 2015 03:50:29 +0000 (22:50 -0500)]
rstlint: explicitly open files as UTF8

9 years agoIssue #24680: Merge with 3.4
Zachary Ware [Wed, 22 Jul 2015 03:34:16 +0000 (22:34 -0500)]
Issue #24680: Merge with 3.4

9 years agoIssue #24680: Remove random backslash. Patch by cdz.
Zachary Ware [Wed, 22 Jul 2015 03:33:16 +0000 (22:33 -0500)]
Issue #24680: Remove random backslash.  Patch by cdz.

9 years agoIssue #24678: Fixed raiseExceptions typo in logging tests.
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.

9 years agoIssue #24678: Fixed raiseExceptions typo in logging tests.
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.

9 years agoIssue #24669: Fix inspect.getsource() for 'async def' functions.
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.

9 years agoUse setUpClass and tearDownClass correctly in test_os.
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.

9 years agoFixes argument handling in build.bat and HHC search
Steve Dower [Tue, 21 Jul 2015 04:34:45 +0000 (21:34 -0700)]
Fixes argument handling in build.bat and HHC search

9 years agoUpdates get_wix.py for newer version of WiX.
Steve Dower [Tue, 21 Jul 2015 02:52:15 +0000 (19:52 -0700)]
Updates get_wix.py for newer version of WiX.

9 years agoMerge with 3.4
Terry Jan Reedy [Mon, 20 Jul 2015 21:45:22 +0000 (17:45 -0400)]
Merge with 3.4

9 years agoIssue #20792: Expand idle_test.test_pathbowser. Tweak file to not copy twice.
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.

9 years agoIssue #23573: Restored optimization of bytes.rfind() and bytearray.rfind()
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.

9 years agoMerge 3.4
Victor Stinner [Mon, 20 Jul 2015 15:13:16 +0000 (17:13 +0200)]
Merge 3.4

9 years agoIssue #24675: Avoid DeprecationWarning in test_os
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().

9 years agomerge
Raymond Hettinger [Mon, 20 Jul 2015 07:10:48 +0000 (03:10 -0400)]
merge

9 years agoIssue #19663: Improve error message for defaultdict.
Raymond Hettinger [Mon, 20 Jul 2015 07:09:22 +0000 (03:09 -0400)]
Issue #19663: Improve error message for defaultdict.

9 years agoIssue #24580: Symbolic group references to open group in re patterns now are
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.

9 years agoIssue #24206: Fixed __eq__ and __ne__ methods of inspect classes.
Serhiy Storchaka [Sat, 18 Jul 2015 20:20:50 +0000 (23:20 +0300)]
Issue #24206: Fixed __eq__ and __ne__ methods of inspect classes.

9 years agoIssue #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.

9 years agoFixed typos in Misc/NEWS.
Serhiy Storchaka [Sat, 18 Jul 2015 20:18:33 +0000 (23:18 +0300)]
Fixed typos in Misc/NEWS.

9 years agomerge 3.4 (#24655)
Benjamin Peterson [Sat, 18 Jul 2015 18:00:00 +0000 (11:00 -0700)]
merge 3.4 (#24655)

9 years agoimprove style of the convert macro (#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.

9 years agoIssue #24642: Improves help text displayed in the Windows installer.
Steve Dower [Sat, 18 Jul 2015 16:28:41 +0000 (09:28 -0700)]
Issue #24642: Improves help text displayed in the Windows installer.

9 years agoAdds support for an unattend.xml file to control the Windows installer options.
Steve Dower [Sat, 18 Jul 2015 16:28:19 +0000 (09:28 -0700)]
Adds support for an unattend.xml file to control the Windows installer options.

9 years agoAdds option to only install the launcher.
Steve Dower [Sat, 18 Jul 2015 16:27:52 +0000 (09:27 -0700)]
Adds option to only install the launcher.

9 years agoIssue #24642: Adds installer notes and links to What's New for 3.5
Steve Dower [Fri, 17 Jul 2015 23:48:48 +0000 (16:48 -0700)]
Issue #24642: Adds installer notes and links to What's New for 3.5

9 years agoRemoves my username from the documentation.
Steve Dower [Fri, 17 Jul 2015 18:59:35 +0000 (11:59 -0700)]
Removes my username from the documentation.

9 years agoFixes sys.path for applocal environments.
Steve Dower [Fri, 17 Jul 2015 18:59:21 +0000 (11:59 -0700)]
Fixes sys.path for applocal environments.

9 years agoTypo fix in mock.patch.
Robert Collins [Fri, 17 Jul 2015 10:00:28 +0000 (22:00 +1200)]
Typo fix in mock.patch.

Patch from https://github.com/testing-cabal/mock/issues/215

9 years agoTypo fix in mock.patch.
Robert Collins [Fri, 17 Jul 2015 09:58:36 +0000 (21:58 +1200)]
Typo fix in mock.patch.

Patch from https://github.com/testing-cabal/mock/issues/215

9 years agoIssue #21750: mock_open.read_data can now be read from each instance, as it
Robert Collins [Fri, 17 Jul 2015 08:10:23 +0000 (20:10 +1200)]
Issue #21750: mock_open.read_data can now be read from each instance, as it
could in Python 3.3.

9 years agoIssue #21750: mock_open.read_data can now be read from each instance, as it
Robert Collins [Fri, 17 Jul 2015 08:08:45 +0000 (20:08 +1200)]
Issue #21750: mock_open.read_data can now be read from each instance, as it
could in Python 3.3.

9 years agoAdds option to install launcher for all users even when installing Python just-for...
Steve Dower [Thu, 16 Jul 2015 23:33:55 +0000 (16:33 -0700)]
Adds option to install launcher for all users even when installing Python just-for-me. This helps mitigate issues when the incompatible Python 3.4 launcher is installed.
Enables installer builds with the the text marker.
Allows simple installs to include a custom description.

9 years agoMerge 3.4
Victor Stinner [Thu, 16 Jul 2015 20:20:19 +0000 (22:20 +0200)]
Merge 3.4

9 years agoCloses #23247: Fix a crash in the StreamWriter.reset() of CJK codecs
Victor Stinner [Thu, 16 Jul 2015 20:17:31 +0000 (22:17 +0200)]
Closes #23247: Fix a crash in the StreamWriter.reset() of CJK codecs

9 years agoIssue #24583: Fix crash when set is mutated while being updated.
Raymond Hettinger [Thu, 16 Jul 2015 06:50:14 +0000 (23:50 -0700)]
Issue #24583: Fix crash when set is mutated while being updated.

9 years agoIssue #24631: Fixed regression in the timeit modulu with multyline setup.
Serhiy Storchaka [Wed, 15 Jul 2015 19:11:36 +0000 (22:11 +0300)]
Issue #24631: Fixed regression in the timeit modulu with multyline setup.

9 years ago- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
Robert Collins [Tue, 14 Jul 2015 23:49:43 +0000 (11:49 +1200)]
- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.

Patch from Nicola Palumbo and Laurent De Buyst.

9 years ago- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
Robert Collins [Tue, 14 Jul 2015 23:42:28 +0000 (11:42 +1200)]
- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.

Patch from Nicola Palumbo and Laurent De Buyst.

9 years agoIssue #23661: unittest.mock side_effects can now be exceptions again.
Robert Collins [Tue, 14 Jul 2015 01:51:40 +0000 (13:51 +1200)]
Issue #23661: unittest.mock side_effects can now be exceptions again.

This was a regression vs Python 3.4. Patch from Ignacio Rossi

9 years agomerge 3.4 (#24610)
Benjamin Peterson [Sat, 11 Jul 2015 23:33:39 +0000 (16:33 -0700)]
merge 3.4 (#24610)

9 years agofix normalization example (closes #24610)
Benjamin Peterson [Sat, 11 Jul 2015 23:32:55 +0000 (16:32 -0700)]
fix normalization example (closes #24610)

Patch by Chris Angelico

9 years agoIssue #24608: chunk.Chunk.read() now always returns bytes, not str.
Serhiy Storchaka [Fri, 10 Jul 2015 19:26:08 +0000 (22:26 +0300)]
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.

9 years agoIssue #24608: chunk.Chunk.read() now always returns bytes, not str.
Serhiy Storchaka [Fri, 10 Jul 2015 19:24:47 +0000 (22:24 +0300)]
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.

9 years agoCorrected docstrings of audio modules. writeframes() accepts bytes, not str.
Serhiy Storchaka [Fri, 10 Jul 2015 19:13:52 +0000 (22:13 +0300)]
Corrected docstrings of audio modules.  writeframes() accepts bytes, not str.

9 years agoCorrected docstrings of audio modules. writeframes() accepts bytes, not str.
Serhiy Storchaka [Fri, 10 Jul 2015 19:13:40 +0000 (22:13 +0300)]
Corrected docstrings of audio modules.  writeframes() accepts bytes, not str.

9 years agoMerge 3.4 (asyncio)
Victor Stinner [Thu, 9 Jul 2015 21:14:50 +0000 (23:14 +0200)]
Merge 3.4 (asyncio)

9 years agoasyncio: sync with github asyncio
Victor Stinner [Thu, 9 Jul 2015 21:13:50 +0000 (23:13 +0200)]
asyncio: sync with github asyncio

* queues: get coroutine from asyncio.coroutines, not from asyncio.tasks
* tets: replace tulip with asyncio in comments

9 years ago- Issue #15014: SMTP.auth() and SMTP.login() now support RFC 4954's optional
Barry Warsaw [Thu, 9 Jul 2015 14:39:55 +0000 (10:39 -0400)]
- Issue #15014: SMTP.auth() and SMTP.login() now support RFC 4954's optional
  initial-response argument to the SMTP AUTH command.

9 years agoFixes installer rebuild, snapshot versioning, and the README.txt file.
Steve Dower [Thu, 9 Jul 2015 05:43:48 +0000 (22:43 -0700)]
Fixes installer rebuild, snapshot versioning, and the README.txt file.

9 years agoIssue #24585: Enables build-to-build upgrades that preserve settings.
Steve Dower [Thu, 9 Jul 2015 03:18:44 +0000 (20:18 -0700)]
Issue #24585: Enables build-to-build upgrades that preserve settings.
Rather than using Burn "Persisted" variables we now add registry keys for each added feature. These can be detected by the installer regardless of which version installed them, and we use this for Modify and Upgrade. In particular, Upgrades can't access the Persisted variables, but can find well-known registry keys.
There are also some changes to the bootstrap app to properly handle upgrades.
Finally, a few minor improvements to the Windows build to keep things tidier.

9 years agoAdded regression test for issue24581.
Serhiy Storchaka [Wed, 8 Jul 2015 20:02:18 +0000 (23:02 +0300)]
Added regression test for issue24581.

9 years agoAdded regression test for issue24581.
Serhiy Storchaka [Wed, 8 Jul 2015 19:58:55 +0000 (22:58 +0300)]
Added regression test for issue24581.

9 years agoCloses 24584: Windows installer incorrectly detects CRT version on Windows 10
Steve Dower [Wed, 8 Jul 2015 03:47:28 +0000 (20:47 -0700)]
Closes 24584: Windows installer incorrectly detects CRT version on Windows 10

9 years agoUpdate ignored suspicious markup
Zachary Ware [Tue, 7 Jul 2015 05:34:25 +0000 (00:34 -0500)]
Update ignored suspicious markup

9 years agoFix versionchanged directives
Zachary Ware [Tue, 7 Jul 2015 05:11:36 +0000 (00:11 -0500)]
Fix versionchanged directives

9 years agoFix usage of the default role.
Zachary Ware [Tue, 7 Jul 2015 05:07:25 +0000 (00:07 -0500)]
Fix usage of the default role.

9 years agoMerge 3.4
Zachary Ware [Tue, 7 Jul 2015 05:00:43 +0000 (00:00 -0500)]
Merge 3.4

9 years agoFix usage of the default role.
Zachary Ware [Tue, 7 Jul 2015 04:58:12 +0000 (23:58 -0500)]
Fix usage of the default role.

The changes to Doc/library/unittest.mock.rst are almost entirely a
selective backport of the 3.5 page.

9 years agoMerge 3.4
Zachary Ware [Tue, 7 Jul 2015 04:30:16 +0000 (23:30 -0500)]
Merge 3.4

9 years agoFix suspicious markup
Zachary Ware [Tue, 7 Jul 2015 04:27:15 +0000 (23:27 -0500)]
Fix suspicious markup

9 years agoCorrected empty lines in Misc/NEWS.
Serhiy Storchaka [Mon, 6 Jul 2015 17:02:50 +0000 (20:02 +0300)]
Corrected empty lines in Misc/NEWS.

9 years agoCorrected empty lines in Misc/NEWS.
Serhiy Storchaka [Mon, 6 Jul 2015 16:58:11 +0000 (19:58 +0300)]
Corrected empty lines in Misc/NEWS.

9 years agomerge 3.4
Benjamin Peterson [Mon, 6 Jul 2015 16:28:40 +0000 (11:28 -0500)]
merge 3.4

9 years ago'not' is very important here
Benjamin Peterson [Mon, 6 Jul 2015 16:28:07 +0000 (11:28 -0500)]
'not' is very important here

9 years agomerge 3.4
Benjamin Peterson [Mon, 6 Jul 2015 14:41:07 +0000 (09:41 -0500)]
merge 3.4

9 years agotighten warning
Benjamin Peterson [Mon, 6 Jul 2015 14:40:43 +0000 (09:40 -0500)]
tighten warning

9 years agoIssue #18684: Fixed reading out of the buffer in the re module.
Serhiy Storchaka [Mon, 6 Jul 2015 11:03:01 +0000 (14:03 +0300)]
Issue #18684: Fixed reading out of the buffer in the re module.

9 years agoIssue #18684: Fixed reading out of the buffer in the re module.
Serhiy Storchaka [Mon, 6 Jul 2015 10:58:33 +0000 (13:58 +0300)]
Issue #18684: Fixed reading out of the buffer in the re module.

9 years agoMerge with 3.4: Issue #24259: tarfile now raises a ReadError if an archive is truncat...
Lars Gustäbel [Mon, 6 Jul 2015 07:29:41 +0000 (09:29 +0200)]
Merge with 3.4: Issue #24259: tarfile now raises a ReadError if an archive is truncated inside a data segment.

9 years agoIssue #24259: tarfile now raises a ReadError if an archive is truncated inside a...
Lars Gustäbel [Mon, 6 Jul 2015 07:27:24 +0000 (09:27 +0200)]
Issue #24259: tarfile now raises a ReadError if an archive is truncated inside a data segment.

9 years agoIssue #24540: merger from 3.4
Ned Deily [Sun, 5 Jul 2015 18:45:31 +0000 (11:45 -0700)]
Issue #24540: merger from 3.4

9 years agoIssue #24540: fix typo in json.dumps docstring
Ned Deily [Sun, 5 Jul 2015 18:45:01 +0000 (11:45 -0700)]
Issue #24540: fix typo in json.dumps docstring

9 years agoMerge with ongoing work in 3.5 branch.
Larry Hastings [Sun, 5 Jul 2015 17:31:09 +0000 (10:31 -0700)]
Merge with ongoing work in 3.5 branch.

9 years agoPost-release fixes for Python 3.5.0b3.
Larry Hastings [Sun, 5 Jul 2015 17:26:00 +0000 (10:26 -0700)]
Post-release fixes for Python 3.5.0b3.

9 years agomerge heads
Benjamin Peterson [Sun, 5 Jul 2015 15:39:13 +0000 (10:39 -0500)]
merge heads

9 years agoset items in dict displays from left to right (closes #24569)
Benjamin Peterson [Sun, 5 Jul 2015 15:37:25 +0000 (10:37 -0500)]
set items in dict displays from left to right (closes #24569)

9 years agoadd news section for next beta
Benjamin Peterson [Sun, 5 Jul 2015 15:37:00 +0000 (10:37 -0500)]
add news section for next beta

9 years agoFixes rebuild of strings for Windows installer.
Steve Dower [Sun, 5 Jul 2015 14:24:17 +0000 (07:24 -0700)]
Fixes rebuild of strings for Windows installer.

9 years agomerge 3.4
Benjamin Peterson [Sun, 5 Jul 2015 03:53:37 +0000 (22:53 -0500)]
merge 3.4

9 years agomerge heads
Benjamin Peterson [Sun, 5 Jul 2015 03:53:11 +0000 (22:53 -0500)]
merge heads

9 years agomerge heads
Benjamin Peterson [Sun, 5 Jul 2015 03:52:33 +0000 (22:52 -0500)]
merge heads

9 years agoAdded tag v3.5.0b3 for changeset 0035fcd9b924
Larry Hastings [Sun, 5 Jul 2015 02:13:23 +0000 (19:13 -0700)]
Added tag v3.5.0b3 for changeset 0035fcd9b924