summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
2019-03-03Version bump & copyright year update for 3.4.10rc1.v3.4.10rc1Larry Hastings-1/+1
2018-01-23Bump version and copyright year for 3.4.8rc1.v3.4.8rc1Larry Hastings-1/+1
2017-01-01merge 3.3Benjamin Peterson-1/+1
2017-01-01ring in 2017 for PythonBenjamin Peterson-1/+1
2016-01-012016 will be another year of writing copyrighted codeBenjamin Peterson-1/+1
2016-01-01merge 3.3Benjamin Peterson-1/+1
2015-11-07Issue #24802: Copy bytes-like objects to null-terminated buffers if necessaryMartin Panter-16/+32
This avoids possible buffer overreads when int(), float(), compile(), exec() and eval() are passed bytes-like objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch by John Leitch, Serhiy Storchaka and Martin Panter.
2015-11-02Issue #25523: Correct "a" article to "an" articleMartin Panter-2/+2
This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
2015-10-10Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by EryksunMartin Panter-1/+3
Also factored out some test cases into a new PtyTests class.
2015-10-07Various minor typos in documentation and commentsMartin Panter-2/+2
2015-10-01Issue #25280: Import trace messages emitted in verbose (-v) mode are noSerhiy Storchaka-57/+58
longer formatted twice.
2015-10-01Issue #25003: os.urandom() doesn't use getentropy() on Solaris becauseVictor Stinner-4/+8
getentropy() is blocking, whereas os.urandom() should not block. getentropy() is supported since Solaris 11.3.
2015-09-04Fix race condition in create_stdio()Victor Stinner-40/+35
Issue #24891: Fix a race condition at Python startup if the file descriptor of stdin (0), stdout (1) or stderr (2) is closed while Python is creating sys.stdin, sys.stdout and sys.stderr objects. These attributes are now set to None if the creation of the object failed, instead of raising an OSError exception. Initial patch written by Marco Paolini.
2015-07-27Issue #24728: Fix building without threads.Berker Peksag-0/+4
Patch by Louis Dassy.
2015-06-21Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka-1/+1
2015-06-21Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.Serhiy Storchaka-1/+1
Patch by Michael Ensslin.
2015-06-11Fixed indentation of Python examples in C comments.Serhiy Storchaka-2/+2
2015-06-02Issue 24366: Indent code (thanks to li4ick for reporting).Yury Selivanov-1/+1
2015-05-03be more robust against the filters list changing under us (closes #24096)Benjamin Peterson-6/+16
2015-04-19Issue #23998: PyImport_ReInitLock() now checks for lock allocation errorChristian Heimes-1/+5
2015-06-02Issue 24366: Merge 3.3Yury Selivanov-1/+1
2015-05-30Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),Serhiy Storchaka-6/+11
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly.
2015-05-18Issue #24102: Fixed exception type checking in standard error handlers.Serhiy Storchaka-24/+18
2015-05-07shorten capsule name macro; it doesn't need to be so longBenjamin Peterson-4/+4
2015-05-03merge 3.3 (#24096)Benjamin Peterson-10/+27
2015-04-24remove dead *-import checking code (closes #24049)Benjamin Peterson-31/+0
2015-04-19Issue #23998: PyImport_ReInitLock() now checks for lock allocation errorChristian Heimes-1/+5
2015-04-19Fixed error message for the "u#" format code.Serhiy Storchaka-3/+4
2015-01-04merge 3.2 (closes #23165)Benjamin Peterson-3/+13
2015-01-04add some overflow checks before multiplying (closes #23165)Benjamin Peterson-3/+13
2014-12-31merge 3.2Benjamin Peterson-1/+1
2014-12-31update for copyright for 2015Benjamin Peterson-1/+1
2014-10-04Copyright year update, add version to licenses.v3.2.6rc1Georg Brandl-1/+1
2014-10-04Issue #22518: Fixed integer overflow issues in "backslashreplace",v3.3.6rc1Serhiy Storchaka-2/+6
"xmlcharrefreplace", and "surrogatepass" error handlers.
2015-04-02Issue #22977: Fixed formatting Windows error messages on Wine.Serhiy Storchaka-2/+2
Patch by Martin Panter.
2015-03-30Issue #22585: os.urandom() now releases the GIL when the getentropy() is usedVictor Stinner-6/+14
(OpenBSD 5.6+).
2015-03-25Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),Victor Stinner-1/+8
close the binary file to fix a resource warning.
2015-03-25Issue #23571: Fix reentrant call to Py_FatalError()Victor Stinner-16/+27
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.
2015-03-24Issue #23571: Py_FatalError() now tries to flush sys.stdout and sys.stderrVictor Stinner-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.
2015-03-24Issue #23571: Enhance Py_FatalError()Victor Stinner-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
2015-03-14Fixes incorrect use of GetLastError where errno should be used.Steve Dower-6/+6
2015-03-11Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet.Serhiy Storchaka-2/+2
2015-02-16Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka-2/+2
overflows. Added few missed PyErr_NoMemory().
2015-02-14avoid reading unallocated memory when argc == 0 (closes #22633)Benjamin Peterson-6/+9
2015-02-03Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka-13/+21
and PyObject_AsWriteBuffer().
2015-02-02revert lineno and col_offset changes from #16795 (closes #21295)Benjamin Peterson-3917/+3908
2015-01-31Issue #23353: Fix the exception handling of generators in PyEval_EvalFrameEx().Victor Stinner-3/+4
At entry, save or swap the exception state even if PyEval_EvalFrameEx() is called with throwflag=0. At exit, the exception state is now always restored or swapped, not only if why is WHY_YIELD or WHY_RETURN. Patch co-written with Antoine Pitrou.
2015-01-28Fixed memory leak in marshal.Serhiy Storchaka-1/+3
2015-01-18Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka-1/+1
2015-01-04merge 3.3 (closes #23165)Benjamin Peterson-3/+13