]> granicus.if.org Git - python/log
python
9 years agoIssue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
Serhiy Storchaka [Sat, 30 May 2015 14:45:22 +0000 (17:45 +0300)]
Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.

9 years agoIssue #24326: Fixed audioop.ratecv() with non-default weightB argument.
Serhiy Storchaka [Fri, 29 May 2015 21:53:26 +0000 (00:53 +0300)]
Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.
Original patch by David Moore.

9 years agoasyncio: Drop some useless code from tasks.py.
Yury Selivanov [Thu, 28 May 2015 14:52:19 +0000 (10:52 -0400)]
asyncio: Drop some useless code from tasks.py.

See also issue 24017.

9 years agoIssue 24298: Fix signature() to properly unwrap wrappers around bound methods
Yury Selivanov [Thu, 28 May 2015 01:56:53 +0000 (21:56 -0400)]
Issue 24298: Fix signature() to properly unwrap wrappers around bound methods

9 years agoupdate for 3.6 emerging
Benjamin Peterson [Wed, 27 May 2015 23:32:25 +0000 (18:32 -0500)]
update for 3.6 emerging

9 years agoIssue 24304: Fix broken license link in FAQ.
Ned Deily [Wed, 27 May 2015 22:37:00 +0000 (15:37 -0700)]
Issue 24304: Fix broken license link in FAQ.

9 years agoMoved Misc/NEWS entries to correct section and fix formatting.
Serhiy Storchaka [Tue, 26 May 2015 07:20:32 +0000 (10:20 +0300)]
Moved Misc/NEWS entries to correct section and fix formatting.

9 years agomerge 3.3
Benjamin Peterson [Tue, 26 May 2015 02:24:48 +0000 (21:24 -0500)]
merge 3.3

9 years agomerge 3.2
Benjamin Peterson [Tue, 26 May 2015 02:24:26 +0000 (21:24 -0500)]
merge 3.2

9 years agokeep distutils version in sync with python version automatically
Benjamin Peterson [Tue, 26 May 2015 02:24:00 +0000 (21:24 -0500)]
keep distutils version in sync with python version automatically

9 years agoIssue #23840: tokenize.open() now closes the temporary binary file on error to
Victor Stinner [Mon, 25 May 2015 22:43:58 +0000 (00:43 +0200)]
Issue #23840: tokenize.open() now closes the temporary binary file on error to
fix a resource warning.

9 years agoRemove UTF-8 BOMs.
Serhiy Storchaka [Mon, 25 May 2015 09:27:39 +0000 (12:27 +0300)]
Remove UTF-8 BOMs.

9 years agowhitespace
Terry Jan Reedy [Sat, 23 May 2015 22:15:18 +0000 (18:15 -0400)]
whitespace

9 years agoAdd pointer to IDLE what's new file.
Terry Jan Reedy [Sat, 23 May 2015 22:13:14 +0000 (18:13 -0400)]
Add pointer to IDLE what's new file.

9 years agoUpdate idlelib/NEWS.txt.
Terry Jan Reedy [Sat, 23 May 2015 21:23:30 +0000 (17:23 -0400)]
Update idlelib/NEWS.txt.

9 years agoAdd NEWS item for Idle.
Terry Jan Reedy [Sat, 23 May 2015 21:12:48 +0000 (17:12 -0400)]
Add NEWS item for Idle.

9 years agoMake expression legal python by adding '1'.
Terry Jan Reedy [Sat, 23 May 2015 20:16:28 +0000 (16:16 -0400)]
Make expression legal python by adding '1'.

9 years agomerge 3.3 (#22931)
Benjamin Peterson [Sat, 23 May 2015 15:40:47 +0000 (10:40 -0500)]
merge 3.3 (#22931)

9 years agomerge 3.2 (#22931)
Benjamin Peterson [Sat, 23 May 2015 15:38:48 +0000 (10:38 -0500)]
merge 3.2 (#22931)

9 years agoallow square brackets in cookie values (closes #22931)
Benjamin Peterson [Sat, 23 May 2015 15:36:48 +0000 (10:36 -0500)]
allow square brackets in cookie values (closes #22931)

9 years agoUpgrade pip to 7.0.1
Donald Stufft [Sat, 23 May 2015 00:30:16 +0000 (20:30 -0400)]
Upgrade pip to 7.0.1

9 years agoIssue #24219: Remove duplicate literal in docs.
Raymond Hettinger [Fri, 22 May 2015 23:37:49 +0000 (16:37 -0700)]
Issue #24219: Remove duplicate literal in docs.

9 years agoIssue #24257: Fixed incorrect uses of PyObject_IsInstance().
Serhiy Storchaka [Fri, 22 May 2015 08:02:49 +0000 (11:02 +0300)]
Issue #24257: Fixed incorrect uses of PyObject_IsInstance().
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.

9 years agoUpgrade pip to 7.0 and setuptools to 16.0
Donald Stufft [Fri, 22 May 2015 04:39:22 +0000 (00:39 -0400)]
Upgrade pip to 7.0 and setuptools to 16.0

9 years agoIssue 23898: Fix inspect.classify_class_attrs() to work with __eq__
Yury Selivanov [Thu, 21 May 2015 19:41:57 +0000 (15:41 -0400)]
Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__

9 years agoFixed issue number for issue #22939.
Serhiy Storchaka [Thu, 21 May 2015 17:54:36 +0000 (20:54 +0300)]
Fixed issue number for issue #22939.

9 years agoIssue #23985: Fixed integer overflow in iterator object. Patch by
Serhiy Storchaka [Thu, 21 May 2015 17:50:25 +0000 (20:50 +0300)]
Issue #23985: Fixed integer overflow in iterator object.  Patch by
Clement Rouault.

9 years agoIssue 24215: Added tests for more builtin types in test_pprint.
Serhiy Storchaka [Wed, 20 May 2015 16:37:10 +0000 (19:37 +0300)]
Issue 24215: Added tests for more builtin types in test_pprint.
Made test_pprint and test_trace discoverable.

9 years agoIssue #24134: Use assertRaises() in context manager form in test_slice to
Serhiy Storchaka [Wed, 20 May 2015 15:37:37 +0000 (18:37 +0300)]
Issue #24134: Use assertRaises() in context manager form in test_slice to
avoid passing the test accidently because slice.__hash__ is None.

9 years agoIssue #24245: Eliminated senseless expect clauses that have no any effect in
Serhiy Storchaka [Wed, 20 May 2015 13:15:02 +0000 (16:15 +0300)]
Issue #24245: Eliminated senseless expect clauses that have no any effect in
IDLE.  Patch by Martin Panter.

9 years agoIssue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try again
Serhiy Storchaka [Tue, 19 May 2015 21:11:48 +0000 (00:11 +0300)]
Issue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try again
when a directory with the chosen name already exists on Windows as well as
on Unix.  tempfile.mkstemp() now fails early if parent directory is not
valid (not exists or is a file) on Windows.

9 years agoFix some compilation warnings when using gcc (-Wmaybe-uninitialized).
Antoine Pitrou [Tue, 19 May 2015 19:04:33 +0000 (21:04 +0200)]
Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).

9 years agoIssue #23985: Fix a possible buffer overrun when deleting a slice from the front...
Antoine Pitrou [Tue, 19 May 2015 18:52:27 +0000 (20:52 +0200)]
Issue #23985: Fix a possible buffer overrun when deleting a slice from the front of a bytearray and then appending some other bytes data.

Patch by Martin Panter.

9 years ago#24215: also back out changeset that broke test_trace in 3.4.
R David Murray [Tue, 19 May 2015 12:24:59 +0000 (08:24 -0400)]
#24215: also back out changeset that broke test_trace in 3.4.

I missed that this change was applied to both branches.

9 years agoIssue #6598: Increased time precision and random number range in
Serhiy Storchaka [Tue, 19 May 2015 07:09:42 +0000 (10:09 +0300)]
Issue #6598: Increased time precision and random number range in
email.utils.make_msgid() to strengthen the uniqueness of the message ID.

9 years agoIssue #24232: Fix typos. Patch by Ville Skyttä.
Berker Peksag [Mon, 18 May 2015 22:36:55 +0000 (01:36 +0300)]
Issue #24232: Fix typos. Patch by Ville Skyttä.

9 years agoIssue #24233: Add a proper link to socket.getfqdn() documentation.
Berker Peksag [Mon, 18 May 2015 22:31:00 +0000 (01:31 +0300)]
Issue #24233: Add a proper link to socket.getfqdn() documentation.

Patch by Ville Skyttä.

9 years agoFix typo in Nisc/NEWS.
Berker Peksag [Mon, 18 May 2015 22:21:28 +0000 (01:21 +0300)]
Fix typo in Nisc/NEWS.

9 years agoFixed typos in comments.
Serhiy Storchaka [Mon, 18 May 2015 19:19:42 +0000 (22:19 +0300)]
Fixed typos in comments.

9 years agoIssue #24091: Fixed various crashes in corner cases in C implementation of
Serhiy Storchaka [Mon, 18 May 2015 15:29:33 +0000 (18:29 +0300)]
Issue #24091: Fixed various crashes in corner cases in C implementation of
ElementTree.

9 years agoIssue #24102: Fixed exception type checking in standard error handlers.
Serhiy Storchaka [Mon, 18 May 2015 13:08:52 +0000 (16:08 +0300)]
Issue #24102: Fixed exception type checking in standard error handlers.

9 years agoIssue #21931: Fix error handling in msilib.FCICreate().
Zachary Ware [Mon, 18 May 2015 05:47:15 +0000 (00:47 -0500)]
Issue #21931: Fix error handling in msilib.FCICreate().

Patch by Jeffrey Armstrong.

9 years agoIssue #23757: Only call the concrete list API for exact lists.
Raymond Hettinger [Sun, 17 May 2015 21:45:58 +0000 (14:45 -0700)]
Issue #23757:  Only call the concrete list API for exact lists.

9 years agoIssue #22155: News entry.
Terry Jan Reedy [Sun, 17 May 2015 18:53:28 +0000 (14:53 -0400)]
Issue #22155: News entry.

9 years agoIssue #22155: Add File Handlers subsection with createfilehandler to tkinter
Terry Jan Reedy [Sun, 17 May 2015 18:49:26 +0000 (14:49 -0400)]
Issue #22155: Add File Handlers subsection with createfilehandler to tkinter
doc.  Remove obsolete example from FAQ.  Patch by Martin Panter.

9 years ago#24216: fix typo
R David Murray [Sun, 17 May 2015 14:16:37 +0000 (10:16 -0400)]
#24216: fix typo

9 years agoIssue #24199: Make idlever module self updating. Syop using it in aboutDialog.
Terry Jan Reedy [Sat, 16 May 2015 23:28:32 +0000 (19:28 -0400)]
Issue #24199: Make idlever module self updating. Syop using it in aboutDialog.

9 years agoIssue #24212: Put reference in idle.__main__ to issue with explanation.
Terry Jan Reedy [Sat, 16 May 2015 22:31:15 +0000 (18:31 -0400)]
Issue #24212: Put reference in idle.__main__ to issue with explanation.

9 years agoAdded tests for more builtin types.
Serhiy Storchaka [Sat, 16 May 2015 18:35:24 +0000 (21:35 +0300)]
Added tests for more builtin types.
Made test_pprint discoverable.

9 years agoIssue #23964: Update idlelib/idle_test/README.txt. first patch by Al Sweigart.
Terry Jan Reedy [Sat, 16 May 2015 18:23:39 +0000 (14:23 -0400)]
Issue #23964: Update idlelib/idle_test/README.txt. first patch by Al Sweigart.

9 years agoReverted issue #24134 changes (except new tests).
Serhiy Storchaka [Sat, 16 May 2015 13:25:43 +0000 (16:25 +0300)]
Reverted issue #24134 changes (except new tests).

9 years agoIssue #23184: idle tests, remove unused names and imports.
Terry Jan Reedy [Sat, 16 May 2015 03:55:21 +0000 (23:55 -0400)]
Issue #23184: idle tests, remove unused names and imports.

9 years agoIssue #23184: idlelib, remove more unused names and imports.
Terry Jan Reedy [Sat, 16 May 2015 03:03:17 +0000 (23:03 -0400)]
Issue #23184: idlelib, remove more unused names and imports.

9 years agoidlelib: remove unused names and imports (one is a duplicate import).
Terry Jan Reedy [Thu, 14 May 2015 22:10:50 +0000 (18:10 -0400)]
idlelib: remove unused names and imports (one is a duplicate import).

9 years agoIssue 24191: Document BoundArguments.signature
Yury Selivanov [Thu, 14 May 2015 18:14:02 +0000 (14:14 -0400)]
Issue 24191: Document BoundArguments.signature

9 years agoMake sentence correct English.
R David Murray [Thu, 14 May 2015 12:50:38 +0000 (08:50 -0400)]
Make sentence correct English.

9 years ago#23088: Clarify null termination of bytes and strings in C API.
R David Murray [Thu, 14 May 2015 00:31:53 +0000 (20:31 -0400)]
#23088: Clarify null termination of bytes and strings in C API.

Patch by Martin Panter, reviewed by Serhiy Storchaka and R. David Murray.

9 years agoFix mangled wording
Raymond Hettinger [Wed, 13 May 2015 21:39:04 +0000 (14:39 -0700)]
Fix mangled wording

9 years agoasyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine (in 3.5)
Yury Selivanov [Wed, 13 May 2015 19:21:41 +0000 (15:21 -0400)]
asyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine (in 3.5)

9 years agoSync asyncio code from default branch.
Yury Selivanov [Wed, 13 May 2015 19:15:56 +0000 (15:15 -0400)]
Sync asyncio code from default branch.

9 years agoIssue #22064: Improve the misleading message from 2to3 when skipping optional fixers.
Berker Peksag [Wed, 13 May 2015 10:39:51 +0000 (13:39 +0300)]
Issue #22064: Improve the misleading message from 2to3 when skipping optional fixers.

Patch by Vinod Kurup.

9 years agoIssue #19934: Document *None* as an acceptable input to Counter.most_common([n])
Raymond Hettinger [Wed, 13 May 2015 09:47:57 +0000 (02:47 -0700)]
Issue #19934:  Document *None* as an acceptable input to Counter.most_common([n])

9 years agouse imperative
Benjamin Peterson [Tue, 12 May 2015 23:15:53 +0000 (19:15 -0400)]
use imperative

9 years agoasyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
Yury Selivanov [Tue, 12 May 2015 15:43:04 +0000 (11:43 -0400)]
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.

Previous approach of installing coroutine wrapper in loop.set_debug() and
uninstalling it in loop.close() was very fragile.  Most of asyncio tests
do not call loop.close() at all.  Since coroutine wrapper is a global
setting, we have to make sure that it's only set when the loop is
running, and is automatically unset when it stops running.

Issue #24017.

9 years agoIssue #23983: Update the pty module example.
Berker Peksag [Tue, 12 May 2015 14:25:06 +0000 (17:25 +0300)]
Issue #23983: Update the pty module example.

Changes:

* Fixed a ResourceWarning warning
* Used argparse instead of getopt

9 years agoIssue #23796: peak and read1 methods of BufferedReader now raise ValueError
Berker Peksag [Tue, 12 May 2015 14:13:56 +0000 (17:13 +0300)]
Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
if they called on a closed object.

Patch by John Hergenroeder.

9 years agoDefend against a mutation during comparison
Raymond Hettinger [Tue, 12 May 2015 02:58:56 +0000 (19:58 -0700)]
Defend against a mutation during comparison

9 years agoasyncio: Support PEP 492. Issue #24017.
Yury Selivanov [Tue, 12 May 2015 02:27:25 +0000 (22:27 -0400)]
asyncio: Support PEP 492. Issue #24017.

9 years agodocs/asyncio: Document new ensure_future() and deprecated async()
Yury Selivanov [Mon, 11 May 2015 20:33:41 +0000 (16:33 -0400)]
docs/asyncio: Document new ensure_future() and deprecated async()

9 years agodocs/asyncio: Document set_task_factory/get_task_factory
Yury Selivanov [Mon, 11 May 2015 20:28:27 +0000 (16:28 -0400)]
docs/asyncio: Document set_task_factory/get_task_factory

9 years agoFix NEWS file.
Yury Selivanov [Mon, 11 May 2015 18:52:37 +0000 (14:52 -0400)]
Fix NEWS file.

9 years agoasyncio: async() function is deprecated in favour of ensure_future().
Yury Selivanov [Mon, 11 May 2015 18:48:38 +0000 (14:48 -0400)]
asyncio: async() function is deprecated in favour of ensure_future().

9 years agoSync asyncio changes from the main repo.
Yury Selivanov [Mon, 11 May 2015 18:23:38 +0000 (14:23 -0400)]
Sync asyncio changes from the main repo.

9 years agoadd trailing slash
Benjamin Peterson [Mon, 11 May 2015 01:19:18 +0000 (21:19 -0400)]
add trailing slash

9 years agoensure .keywords is always a dict
Benjamin Peterson [Sat, 9 May 2015 04:25:18 +0000 (00:25 -0400)]
ensure .keywords is always a dict

9 years agomerge heads
Benjamin Peterson [Sat, 9 May 2015 01:32:19 +0000 (21:32 -0400)]
merge heads

9 years agofix libffi compilation on FreeBSD (#23042)
Benjamin Peterson [Sat, 9 May 2015 01:31:36 +0000 (21:31 -0400)]
fix libffi compilation on FreeBSD (#23042)

Patch from Marc-Andre Lemburg.

9 years agoUpgrade setuptools to 15.2
Donald Stufft [Sat, 9 May 2015 01:30:04 +0000 (21:30 -0400)]
Upgrade setuptools to 15.2

9 years agoMinor updates to the OS X installer ReadMe.rtf.
Ned Deily [Fri, 8 May 2015 21:42:32 +0000 (14:42 -0700)]
Minor updates to the OS X installer ReadMe.rtf.

9 years agoIssue #20274: Remove ignored and erroneous "kwargs" parameters from three
Larry Hastings [Fri, 8 May 2015 14:37:49 +0000 (07:37 -0700)]
Issue #20274: Remove ignored and erroneous "kwargs" parameters from three
METH_VARARGS methods on _sqlite.Connection.

9 years agoIssue #21520: test_zipfile no longer fails if the word 'bad' appears
Larry Hastings [Fri, 8 May 2015 13:54:58 +0000 (06:54 -0700)]
Issue #21520: test_zipfile no longer fails if the word 'bad' appears
anywhere in the name of the current directory.

9 years agoFix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine
Andrew Svetlov [Fri, 8 May 2015 11:13:41 +0000 (14:13 +0300)]
Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine

9 years agoshorten capsule name macro; it doesn't need to be so long
Benjamin Peterson [Thu, 7 May 2015 22:41:47 +0000 (18:41 -0400)]
shorten capsule name macro; it doesn't need to be so long

9 years agoremove word we don't need
Benjamin Peterson [Thu, 7 May 2015 01:29:14 +0000 (21:29 -0400)]
remove word we don't need

9 years agoFix copy/paste errors.
Zachary Ware [Thu, 7 May 2015 01:19:06 +0000 (20:19 -0500)]
Fix copy/paste errors.

Basically, s/thread/coroutine/.

9 years agoFixed English in error message.
Serhiy Storchaka [Wed, 6 May 2015 16:21:00 +0000 (19:21 +0300)]
Fixed English in error message.

9 years agoIssue #24134: assertRaises(), assertRaisesRegex(), assertWarns() and
Serhiy Storchaka [Wed, 6 May 2015 16:13:11 +0000 (19:13 +0300)]
Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns() and
assertWarnsRegex() checks are not longer successful if the callable is None.

Added tests for assertRaises().

9 years agoIssue #24125: Saved error's line and column numbers when an error is occured
Serhiy Storchaka [Wed, 6 May 2015 06:36:06 +0000 (09:36 +0300)]
Issue #24125: Saved error's line and column numbers when an error is occured
during closing expatreader.  Fixed a regression introduced in issue #23865.

9 years ago - Issue #24122, fix quoting for LIBPL
doko@ubuntu.com [Tue, 5 May 2015 23:13:02 +0000 (01:13 +0200)]
 - Issue #24122, fix quoting for LIBPL

9 years agoIssue 24088: Clarify semantics of yield expression.
Guido van Rossum [Tue, 5 May 2015 19:02:01 +0000 (12:02 -0700)]
Issue 24088: Clarify semantics of yield expression.

9 years agoupdate example, since python.org is HTTPS-only now (closes #24118)
Benjamin Peterson [Sun, 3 May 2015 16:59:09 +0000 (12:59 -0400)]
update example, since python.org is HTTPS-only now (closes #24118)

9 years agomerge 3.3 (#24096)
Benjamin Peterson [Sun, 3 May 2015 15:28:46 +0000 (11:28 -0400)]
merge 3.3 (#24096)

9 years agobe more robust against the filters list changing under us (closes #24096)
Benjamin Peterson [Sun, 3 May 2015 15:23:37 +0000 (11:23 -0400)]
be more robust against the filters list changing under us (closes #24096)

9 years agoIssue #23330: h2py now supports arbitrary filenames in #include.
Serhiy Storchaka [Sun, 3 May 2015 12:35:14 +0000 (15:35 +0300)]
Issue #23330: h2py now supports arbitrary filenames in #include.

9 years agomerge 3.3 (#24094)
Benjamin Peterson [Sun, 3 May 2015 02:36:26 +0000 (22:36 -0400)]
merge 3.3 (#24094)

9 years agojust sort the items tuple directly (closes #24094)
Benjamin Peterson [Sun, 3 May 2015 02:28:04 +0000 (22:28 -0400)]
just sort the items tuple directly (closes #24094)

9 years agoAsyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions without __name__.
Guido van Rossum [Sun, 3 May 2015 01:38:24 +0000 (18:38 -0700)]
Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions without __name__.

9 years ago#24108: Update fnmatch.translate example to show correct output.
R David Murray [Sat, 2 May 2015 19:08:22 +0000 (15:08 -0400)]
#24108: Update fnmatch.translate example to show correct output.

Patch by Merlijn van Deen.

9 years ago#24081: Remove obsolete caveat from import docs.
R David Murray [Sat, 2 May 2015 18:57:54 +0000 (14:57 -0400)]
#24081: Remove obsolete caveat from import docs.

Per Eric Snow's research, this changed in Python 2.4 in changeset 331e60d8ce,
but these docs were not updated.

Patch by Peter Viktorin.

9 years agoDefer deleted item decref until after the deque is restored to a consistent state.
Raymond Hettinger [Sat, 2 May 2015 17:44:17 +0000 (10:44 -0700)]
Defer deleted item decref until after the deque is restored to a consistent state.