]>
granicus.if.org Git - python/log
Serhiy Storchaka [Sat, 28 Mar 2015 18:38:37 +0000 (20:38 +0200)]
Make some tests more frienly to MemoryError.
Free memory, unlock hanging threads.
Victor Stinner [Fri, 27 Mar 2015 14:36:01 +0000 (15:36 +0100)]
Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og
-Og does not optimize the C code, it's just "fast debugging".
Victor Stinner [Fri, 27 Mar 2015 14:20:08 +0000 (15:20 +0100)]
asyncio: Fix _SelectorTransport.__repr__() if the event loop is closed
Serhiy Storchaka [Wed, 25 Mar 2015 17:16:15 +0000 (19:16 +0200)]
Check that failed writerow() doesn't produce change a file.
Serhiy Storchaka [Wed, 25 Mar 2015 14:40:15 +0000 (16:40 +0200)]
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
Victor Stinner [Wed, 25 Mar 2015 01:25:25 +0000 (02:25 +0100)]
Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),
close the binary file to fix a resource warning.
Victor Stinner [Wed, 25 Mar 2015 00:54:46 +0000 (01:54 +0100)]
Issue #23571: Fix reentrant call to Py_FatalError()
Flushing sys.stdout and sys.stderr in Py_FatalError() can call again
Py_FatalError(). Add a reentrant flag to detect this case and just abort at the
second call.
Serhiy Storchaka [Tue, 24 Mar 2015 23:33:19 +0000 (01:33 +0200)]
Fixed bytes warnings when run tests with -vv.
Serhiy Storchaka [Tue, 24 Mar 2015 21:21:57 +0000 (23:21 +0200)]
Issue #21802: The reader in BufferedRWPair now is closed even when closing
writer failed in BufferedRWPair.close().
Serhiy Storchaka [Tue, 24 Mar 2015 20:28:43 +0000 (22:28 +0200)]
Issue #23671: string.Template now allows to specify the "self" parameter as
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
Serhiy Storchaka [Tue, 24 Mar 2015 19:48:30 +0000 (21:48 +0200)]
Added tests for mixed kinds of Unicode strings.
Serhiy Storchaka [Tue, 24 Mar 2015 17:46:54 +0000 (19:46 +0200)]
Issue #23583: Added tests for standard IO streams in IDLE.
Victor Stinner [Tue, 24 Mar 2015 12:44:35 +0000 (13:44 +0100)]
Issue #23571: Py_FatalError() now tries to flush sys.stdout and sys.stderr
It should help to see exceptions when stderr if buffered: PyErr_Display() calls
sys.stderr.write(), it doesn't write into stderr file descriptor directly.
Victor Stinner [Tue, 24 Mar 2015 10:24:06 +0000 (11:24 +0100)]
Issue #23571: Enhance Py_FatalError()
* Display the current Python stack if an exception was raised but the exception
has no traceback
* Disable faulthandler if an exception was raised (before it was only disabled
if no exception was raised)
* To display the current Python stack, call PyGILState_GetThisThreadState()
which works even if the GIL was released
Ezio Melotti [Tue, 24 Mar 2015 10:42:41 +0000 (12:42 +0200)]
#11468: improve unittest basic example. Initial patch by Florian Preinstorfer.
Victor Stinner [Mon, 23 Mar 2015 20:20:27 +0000 (21:20 +0100)]
Issue #23654: Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC)
Issue #23654: Turn off ICC's tail call optimization for the stack_overflow
generator. ICC turns the recursive tail call into a loop.
Patch written by Matt Frank.
Serhiy Storchaka [Mon, 23 Mar 2015 13:25:43 +0000 (15:25 +0200)]
Issue #21560: An attempt to write a data of wrong type no longer cause
GzipFile corruption. Original patch by Wolfgang Maier.
Raymond Hettinger [Sun, 22 Mar 2015 22:29:09 +0000 (15:29 -0700)]
Issue 23729: Document ElementTree namespace handling and fix an omission in the XPATH predicate table.
R David Murray [Sun, 22 Mar 2015 20:17:46 +0000 (16:17 -0400)]
#23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
R David Murray [Sun, 22 Mar 2015 19:18:23 +0000 (15:18 -0400)]
#23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.
Patch by James Rutherford, with additional cleaning up of the
'request' documentation by me.
R David Murray [Sun, 22 Mar 2015 16:33:46 +0000 (12:33 -0400)]
#23700: fix/improve comment
Benjamin Peterson [Sun, 22 Mar 2015 14:11:54 +0000 (10:11 -0400)]
clarify behavior of shutil.move when destination exists (closes #22933)
Patch by Mike Short.
Ned Deily [Sun, 22 Mar 2015 08:14:48 +0000 (01:14 -0700)]
Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.
Serhiy Storchaka [Sun, 22 Mar 2015 07:46:36 +0000 (09:46 +0200)]
Issue #22079: Deprecation warning now is issued in PyType_Ready() instead of
raising TypeError when statically allocated type subclasses dynamically
allocated type
Serhiy Storchaka [Sat, 21 Mar 2015 07:40:26 +0000 (09:40 +0200)]
Issue #22351: The nntplib.NNTP constructor no longer leaves the connection
and socket open until the garbage collector cleans them up. Patch by
Martin Panter.
R David Murray [Fri, 20 Mar 2015 15:31:38 +0000 (11:31 -0400)]
#11726: Make linecache docs reflect that all files are treated the same.
Being able to read non-python text files is not a purpose of linecache, but it
does work and people use it. This changeset adjusts the language to make it
clear that Python files are not treated uniquely, but does not go so far as to
say reading non-python files is explicitly supported.
Serhiy Storchaka [Fri, 20 Mar 2015 14:46:19 +0000 (16:46 +0200)]
Issue #23681: Fixed Python 2 to 3 poring bugs.
Indexing bytes retiurns an integer, not bytes.
Serhiy Storchaka [Fri, 20 Mar 2015 14:11:20 +0000 (16:11 +0200)]
Issue #23700: NamedTemporaryFile iterator closed underlied file object in
some circunstances while NamedTemporaryFile object was living. This causes
failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__
to make tests passed.
Ned Deily [Thu, 19 Mar 2015 23:21:10 +0000 (16:21 -0700)]
Issue #23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
Serhiy Storchaka [Thu, 19 Mar 2015 17:52:50 +0000 (19:52 +0200)]
Fixed Misc/NEWS entry for issue #23136.
Serhiy Storchaka [Thu, 19 Mar 2015 17:13:37 +0000 (19:13 +0200)]
Issue #23136: _strptime now uniformly handles all days in week 0, including
Jan 30 of previous year. Based on patch by Jim Carroll.
Serhiy Storchaka [Thu, 19 Mar 2015 13:23:15 +0000 (15:23 +0200)]
Issue #23700: Iterator of NamedTemporaryFile now keeps a reference to
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
Benjamin Peterson [Thu, 19 Mar 2015 02:35:38 +0000 (21:35 -0500)]
wrap properly
Ethan Furman [Thu, 19 Mar 2015 01:19:30 +0000 (18:19 -0700)]
issue23673
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
Antoine Pitrou [Wed, 18 Mar 2015 22:56:46 +0000 (23:56 +0100)]
Issue #22903: The fake test case created by unittest.loader when it fails importing a test module is now picklable.
Antoine Pitrou [Wed, 18 Mar 2015 21:22:46 +0000 (22:22 +0100)]
Issue #23353: improve exceptions tests for generators
Victor Stinner [Wed, 18 Mar 2015 15:05:18 +0000 (16:05 +0100)]
_tracemalloc.c: Fix typo
Victor Stinner [Wed, 18 Mar 2015 13:16:50 +0000 (14:16 +0100)]
Issue #11726: Fix linecache example in the doc
Use a Python source file (linecache.__file__) instead of /etc/passwd.
Modify also linecache docstrings to clarify the linecache is written to cache
Python source files, not any text files.
Victor Stinner [Wed, 18 Mar 2015 13:14:42 +0000 (14:14 +0100)]
Issue #11726: clarify linecache doc: linecache is written to cache Python
source files, even if "it works" with other text files encoded to UTF-8.
Victor Stinner [Wed, 18 Mar 2015 12:58:49 +0000 (13:58 +0100)]
Issue #19428: Document that PyMarshal_ReadLongFromFile() and
PyMarshal_ReadShortFromFile() can fail.
Victor Stinner [Wed, 18 Mar 2015 10:37:42 +0000 (11:37 +0100)]
Issue #23456: Add missing @coroutine decorators in asyncio
Vinay Sajip [Wed, 18 Mar 2015 08:47:58 +0000 (08:47 +0000)]
Issue #23207: Improved kwarg validation.
Ned Deily [Tue, 17 Mar 2015 11:30:08 +0000 (04:30 -0700)]
Issue #22585: make URandomFDTests test case actually run
Berker Peksag [Tue, 17 Mar 2015 04:55:48 +0000 (06:55 +0200)]
Issue #23682: Delete Python 2.2 mention from distutils documentation.
Patch by Thomas Kluyver.
Benjamin Peterson [Mon, 16 Mar 2015 17:43:38 +0000 (12:43 -0500)]
versionchanged for rc4 removal (closes #23679)
Serhiy Storchaka [Mon, 16 Mar 2015 06:29:47 +0000 (08:29 +0200)]
Use non-zero and non-last positions in error handler tests.
Serhiy Storchaka [Sun, 15 Mar 2015 21:41:37 +0000 (23:41 +0200)]
Increased coverage of standard codec error handlers.
Eli Bendersky [Sun, 15 Mar 2015 03:14:23 +0000 (20:14 -0700)]
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element
The current documentation only mentions heap[0] as the smallest element in the
beginning, and not in any of the methods' docs. There's no method to access the
minimal element without popping it, and the documentation of nsmallest is
confusing because it may suggest that min() is the way to go for n==1.
Berker Peksag [Sat, 14 Mar 2015 23:51:56 +0000 (01:51 +0200)]
Issue #23568: Add rdivmod support to MagicMock() objects.
Patch by Håkan Lövdahl.
Serhiy Storchaka [Sat, 14 Mar 2015 19:32:57 +0000 (21:32 +0200)]
Fix minor docs markup errors.
Steve Dower [Sat, 14 Mar 2015 18:38:27 +0000 (11:38 -0700)]
Fixes incorrect use of GetLastError where errno should be used.
Benjamin Peterson [Fri, 13 Mar 2015 21:21:23 +0000 (16:21 -0500)]
__getslice__ certainly won't appear in the output
Brett Cannon [Fri, 13 Mar 2015 16:49:44 +0000 (12:49 -0400)]
Make the case to only support Python 2.7 when supporting 2/3 simultaneously
Serhiy Storchaka [Fri, 13 Mar 2015 07:05:01 +0000 (09:05 +0200)]
Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Patch by Demian Brecht.
Serhiy Storchaka [Fri, 13 Mar 2015 06:25:26 +0000 (08:25 +0200)]
Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
Potts.
Benjamin Peterson [Fri, 13 Mar 2015 03:41:06 +0000 (22:41 -0500)]
use the meth role for ZipFile.open
Berker Peksag [Fri, 13 Mar 2015 00:55:45 +0000 (02:55 +0200)]
Issue #23081: Document that PySequence_List also accepts iterables.
Patch by Lars Buitinck.
Berker Peksag [Fri, 13 Mar 2015 00:29:54 +0000 (02:29 +0200)]
Issue #22154: Add an example to show context management protocol support of ZipFile.open().
Patch by Mike Short.
Serhiy Storchaka [Thu, 12 Mar 2015 19:56:08 +0000 (21:56 +0200)]
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
Berker Peksag [Thu, 12 Mar 2015 16:50:49 +0000 (18:50 +0200)]
Issue #20617: Remove unused import in test_ssl.
Patch by Mark Lawrence.
Victor Stinner [Thu, 12 Mar 2015 09:28:24 +0000 (10:28 +0100)]
Issue #23605: Refactor os.walk() tests to also run them on os.fwalk()
Serhiy Storchaka [Thu, 12 Mar 2015 09:13:36 +0000 (11:13 +0200)]
Issue #22928: Disabled HTTP header injections in http.client.
Original patch by Demian Brecht.
Serhiy Storchaka [Wed, 11 Mar 2015 16:20:35 +0000 (18:20 +0200)]
Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet.
Serhiy Storchaka [Wed, 11 Mar 2015 15:18:03 +0000 (17:18 +0200)]
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload(). Patch by Thomas Kluyver.
Steve Dower [Wed, 11 Mar 2015 02:38:25 +0000 (19:38 -0700)]
Removes unused format string insertion in launcher.c.
Antoine Pitrou [Tue, 10 Mar 2015 21:32:00 +0000 (22:32 +0100)]
Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects.
Steve Dower [Tue, 10 Mar 2015 20:17:21 +0000 (13:17 -0700)]
Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls
Victor Stinner [Tue, 10 Mar 2015 15:32:29 +0000 (16:32 +0100)]
asyncio: Fix repr(BaseSubprocessTransport) if it didn't start yet
Replace "running" with "not started" and don't show the pid if the subprocess
didn't start yet.
Victor Stinner [Tue, 10 Mar 2015 15:27:54 +0000 (16:27 +0100)]
asyncio doc: changes on the Queue API missed Python 3.4.3 release
Berker Peksag [Tue, 10 Mar 2015 12:47:15 +0000 (14:47 +0200)]
Issue #23432: Remove duplicate content from SystemExit docs.
Also, document SystemExit.code attribute explicitly.
Victor Stinner [Tue, 10 Mar 2015 12:31:47 +0000 (13:31 +0100)]
Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example
Benjamin Peterson [Mon, 9 Mar 2015 14:37:50 +0000 (10:37 -0400)]
fix up import style
Ned Deily [Mon, 9 Mar 2015 08:55:02 +0000 (01:55 -0700)]
Issue #23617: Correct plurals typo noted by Kentrell Johnson.
Benjamin Peterson [Sun, 8 Mar 2015 13:42:25 +0000 (09:42 -0400)]
indicate correct version (closes #23608)
Serhiy Storchaka [Sun, 8 Mar 2015 07:16:40 +0000 (09:16 +0200)]
Issue #21619: Cleaned up test_broken_pipe_cleanup.
Patch by Martin Panter.
Antoine Pitrou [Sat, 7 Mar 2015 23:15:05 +0000 (00:15 +0100)]
Issue #20876: correctly close temporary file in test.support.fs_is_case_insensitive()
Benjamin Peterson [Sat, 7 Mar 2015 14:34:16 +0000 (09:34 -0500)]
replace Amazon links in the documentation (closes #23579)
Patch by Sayan Chowdhury.
Serhiy Storchaka [Fri, 6 Mar 2015 21:32:54 +0000 (23:32 +0200)]
Issue #22853: Added regression test for using multiprocessing.Queue at import
time. Patch by Davin Potts.
Benjamin Peterson [Fri, 6 Mar 2015 14:10:26 +0000 (09:10 -0500)]
remove redundant test
Benjamin Peterson [Fri, 6 Mar 2015 14:08:44 +0000 (09:08 -0500)]
fix potential refleak in PyFloat_AsDouble (closes #23590)
Ned Deily [Fri, 6 Mar 2015 01:44:10 +0000 (17:44 -0800)]
Issue #23593: fix Misc/NEWS entries
Ned Deily [Fri, 6 Mar 2015 01:34:24 +0000 (17:34 -0800)]
Issue #23594: Update OS X 10.5 installer build to use OpenSSL 1.0.2.
Benjamin Peterson [Thu, 5 Mar 2015 04:18:57 +0000 (23:18 -0500)]
use _import_symbols to import VERIFY_* constants
Benjamin Peterson [Thu, 5 Mar 2015 04:18:48 +0000 (23:18 -0500)]
adjust test_crl_check for trusted first being default
Benjamin Peterson [Thu, 5 Mar 2015 03:49:41 +0000 (22:49 -0500)]
expose X509_V_FLAG_TRUSTED_FIRST
Benjamin Peterson [Thu, 5 Mar 2015 03:11:12 +0000 (22:11 -0500)]
enable X509_V_FLAG_TRUSTED_FIRST when possible (closes #23476)
Victor Stinner [Thu, 5 Mar 2015 01:38:41 +0000 (02:38 +0100)]
Issue #21619: Try to fix test_broken_pipe_cleanup()
Antoine Pitrou [Wed, 4 Mar 2015 19:51:55 +0000 (20:51 +0100)]
Issue #23576: Avoid stalling in SSL reads when EOF has been reached in the SSL layer but the underlying connection hasn't been closed.
Serhiy Storchaka [Wed, 4 Mar 2015 07:43:27 +0000 (09:43 +0200)]
Issue #23504: Added an __all__ to the types module.
Benjamin Peterson [Mon, 2 Mar 2015 18:23:41 +0000 (13:23 -0500)]
merge 3.3 (#23362)
Benjamin Peterson [Mon, 2 Mar 2015 18:23:25 +0000 (13:23 -0500)]
use PyMem_NEW to detect overflow (closes #23362)
Benjamin Peterson [Mon, 2 Mar 2015 16:18:40 +0000 (11:18 -0500)]
merge 3.3 (#23367)
Benjamin Peterson [Mon, 2 Mar 2015 16:17:05 +0000 (11:17 -0500)]
fix possible overflow bugs in unicodedata (closes #23367)
Steve Dower [Mon, 2 Mar 2015 16:05:27 +0000 (08:05 -0800)]
Issue #18382: Zero-length messages are consumed by ReadFile on Windows 8 and later
Benjamin Peterson [Mon, 2 Mar 2015 14:31:40 +0000 (09:31 -0500)]
wrap everything at 80 chars
Benjamin Peterson [Mon, 2 Mar 2015 14:27:43 +0000 (09:27 -0500)]
link to the correct dis method or function (closes #23561)
Serhiy Storchaka [Mon, 2 Mar 2015 14:32:29 +0000 (16:32 +0200)]
Added more tests for urllib.parse utility functions.
These functions are not documented but used in third-party code.
Berker Peksag [Mon, 2 Mar 2015 05:40:36 +0000 (07:40 +0200)]
Issue #23527: Update Gmail port number for STARTTLS to 587.
Patch by Alex Shkop.
Berker Peksag [Mon, 2 Mar 2015 04:53:33 +0000 (06:53 +0200)]
Issue #23477: Improve test coverage of wsgiref.simple_server.
The test checks that the environ argument contains correct headers,
querystring and path information.
Patch by Alex Shkop.
Berker Peksag [Mon, 2 Mar 2015 04:33:30 +0000 (06:33 +0200)]
Issue #20521: Change ``TOS`` to TOS in dis documentation.
TOS is an abbreviation of top-of-stack.
Patch by Sven Berkvens-Matthijsse.