]> granicus.if.org Git - python/log
python
9 years agoIgnore user environment/site-packages for ensurepip and compile_all
Steve Dower [Sat, 4 Jul 2015 18:48:59 +0000 (11:48 -0700)]
Ignore user environment/site-packages for ensurepip and compile_all
Remove build condition to prevent old strings hanging around
Add -h option to build.bat

9 years agoIgnore user environment/site-packages for ensurepip and compile_all
Steve Dower [Sat, 4 Jul 2015 18:48:37 +0000 (11:48 -0700)]
Ignore user environment/site-packages for ensurepip and compile_all
Remove build condition to prevent old strings hanging around
Add -h option to build.bat

9 years agoMake sure the dummy percentage calculation won't overflow.
Raymond Hettinger [Sat, 4 Jul 2015 18:28:35 +0000 (11:28 -0700)]
Make sure the dummy percentage calculation won't overflow.

9 years agoMinor cleanup.
Raymond Hettinger [Sat, 4 Jul 2015 15:46:31 +0000 (08:46 -0700)]
Minor cleanup.

9 years agoUpdates to the OS X installer (merge from 3.5)
Ned Deily [Sat, 4 Jul 2015 06:55:23 +0000 (23:55 -0700)]
Updates to the OS X installer (merge from 3.5)

9 years agoUpdates to the OS X installer for 3.5.0b3:
Ned Deily [Sat, 4 Jul 2015 06:53:51 +0000 (23:53 -0700)]
Updates to the OS X installer for 3.5.0b3:
- update installer ReadMe file
- suppress installer per-file byte-compilation messages to system log
- speed up installer byte-compilation
- isolate ensurepip install from user site-packages

9 years agoIssue #24432: merge from 3.5
Ned Deily [Sat, 4 Jul 2015 06:47:02 +0000 (23:47 -0700)]
Issue #24432: merge from 3.5

9 years agoIssue #24432: Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
Ned Deily [Sat, 4 Jul 2015 06:43:22 +0000 (23:43 -0700)]
Issue #24432: Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.

9 years agoMinor nit: Make the style of checking error return values more consistent.
Raymond Hettinger [Sat, 4 Jul 2015 06:37:16 +0000 (23:37 -0700)]
Minor nit:  Make the style of checking error return values more consistent.

9 years agoIssue #24432: Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
Ned Deily [Sat, 4 Jul 2015 06:35:00 +0000 (23:35 -0700)]
Issue #24432: Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.

9 years agoMinor factoring: move redundant resize scaling logic into the resize function.
Raymond Hettinger [Sat, 4 Jul 2015 03:00:03 +0000 (20:00 -0700)]
Minor factoring:  move redundant resize scaling logic into the resize function.

9 years agoCall set_lookkey() directly to avoid unnecessary memory spills and reloads.
Raymond Hettinger [Sat, 4 Jul 2015 01:31:09 +0000 (18:31 -0700)]
Call set_lookkey() directly to avoid unnecessary memory spills and reloads.

9 years agoMove insertion resize logic into set_insert_key().
Raymond Hettinger [Sat, 4 Jul 2015 00:21:17 +0000 (17:21 -0700)]
Move insertion resize logic into set_insert_key().

Simplifies the code a little bit and does the resize check
only when a new key is added (giving a small speed up in
the case where the key already exists).

Fixes possible bug in set_merge() where the set_insert_key()
call relies on a big resize at the start to make enough room
for the keys but is vulnerable to a comparision callback that
could cause the table to shrink in the middle of the merge.

Also, changed the resize threshold from two-thirds of the
mask+1 to just two-thirds.  The plus one offset gave no
real benefit (afterall, the two-thirds mark is just a
heuristic and isn't a precise cut-off).

9 years agoIssue #24432: Update Windows builds to use OpenSSL 1.0.2c.
Steve Dower [Fri, 3 Jul 2015 22:17:17 +0000 (15:17 -0700)]
Issue #24432: Update Windows builds to use OpenSSL 1.0.2c.

9 years agoIssue #24432: Update Windows builds to use OpenSSL 1.0.2c.
Steve Dower [Fri, 3 Jul 2015 22:16:37 +0000 (15:16 -0700)]
Issue #24432: Update Windows builds to use OpenSSL 1.0.2c.

9 years agoIssue #24432: Update Windows builds to use OpenSSL 1.0.2c.
Steve Dower [Fri, 3 Jul 2015 22:13:48 +0000 (15:13 -0700)]
Issue #24432: Update Windows builds to use OpenSSL 1.0.2c.

9 years agoFixes warnings when building python3.dll due to the .def file accumulating multiple...
Steve Dower [Fri, 3 Jul 2015 19:21:29 +0000 (12:21 -0700)]
Fixes warnings when building python3.dll due to the .def file accumulating multiple copies of each line.
Adds shebang line to prepare_ssl so it will run with py.exe.

9 years agoMerge 3.5 (Issue #24400)
Yury Selivanov [Fri, 3 Jul 2015 17:11:54 +0000 (13:11 -0400)]
Merge 3.5 (Issue #24400)

9 years agoIssue #24400: Resurrect inspect.isawaitable()
Yury Selivanov [Fri, 3 Jul 2015 17:11:35 +0000 (13:11 -0400)]
Issue #24400: Resurrect inspect.isawaitable()

collections.abc.Awaitable and collections.abc.Coroutine no longer
use __instancecheck__ hook to detect generator-based coroutines.

inspect.isawaitable() can be used to detect generator-based coroutines
and to distinguish them from regular generator objects.

9 years agoFixes warnings when building python3.dll due to the .def file accumulating multiple...
Steve Dower [Fri, 3 Jul 2015 16:08:47 +0000 (09:08 -0700)]
Fixes warnings when building python3.dll due to the .def file accumulating multiple copies of each line.
Adds shebang line to prepare_ssl so it will run with py.exe.

9 years agoMerge fix for #24458 from 3.5
Nick Coghlan [Fri, 3 Jul 2015 09:52:05 +0000 (19:52 +1000)]
Merge fix for #24458 from 3.5

9 years agoClose #24458: PEP 489 documentation
Nick Coghlan [Fri, 3 Jul 2015 09:49:15 +0000 (19:49 +1000)]
Close #24458: PEP 489 documentation

Patch by Petr Viktorin.

9 years agoMerge 3.5
Yury Selivanov [Fri, 3 Jul 2015 05:16:20 +0000 (01:16 -0400)]
Merge 3.5

9 years agoAdd a rudimentary test for StopAsyncIteration in test_exceptions.
Yury Selivanov [Fri, 3 Jul 2015 05:16:04 +0000 (01:16 -0400)]
Add a rudimentary test for StopAsyncIteration in test_exceptions.

9 years agoMerge 3.5 (Issue #19235)
Yury Selivanov [Fri, 3 Jul 2015 05:10:11 +0000 (01:10 -0400)]
Merge 3.5 (Issue #19235)

9 years agoIssue #19235: Add new RecursionError exception. Patch by Georg Brandl.
Yury Selivanov [Fri, 3 Jul 2015 05:04:23 +0000 (01:04 -0400)]
Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.

9 years agoMerge 3.5 (Issue #24450)
Yury Selivanov [Fri, 3 Jul 2015 04:42:01 +0000 (00:42 -0400)]
Merge 3.5 (Issue #24450)

9 years agoMerge 3.4 (Issue #24450)
Yury Selivanov [Fri, 3 Jul 2015 04:41:40 +0000 (00:41 -0400)]
Merge 3.4 (Issue #24450)

9 years agoIssue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper
Yury Selivanov [Fri, 3 Jul 2015 04:41:16 +0000 (00:41 -0400)]
Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper

9 years agoMerge 3.5 (Issue #24450)
Yury Selivanov [Fri, 3 Jul 2015 04:35:29 +0000 (00:35 -0400)]
Merge 3.5 (Issue #24450)

9 years agoIssue #24450: Proxy cr_await and gi_yieldfrom in @types.coroutine
Yury Selivanov [Fri, 3 Jul 2015 04:35:02 +0000 (00:35 -0400)]
Issue #24450: Proxy cr_await and gi_yieldfrom in @types.coroutine

9 years agoMerge 3.5 (Issue #24450)
Yury Selivanov [Fri, 3 Jul 2015 04:24:14 +0000 (00:24 -0400)]
Merge 3.5 (Issue #24450)

9 years agoIssue #24450: Add gi_yieldfrom to generators; cr_await to coroutines.
Yury Selivanov [Fri, 3 Jul 2015 04:23:30 +0000 (00:23 -0400)]
Issue #24450: Add gi_yieldfrom to generators; cr_await to coroutines.

Patch by Benno Leslie and Yury Selivanov.

9 years agomerge 3.5
Benjamin Peterson [Thu, 2 Jul 2015 21:58:38 +0000 (16:58 -0500)]
merge 3.5

9 years agomerge 3.4
Benjamin Peterson [Thu, 2 Jul 2015 21:58:31 +0000 (16:58 -0500)]
merge 3.4

9 years agouse correct __new__ method (closes #24552)
Benjamin Peterson [Thu, 2 Jul 2015 21:58:22 +0000 (16:58 -0500)]
use correct __new__ method (closes #24552)

9 years agomerge 3.5 (#24552)
Benjamin Peterson [Thu, 2 Jul 2015 21:19:05 +0000 (16:19 -0500)]
merge 3.5 (#24552)

9 years agomerge 3.4 (#24552)
Benjamin Peterson [Thu, 2 Jul 2015 21:18:58 +0000 (16:18 -0500)]
merge 3.4 (#24552)

9 years agofix use after free (closes #24552)
Benjamin Peterson [Thu, 2 Jul 2015 21:18:38 +0000 (16:18 -0500)]
fix use after free (closes #24552)

9 years agoMerge from 3.5 (#24543).
Stefan Krah [Thu, 2 Jul 2015 18:28:45 +0000 (20:28 +0200)]
Merge from 3.5 (#24543).

9 years agoIssue #24543: Use AC_LINK instead of AC_COMPILE in order to prevent false
Stefan Krah [Thu, 2 Jul 2015 18:27:56 +0000 (20:27 +0200)]
Issue #24543: Use AC_LINK instead of AC_COMPILE in order to prevent false
positives with the -flto option (gcc >= 4.9.0 and clang).

9 years agoMerge with 3.5: Issue #24514: tarfile now tolerates number fields consisting of only...
Lars Gustäbel [Thu, 2 Jul 2015 17:42:09 +0000 (19:42 +0200)]
Merge with 3.5: Issue #24514: tarfile now tolerates number fields consisting of only whitespace.

9 years agoMerge with 3.4: Issue #24514: tarfile now tolerates number fields consisting of only...
Lars Gustäbel [Thu, 2 Jul 2015 17:41:03 +0000 (19:41 +0200)]
Merge with 3.4: Issue #24514: tarfile now tolerates number fields consisting of only whitespace.

9 years agoIssue #24514: tarfile now tolerates number fields consisting of only whitespace.
Lars Gustäbel [Thu, 2 Jul 2015 17:38:38 +0000 (19:38 +0200)]
Issue #24514: tarfile now tolerates number fields consisting of only whitespace.

9 years agomerge 3.5
Benjamin Peterson [Thu, 2 Jul 2015 03:36:37 +0000 (22:36 -0500)]
merge 3.5

9 years agoMerge 3.4
Benjamin Peterson [Thu, 2 Jul 2015 03:36:29 +0000 (22:36 -0500)]
Merge 3.4

9 years agoremove stray '(' (closes #24547)
Benjamin Peterson [Thu, 2 Jul 2015 03:36:21 +0000 (22:36 -0500)]
remove stray '(' (closes #24547)

9 years agoMerge 3.5
Yury Selivanov [Thu, 2 Jul 2015 01:07:20 +0000 (21:07 -0400)]
Merge 3.5

9 years agodocs/conf: Undo changes in b2a3baa1c2b0; issue #24400
Yury Selivanov [Thu, 2 Jul 2015 01:06:59 +0000 (21:06 -0400)]
docs/conf: Undo changes in b2a3baa1c2b0; issue #24400

9 years agoMerge 3.5 (issue #24400)
Yury Selivanov [Wed, 1 Jul 2015 16:49:17 +0000 (12:49 -0400)]
Merge 3.5 (issue #24400)

9 years agoIssue #24400: Mention that __instancecheck__ is used in abc.Awaitable and Coroutine
Yury Selivanov [Wed, 1 Jul 2015 16:49:00 +0000 (12:49 -0400)]
Issue #24400: Mention that __instancecheck__ is used in abc.Awaitable and Coroutine

9 years agoMerge 3.5
Yury Selivanov [Wed, 1 Jul 2015 16:30:26 +0000 (12:30 -0400)]
Merge 3.5

9 years agoIssue #24400: Add one more unittest for CoroutineType.__await__
Yury Selivanov [Wed, 1 Jul 2015 16:29:55 +0000 (12:29 -0400)]
Issue #24400: Add one more unittest for CoroutineType.__await__

9 years agomerge in setuptools/pip update
Donald Stufft [Wed, 1 Jul 2015 15:31:38 +0000 (11:31 -0400)]
merge in setuptools/pip update

9 years agomerge in setuptools/pip update
Donald Stufft [Wed, 1 Jul 2015 15:31:13 +0000 (11:31 -0400)]
merge in setuptools/pip update

9 years agoUpdate setuptools to 18.0.1 and pip to 7.1.0
Donald Stufft [Wed, 1 Jul 2015 15:30:50 +0000 (11:30 -0400)]
Update setuptools to 18.0.1 and pip to 7.1.0

9 years agoMerge 3.5 (Issue #24487)
Yury Selivanov [Wed, 1 Jul 2015 02:13:56 +0000 (22:13 -0400)]
Merge 3.5 (Issue #24487)

9 years agoIssue #24487: Rename async() -> ensure_future() in asyncio docs.
Yury Selivanov [Wed, 1 Jul 2015 02:13:22 +0000 (22:13 -0400)]
Issue #24487: Rename async() -> ensure_future() in asyncio docs.

Patch by Martin Panter.

9 years agoMerge 3.5
Yury Selivanov [Wed, 1 Jul 2015 02:06:55 +0000 (22:06 -0400)]
Merge 3.5

9 years agoIssue #24541: Drop test_inspect.test_eightteen unittest; update docs
Yury Selivanov [Wed, 1 Jul 2015 02:06:42 +0000 (22:06 -0400)]
Issue #24541: Drop test_inspect.test_eightteen unittest; update docs

Suggested by Martin Panter.

9 years agoMerge 3.5
Yury Selivanov [Wed, 1 Jul 2015 01:45:03 +0000 (21:45 -0400)]
Merge 3.5

9 years agoIssue #24541: Update comment in test_inspect.test_eightteen
Yury Selivanov [Wed, 1 Jul 2015 01:44:52 +0000 (21:44 -0400)]
Issue #24541: Update comment in test_inspect.test_eightteen

9 years agoMerge 3.5 (Issue #24400)
Yury Selivanov [Wed, 1 Jul 2015 01:19:00 +0000 (21:19 -0400)]
Merge 3.5 (Issue #24400)

9 years agoIssue #24400: Fix failing unittest
Yury Selivanov [Wed, 1 Jul 2015 01:18:27 +0000 (21:18 -0400)]
Issue #24400: Fix failing unittest

9 years agoMerge 3.5 (NEWS)
Yury Selivanov [Tue, 30 Jun 2015 22:25:55 +0000 (18:25 -0400)]
Merge 3.5 (NEWS)

9 years agoNote removal of inspect.isawaitable() in the NEWS file
Yury Selivanov [Tue, 30 Jun 2015 22:25:36 +0000 (18:25 -0400)]
Note removal of inspect.isawaitable() in the NEWS file

9 years agoMerge 3.5 (Issue #24400)
Yury Selivanov [Tue, 30 Jun 2015 22:19:18 +0000 (18:19 -0400)]
Merge 3.5 (Issue #24400)

9 years agoIssue #24400: Remove inspect.isawaitable().
Yury Selivanov [Tue, 30 Jun 2015 22:19:01 +0000 (18:19 -0400)]
Issue #24400: Remove inspect.isawaitable().

isawaitable() was added before collections.abc.Awaitable; now,
with Awaitable, it is no longer needed (we don't have ishashable()
or isiterable() methods in the inspect module either).

9 years agoMerge 3.5
Yury Selivanov [Tue, 30 Jun 2015 16:51:29 +0000 (12:51 -0400)]
Merge 3.5

9 years agotest_coroutines: remove whitespace
Yury Selivanov [Tue, 30 Jun 2015 16:51:12 +0000 (12:51 -0400)]
test_coroutines: remove whitespace

9 years agoMerge 3.5 (Issue #24528)
Yury Selivanov [Tue, 30 Jun 2015 16:49:18 +0000 (12:49 -0400)]
Merge 3.5 (Issue #24528)

9 years agoIssue #24528: Improve error message for awaits in comprehensions
Yury Selivanov [Tue, 30 Jun 2015 16:49:04 +0000 (12:49 -0400)]
Issue #24528: Improve error message for awaits in comprehensions

9 years agoIssue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
Serhiy Storchaka [Mon, 29 Jun 2015 20:11:51 +0000 (23:11 +0300)]
Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method.  Direct call of doctype() now issues a warning.  Parser's
doctype() now is not called if target's doctype() is called.  Based on patch
by Martin Panter.

9 years agoIssue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
Serhiy Storchaka [Mon, 29 Jun 2015 20:08:52 +0000 (23:08 +0300)]
Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method.  Direct call of doctype() now issues a warning.  Parser's
doctype() now is not called if target's doctype() is called.  Based on patch
by Martin Panter.

9 years agoIssue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
Serhiy Storchaka [Mon, 29 Jun 2015 19:35:58 +0000 (22:35 +0300)]
Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method.  Direct call of doctype() now issues a warning.  Parser's
doctype() now is not called if target's doctype() is called.  Based on patch
by Martin Panter.

9 years agoIssue #24467: Fixed possible buffer over-read in bytearray. The bytearray
Serhiy Storchaka [Mon, 29 Jun 2015 18:18:55 +0000 (21:18 +0300)]
Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.

9 years agoIssue #24467: Fixed possible buffer over-read in bytearray. The bytearray
Serhiy Storchaka [Mon, 29 Jun 2015 18:18:01 +0000 (21:18 +0300)]
Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.

9 years agoIssue #24467: Fixed possible buffer over-read in bytearray. The bytearray
Serhiy Storchaka [Mon, 29 Jun 2015 18:14:06 +0000 (21:14 +0300)]
Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.

9 years agoIssue #20387: Merge with 3.5
Jason R. Coombs [Sun, 28 Jun 2015 15:15:13 +0000 (11:15 -0400)]
Issue #20387: Merge with 3.5

9 years agoIssue #20387: Merge test and patch from 3.4.4
Jason R. Coombs [Sun, 28 Jun 2015 15:13:30 +0000 (11:13 -0400)]
Issue #20387: Merge test and patch from 3.4.4

9 years agoIssue #20387: Merge
Jason R. Coombs [Sun, 28 Jun 2015 15:10:29 +0000 (11:10 -0400)]
Issue #20387: Merge

9 years agoIssue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
Serhiy Storchaka [Sun, 28 Jun 2015 14:56:28 +0000 (17:56 +0300)]
Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
functions of the audioop module.

9 years agoIssue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
Serhiy Storchaka [Sun, 28 Jun 2015 14:55:33 +0000 (17:55 +0300)]
Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
functions of the audioop module.

9 years agoIssue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
Serhiy Storchaka [Sun, 28 Jun 2015 14:52:09 +0000 (17:52 +0300)]
Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
functions of the audioop module.

9 years agoIssue #20387: Merge patch and test
Jason R. Coombs [Sun, 28 Jun 2015 14:23:11 +0000 (10:23 -0400)]
Issue #20387: Merge patch and test

9 years agoIssue #24336: The contextmanager decorator now works with functions with
Serhiy Storchaka [Sun, 28 Jun 2015 14:09:11 +0000 (17:09 +0300)]
Issue #24336: The contextmanager decorator now works with functions with
keyword arguments called "func" and "self".  Patch by Martin Panter.

9 years agoIssue #24336: The contextmanager decorator now works with functions with
Serhiy Storchaka [Sun, 28 Jun 2015 14:08:35 +0000 (17:08 +0300)]
Issue #24336: The contextmanager decorator now works with functions with
keyword arguments called "func" and "self".  Patch by Martin Panter.

9 years agoIssue #24336: The contextmanager decorator now works with functions with
Serhiy Storchaka [Sun, 28 Jun 2015 14:06:07 +0000 (17:06 +0300)]
Issue #24336: The contextmanager decorator now works with functions with
keyword arguments called "func" and "self".  Patch by Martin Panter.

9 years agoMinor refactoring. Move reference count logic into function that adds entry.
Raymond Hettinger [Sun, 28 Jun 2015 05:03:35 +0000 (22:03 -0700)]
Minor refactoring.  Move reference count logic into function that adds entry.

9 years agomerge 3.5
Benjamin Peterson [Sat, 27 Jun 2015 20:46:31 +0000 (15:46 -0500)]
merge 3.5

9 years agoupgrade to Unicode 8.0.0
Benjamin Peterson [Sat, 27 Jun 2015 20:45:56 +0000 (15:45 -0500)]
upgrade to Unicode 8.0.0

9 years agomerge 3.5 (#24522)
Benjamin Peterson [Sat, 27 Jun 2015 20:02:02 +0000 (15:02 -0500)]
merge 3.5 (#24522)

9 years agoprevent integer overflow in escape_unicode (closes #24522)
Benjamin Peterson [Sat, 27 Jun 2015 20:01:51 +0000 (15:01 -0500)]
prevent integer overflow in escape_unicode (closes #24522)

9 years agomerge 3.5
Benjamin Peterson [Sat, 27 Jun 2015 19:26:29 +0000 (14:26 -0500)]
merge 3.5

9 years agomerge 3.4
Benjamin Peterson [Sat, 27 Jun 2015 19:26:21 +0000 (14:26 -0500)]
merge 3.4

9 years agomerge 3.3
Benjamin Peterson [Sat, 27 Jun 2015 19:26:15 +0000 (14:26 -0500)]
merge 3.3

9 years agoadd issue number
Benjamin Peterson [Sat, 27 Jun 2015 19:25:50 +0000 (14:25 -0500)]
add issue number

9 years agomerge 3.5
Benjamin Peterson [Sat, 27 Jun 2015 19:18:44 +0000 (14:18 -0500)]
merge 3.5

9 years agomerge 3.4
Benjamin Peterson [Sat, 27 Jun 2015 19:18:23 +0000 (14:18 -0500)]
merge 3.4

9 years agomerge 3.3
Benjamin Peterson [Sat, 27 Jun 2015 18:56:46 +0000 (13:56 -0500)]
merge 3.3