summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22585: os.urandom() now releases the GIL when the getentropy() is usedVictor Stinner2015-03-301-6/+14
| | | | (OpenBSD 5.6+).
* Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.Serhiy Storchaka2015-03-301-6/+2
|
* Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case ofSerhiy Storchaka2015-03-301-7/+4
| | | | MemoryError.
* #23745: handle duplicate MIME parameter names in new parser.R David Murray2015-03-303-7/+139
| | | | | | | | | | This mimics get_param's error handling for the most part. It is slightly better in some regards as get_param can produce some really weird results for duplicate *0* parts. It departs from get_param slightly in that if we have a mix of non-extended and extended pieces for the same parameter name, the new parser assumes they were all supposed to be extended and concatenates all the values, whereas get_param always picks the non-extended parameter value. All of this error recovery is pretty much arbitrary decisions...
* Issue #22390: test.regrtest now emits a warning if temporary files orSerhiy Storchaka2015-03-292-15/+14
| | | | directories are left after running a test.
* Closes #23801 - Ignore entire preamble to multipart in cgi.FieldStorageDonald Stufft2015-03-293-2/+29
|
* #23792: Ignore KeyboardInterrupt when the pydoc pager is active.R David Murray2015-03-292-3/+14
| | | | | | | | | | | | | | | | | | | | Previously, if you hit ctl-c while the pager was active, the python that launched the subprocess for the pager would see the KeyboardInterrupt in the __exit__ method of the subprocess context manager where it was waiting for the subprocess to complete, ending the wait. This would leave the pager running, while the interactive interpreter, after handling the exception by printing it, would go back to trying to post a prompt...but the pager would generally have the terminal in raw mode, and in any case would be still trying to read from stdin. On some systems, even exiting python at that point would not restore the terminal mode. The problem with raw mode could also happen if ctl-C was hit when pydoc was called from the shell command line and the pager was active. Instead, we now wait on the subprocess in a loop, ignoring KeyboardInterrupt just like the pager does, until the pager actually exits. (Note: this was a regression relative to python2...in python2 the pager is called via system, and system does not return until the pager exits.)
* Issue #23803: Fixed str.partition() and str.rpartition() when a separatorSerhiy Storchaka2015-03-293-5/+10
| | | | is wider then partitioned string.
* Make some tests more frienly to MemoryError.Serhiy Storchaka2015-03-286-16/+43
| | | | Free memory, unlock hanging threads.
* Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-OgVictor Stinner2015-03-271-1/+1
| | | | -Og does not optimize the C code, it's just "fast debugging".
* asyncio: Fix _SelectorTransport.__repr__() if the event loop is closedVictor Stinner2015-03-272-1/+6
|
* Check that failed writerow() doesn't produce change a file.Serhiy Storchaka2015-03-251-14/+16
|
* Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.Serhiy Storchaka2015-03-253-1/+4
|
* Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),Victor Stinner2015-03-251-1/+8
| | | | close the binary file to fix a resource warning.
* Issue #23571: Fix reentrant call to Py_FatalError()Victor Stinner2015-03-251-17/+28
| | | | | | 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.
* Fixed bytes warnings when run tests with -vv.Serhiy Storchaka2015-03-242-6/+6
|
* Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-244-6/+64
| | | | writer failed in BufferedRWPair.close().
* Issue #23671: string.Template now allows to specify the "self" parameter asSerhiy Storchaka2015-03-244-3/+48
| | | | | keyword argument. string.Formatter now allows to specify the "self" and the "format_string" parameters as keyword arguments.
* Added tests for mixed kinds of Unicode strings.Serhiy Storchaka2015-03-241-0/+150
|
* Issue #23583: Added tests for standard IO streams in IDLE.Serhiy Storchaka2015-03-242-0/+238
|
* Issue #23571: Py_FatalError() now tries to flush sys.stdout and sys.stderrVictor Stinner2015-03-241-4/+26
| | | | | 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.
* Issue #23571: Enhance Py_FatalError()Victor Stinner2015-03-241-13/+60
| | | | | | | | | * 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
* #11468: improve unittest basic example. Initial patch by Florian Preinstorfer.Ezio Melotti2015-03-242-37/+29
|
* Issue #23654: Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC)Victor Stinner2015-03-232-1/+9
| | | | | | | 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.
* Issue #21560: An attempt to write a data of wrong type no longer causeSerhiy Storchaka2015-03-233-2/+38
| | | | GzipFile corruption. Original patch by Wolfgang Maier.
* Issue 23729: Document ElementTree namespace handling and fix an omission in ↵Raymond Hettinger2015-03-221-0/+68
| | | | the XPATH predicate table.
* #23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.R David Murray2015-03-222-5/+8
|
* #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.R David Murray2015-03-225-41/+106
| | | | | | | | 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.
* #23700: fix/improve commentR David Murray2015-03-221-2/+4
|
* clarify behavior of shutil.move when destination exists (closes #22933)Benjamin Peterson2015-03-221-6/+3
| | | | Patch by Mike Short.
* Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.Ned Deily2015-03-222-1/+4
|
* Issue #22079: Deprecation warning now is issued in PyType_Ready() instead ofSerhiy Storchaka2015-03-221-5/+8
| | | | | raising TypeError when statically allocated type subclasses dynamically allocated type
* Issue #22351: The nntplib.NNTP constructor no longer leaves the connectionSerhiy Storchaka2015-03-213-15/+127
| | | | | and socket open until the garbage collector cleans them up. Patch by Martin Panter.
* #11726: Make linecache docs reflect that all files are treated the same.R David Murray2015-03-201-2/+2
| | | | | | | 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.
* Issue #23681: Fixed Python 2 to 3 poring bugs.Serhiy Storchaka2015-03-205-14/+12
| | | | Indexing bytes retiurns an integer, not bytes.
* Issue #23700: NamedTemporaryFile iterator closed underlied file object inSerhiy Storchaka2015-03-201-3/+5
| | | | | | some circunstances while NamedTemporaryFile object was living. This causes failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__ to make tests passed.
* Issue #23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a.Ned Deily2015-03-193-12/+12
|
* Fixed Misc/NEWS entry for issue #23136.Serhiy Storchaka2015-03-191-1/+1
|
* Issue #23136: _strptime now uniformly handles all days in week 0, includingSerhiy Storchaka2015-03-193-5/+26
| | | | Jan 30 of previous year. Based on patch by Jim Carroll.
* Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-193-1/+19
| | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
* wrap properlyBenjamin Peterson2015-03-191-2/+2
|
* issue23673Ethan Furman2015-03-194-9/+48
| | | | | | | | | 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
* Issue #22903: The fake test case created by unittest.loader when it fails ↵Antoine Pitrou2015-03-183-9/+32
| | | | importing a test module is now picklable.
* Issue #23353: improve exceptions tests for generatorsAntoine Pitrou2015-03-181-0/+46
|
* _tracemalloc.c: Fix typoVictor Stinner2015-03-181-1/+1
|
* Issue #11726: Fix linecache example in the docVictor Stinner2015-03-182-4/+4
| | | | | | | 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.
* Issue #11726: clarify linecache doc: linecache is written to cache PythonVictor Stinner2015-03-181-2/+5
| | | | source files, even if "it works" with other text files encoded to UTF-8.
* Issue #19428: Document that PyMarshal_ReadLongFromFile() andVictor Stinner2015-03-181-6/+15
| | | | PyMarshal_ReadShortFromFile() can fail.
* Issue #23456: Add missing @coroutine decorators in asyncioVictor Stinner2015-03-183-0/+5
|
* Issue #23207: Improved kwarg validation.Vinay Sajip2015-03-182-1/+5
|