]>
granicus.if.org Git - python/log
Raymond Hettinger [Fri, 22 May 2015 23:56:32 +0000 (16:56 -0700)]
Issue 22189: Add missing methods to UserString
Raymond Hettinger [Fri, 22 May 2015 23:38:16 +0000 (16:38 -0700)]
merge
Raymond Hettinger [Fri, 22 May 2015 23:37:49 +0000 (16:37 -0700)]
Issue #24219: Remove duplicate literal in docs.
Steve Dower [Fri, 22 May 2015 23:22:27 +0000 (16:22 -0700)]
Removes lingering references to RAR now that make_zip.py actually makes a ZIP
Gregory P. Smith [Fri, 22 May 2015 23:18:14 +0000 (16:18 -0700)]
Issue 24230: The tempfile module now accepts bytes for prefix, suffix and dir
parameters and returns bytes in such situations (matching the os module APIs).
Steve Dower [Fri, 22 May 2015 22:10:10 +0000 (15:10 -0700)]
Issue #23955: Add pyvenv.cfg option to suppress registry/environment lookup for generating sys.path.
Also cleans up and secures getpathp.c
Steve Dower [Fri, 22 May 2015 22:08:34 +0000 (15:08 -0700)]
Issue 24244: Prevents termination when an invalid format string is encountered on Windows.
Yury Selivanov [Fri, 22 May 2015 20:28:05 +0000 (16:28 -0400)]
Issue 20438: Add a note about deprecating old inspect APIs to whatsnew.
Also, deprecate formatargspec, formatargvalues, and getargvalues
functions. Since we are deprecating 'getfullargspec' function in
3.5 (documentation only, no DeprecationWarning), it makes sense
to also deprecate functions designed to be directly used with it.
In 3.6 we will remove 'getargsspec' function (was deprecated since
Python 3.0), and start raising DeprecationWarnings in other
'getarg*' family of functions. We can remove them in 3.7 or later.
Also, it is worth noting, that Signature API does not provide 100%
of functionality that deprecated APIs have. It is important to do
a soft deprecation of outdated APIs in 3.5 to gather users feedback,
and improve Signature object.
Yury Selivanov [Fri, 22 May 2015 20:09:44 +0000 (16:09 -0400)]
Issue 20438: Adjust stacklevel of inspect.getargspec() warning.
Guido van Rossum [Fri, 22 May 2015 17:14:11 +0000 (10:14 -0700)]
Preliminary typing.py, anticipating provisional acceptance of PEP 484.
There area bunch of TODOs here, but the biggest (not mentioned in the
file) is that I'm going to take out __instancecheck__ and
__subclasscheck__. However my personal schedule is such that I
probably won't have time for these before Larry tags beta 1. But I
will try -- this commit is mostly to make sure that typing.py doesn't
completely miss the train.
PS. I'm tracking issues at https://github.com/ambv/typehinting/issues.
Zachary Ware [Fri, 22 May 2015 16:42:20 +0000 (11:42 -0500)]
Fix extraneous BOM in whatsnew.
That's what I get for using Notepad to make a quick edit...
Zachary Ware [Fri, 22 May 2015 16:36:53 +0000 (11:36 -0500)]
Issue #20035: Reimplement tkinter._fix module as a C function.
The new private C function makes no permanent changes to the environment
and is #ifdef'd out on non-Windows platforms.
Yury Selivanov [Fri, 22 May 2015 15:38:38 +0000 (11:38 -0400)]
Issue 20438: Deprecate inspect.getargspec() and friends.
Yury Selivanov [Fri, 22 May 2015 15:30:45 +0000 (11:30 -0400)]
docs: Mention PEP 479 in whatsnew.
Issue 22906.
Yury Selivanov [Fri, 22 May 2015 15:16:47 +0000 (11:16 -0400)]
Issue 24237: Raise PendingDeprecationWarning per PEP 479
Raise PendingDeprecationWarning when generator raises StopIteration
and no __future__ import is used. Fix offenders in the stdlib
and tests.
See also issue 22906.
Thanks to Nick Coghlan and Berker Peksag for reviews.
Serhiy Storchaka [Fri, 22 May 2015 08:13:20 +0000 (11:13 +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.
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.
Raymond Hettinger [Fri, 22 May 2015 07:41:57 +0000 (00:41 -0700)]
Issue #24221: Small optimizations for heapq.
Replaces the PyList_GET_ITEM and PyList_SET_ITEM macros with normal array
accesses. Replace the siftup unpredicatable branch with arithmetic.
Replace the rc == -1 tests with rc < 0. Gives nicer looking assembly
with both Clang and GCC-4.9. Also gives a small performance both for both.
Donald Stufft [Fri, 22 May 2015 04:39:57 +0000 (00:39 -0400)]
merge: Upgrade 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
Yury Selivanov [Thu, 21 May 2015 21:02:31 +0000 (17:02 -0400)]
Issue 24180: Fixes by Berker Peksag.
Berker Peksag [Thu, 21 May 2015 20:40:54 +0000 (23:40 +0300)]
Set stacklevel to 2 to get more accurate warning messages from deprecated functions.
Yury Selivanov [Thu, 21 May 2015 19:48:59 +0000 (15:48 -0400)]
Fix a misplaced NEWS entry.
Yury Selivanov [Thu, 21 May 2015 19:45:08 +0000 (15:45 -0400)]
Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__
Patch by Mike Bayer.
Yury Selivanov [Thu, 21 May 2015 19:41:57 +0000 (15:41 -0400)]
Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__
Serhiy Storchaka [Thu, 21 May 2015 17:54:48 +0000 (20:54 +0300)]
Fixed issue number for issue #22939.
Serhiy Storchaka [Thu, 21 May 2015 17:54:36 +0000 (20:54 +0300)]
Fixed issue number for issue #22939.
Serhiy Storchaka [Thu, 21 May 2015 17:51:53 +0000 (20:51 +0300)]
Issue #23985: Fixed integer overflow in iterator object. Patch by
Clement Rouault.
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.
Serhiy Storchaka [Thu, 21 May 2015 17:15:40 +0000 (20:15 +0300)]
Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() and
assertWarnsRegex() assertments now check the type of the first argument
to prevent possible user error. Based on patch by Daniel Wagner-Hall.
Yury Selivanov [Thu, 21 May 2015 16:03:21 +0000 (12:03 -0400)]
Issue 24017: Use abc.Coroutine in inspect.iscoroutine() function
Yury Selivanov [Thu, 21 May 2015 15:50:30 +0000 (11:50 -0400)]
Issue 24180: Documentation for PEP 492 changes.
Serhiy Storchaka [Thu, 21 May 2015 11:19:20 +0000 (14:19 +0300)]
Issue #22955: Fixed reference leak in attrgetter.repr().
Benjamin Peterson [Thu, 21 May 2015 03:09:43 +0000 (22:09 -0500)]
improve wording
Yury Selivanov [Thu, 21 May 2015 03:07:02 +0000 (23:07 -0400)]
Issue 24248: Deprecate inspect.Signature.from_function and .from_builtin
Antoine Pitrou [Wed, 20 May 2015 19:50:59 +0000 (21:50 +0200)]
Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht.
Serhiy Storchaka [Wed, 20 May 2015 19:02:43 +0000 (22:02 +0300)]
Issue #22955: Fixed test_operator. It left Python implementation in
sys.modules and broke test_ipaddress.
Yury Selivanov [Wed, 20 May 2015 18:38:50 +0000 (14:38 -0400)]
inspect.Signature: Factor out Signature.from_function to a private helper
Yury Selivanov [Wed, 20 May 2015 18:30:08 +0000 (14:30 -0400)]
Issue 20691: Add follow_wrapped arg to inspect.signature/from_callable.
Serhiy Storchaka [Wed, 20 May 2015 16:38:05 +0000 (19:38 +0300)]
Issue 24215: Added tests for more builtin types in test_pprint.
Made test_pprint and test_trace discoverable.
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.
Steve Dower [Wed, 20 May 2015 16:30:42 +0000 (09:30 -0700)]
Updates PCBuild.sln to open with VS 2015 by default.
Serhiy Storchaka [Wed, 20 May 2015 15:38:39 +0000 (18:38 +0300)]
Issue #24134: Use assertRaises() in context manager form in test_slice to
avoid passing the test accidently because slice.__hash__ is None.
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.
Serhiy Storchaka [Wed, 20 May 2015 15:29:18 +0000 (18:29 +0300)]
Issue #22955: attrgetter, itemgetter and methodcaller objects in the operator
module now support pickling. Added readable and evaluable repr for these
objects. Based on patch by Josh Rosenberg.
Serhiy Storchaka [Wed, 20 May 2015 13:15:20 +0000 (16:15 +0300)]
Issue #24245: Eliminated senseless expect clauses that have no any effect in
IDLE. Patch by Martin Panter.
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.
Serhiy Storchaka [Wed, 20 May 2015 13:10:04 +0000 (16:10 +0300)]
Issue #24245: Eliminated senseless expect clauses that have no any effect.
Patch by Martin Panter.
Serhiy Storchaka [Wed, 20 May 2015 07:33:40 +0000 (10:33 +0300)]
Issue #16261: Converted some bare except statements to except statements
with specified exception type. Original patch by Ramchandra Apte.
Serhiy Storchaka [Tue, 19 May 2015 21:14:00 +0000 (00:14 +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.
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.
Antoine Pitrou [Tue, 19 May 2015 19:06:04 +0000 (21:06 +0200)]
Fix 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).
Antoine Pitrou [Tue, 19 May 2015 18:55:42 +0000 (20:55 +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.
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.
R David Murray [Tue, 19 May 2015 12:25:28 +0000 (08:25 -0400)]
Null merge.
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.
R David Murray [Tue, 19 May 2015 12:16:04 +0000 (08:16 -0400)]
Back out changeset
955dffec3d94 since it broke the buildbots.
and the situation has not been addressed in several days.
R David Murray [Tue, 19 May 2015 11:18:39 +0000 (07:18 -0400)]
#19662: fix typo
Serhiy Storchaka [Tue, 19 May 2015 08:00:07 +0000 (11:00 +0300)]
Issue #23780: Improved error message in os.path.join() with single argument.
Idea by R. David Murray.
Serhiy Storchaka [Tue, 19 May 2015 07:10:15 +0000 (10:10 +0300)]
Issue #6598: Increased time precision and random number range in
email.utils.make_msgid() to strengthen the uniqueness of the message ID.
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.
Yury Selivanov [Tue, 19 May 2015 04:27:49 +0000 (00:27 -0400)]
Issue 24205: Improve inspect.Signature.bind() error messages.
Berker Peksag [Mon, 18 May 2015 22:38:05 +0000 (01:38 +0300)]
Issue #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ä.
Berker Peksag [Mon, 18 May 2015 22:31:24 +0000 (01:31 +0300)]
Issue #24233: Add a proper link to socket.getfqdn() documentation.
Patch by Ville Skyttä.
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ä.
Berker Peksag [Mon, 18 May 2015 22:28:07 +0000 (01:28 +0300)]
Fix Sphinx compile error.
../../Misc/NEWS:60: ERROR: Unknown target name: "mangle_from".
Berker Peksag [Mon, 18 May 2015 22:22:29 +0000 (01:22 +0300)]
Fix typo in Misc/NEWS.
Berker Peksag [Mon, 18 May 2015 22:21:28 +0000 (01:21 +0300)]
Fix typo in Nisc/NEWS.
Serhiy Storchaka [Mon, 18 May 2015 19:20:18 +0000 (22:20 +0300)]
Fixed typos in comments.
Serhiy Storchaka [Mon, 18 May 2015 19:19:42 +0000 (22:19 +0300)]
Fixed typos in comments.
Yury Selivanov [Mon, 18 May 2015 16:50:52 +0000 (12:50 -0400)]
Issue 24226: Fix parsing of many sequential one-line 'def' statements.
Serhiy Storchaka [Mon, 18 May 2015 15:33:31 +0000 (18:33 +0300)]
Issue #24091: Fixed various crashes in corner cases in C implementation of
ElementTree.
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.
Serhiy Storchaka [Mon, 18 May 2015 13:10:40 +0000 (16:10 +0300)]
Issue #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.
Zachary Ware [Mon, 18 May 2015 05:49:15 +0000 (00:49 -0500)]
Closes #21931: Merge with 3.4
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.
Zachary Ware [Mon, 18 May 2015 04:46:22 +0000 (23:46 -0500)]
Issue #23488: Fix a syntax error on big endian platforms.
Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run.
Zachary Ware [Mon, 18 May 2015 01:55:42 +0000 (20:55 -0500)]
Issue #21337: Add bare-bones Tix test
All this does is confirm that Tix is available on Windows, which should
always be the case (if _tkinter itself is available).
R David Murray [Mon, 18 May 2015 00:44:50 +0000 (20:44 -0400)]
Issue #13866: add *quote_via* argument to urlencode.
Patch by samwyse, completed by Arnon Yaari, and reviewed by
Martin Panter.
R David Murray [Sun, 17 May 2015 23:36:16 +0000 (19:36 -0400)]
#24211: Add missing docs for SMTPUTF8 policy instance.
R David Murray [Sun, 17 May 2015 23:27:22 +0000 (19:27 -0400)]
#24218: Add SMTPUTF8 support to send_message.
Reviewed by Maciej Szulik.
Raymond Hettinger [Sun, 17 May 2015 21:47:00 +0000 (14:47 -0700)]
merge
Raymond Hettinger [Sun, 17 May 2015 21:45:58 +0000 (14:45 -0700)]
Issue #23757: Only call the concrete list API for exact lists.
Terry Jan Reedy [Sun, 17 May 2015 18:56:20 +0000 (14:56 -0400)]
Issue #22155: News entry.
Terry Jan Reedy [Sun, 17 May 2015 18:53:28 +0000 (14:53 -0400)]
Issue #22155: News entry.
Terry Jan Reedy [Sun, 17 May 2015 18:50:06 +0000 (14:50 -0400)]
Merge with 3.4
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.
R David Murray [Sun, 17 May 2015 18:24:33 +0000 (14:24 -0400)]
#20098: add mangle_from_ policy option.
This defaults to True in the compat32 policy for backward compatibility,
but to False for all new policies.
Patch by Milan Oberkirch, with a few tweaks.
R David Murray [Sun, 17 May 2015 15:29:21 +0000 (11:29 -0400)]
#24211: Add RFC6532 support to the email library.
This could use more edge case tests, but the basic functionality is tested.
(Note that this changeset does not add tailored support for the RFC 6532
message/global MIME type, but the email package generic facilities will handle
it.)
Reviewed by Maciej Szulik.
R David Murray [Sun, 17 May 2015 14:17:35 +0000 (10:17 -0400)]
Merge: #24216: fix typo
R David Murray [Sun, 17 May 2015 14:16:37 +0000 (10:16 -0400)]
#24216: fix typo
Zachary Ware [Sun, 17 May 2015 03:45:27 +0000 (22:45 -0500)]
Ignore PCbuild/.vs directory.
Also fix a couple other ignored PCbuild directories in .gitignore
Terry Jan Reedy [Sat, 16 May 2015 23:33:32 +0000 (19:33 -0400)]
Merge with 3.4
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.
Serhiy Storchaka [Sat, 16 May 2015 23:23:02 +0000 (02:23 +0300)]
Fixed issue #16314 test for the case when lzma is not available.
Terry Jan Reedy [Sat, 16 May 2015 22:31:32 +0000 (18:31 -0400)]
Merge with 3.4
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.