summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Added the const qualifier for char* argument of Py_EnterRecursiveCall().Serhiy Storchaka2015-06-211-1/+1
|
* Fixed indentation of Python examples in C comments.Serhiy Storchaka2015-06-101-2/+2
|
* sync opcode prediction code with python 3Benjamin Peterson2015-06-011-10/+4
|
* Issue #19543: Emit deprecation warning for known non-text encodings.Serhiy Storchaka2015-05-311-27/+182
| | | | | | | | | | Backported issues #19619: encode() and decode() methods and constructors of str, unicode and bytearray classes now emit deprecation warning for known non-text encodings when Python is ran with the -3 option. Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the internal codec marking system added to emit deprecation warning for known non-text encodings at stream construction time when Python is ran with the -3 option.
* Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),Serhiy Storchaka2015-05-301-22/+21
| | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly.
* backport computed gotos (#4753)Benjamin Peterson2015-05-283-230/+854
|
* Issue #24102: Fixed exception type checking in standard error handlers.Serhiy Storchaka2015-05-181-8/+9
|
* Issue #23998: PyImport_ReInitLock() now checks for lock allocation errorChristian Heimes2015-04-191-1/+5
|
* Issue #23115: os.urandom() now releases the GIL when the getentropy() is usedVictor Stinner2015-03-301-6/+14
| | | | (OpenBSD 5.6+).
* Issue #23781: Add private helper function _PyErr_ReplaceException() thatSerhiy Storchaka2015-03-301-0/+20
| | | | | corresponds _PyErr_ChainExceptions() in Python 3 to help porting patches from Python 3.
* Issue #23458: On POSIX, the file descriptor kept open by os.urandom() is nowVictor Stinner2015-02-241-0/+9
| | | | set to non inheritable
* Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-3/+5
| | | | overflows. Added few missed PyErr_NoMemory().
* Issue #23115: Fixed compilation on OpenBSD (Py_MIN is not defined in 2.7).Serhiy Storchaka2015-02-161-1/+1
|
* avoid reading unallocated memory when argc == 0 (closes #22633)Benjamin Peterson2015-02-141-1/+2
|
* update for copyright for 2015Benjamin Peterson2015-01-011-1/+1
|
* use getentropy when available (backport of 75ede5bec8db) (closes #23115)Benjamin Peterson2014-12-261-6/+35
|
* pop the loop block even for infinite while loops (closes #23048)Benjamin Peterson2014-12-131-3/+2
|
* Issue #18028: Fix aliasing issue in READ_TIMESTAMP() of ceval.c on x86_64,Victor Stinner2014-12-121-3/+5
| | | | when Python is configure with --with-tsc. Patch written by Christian Heimes.
* Removed duplicated words in in comments and docs.Serhiy Storchaka2014-12-013-3/+3
|
* Issue #21963: backout issue #1856 patch (avoid crashes and lockups whenAntoine Pitrou2014-11-213-22/+3
| | | | | | daemon threads run while the interpreter is shutting down; instead, these threads are now killed when they try to take the GIL), as it seems to break some existing code.
* Issue #22453: Fexed reference leaks when format error messages in ceval.c.Serhiy Storchaka2014-11-182-10/+22
| | | | Warn against the use of leaking macro PyObject_REPR().
* Issue #22193: Fixed integer overflow error in sys.getsizeof().Serhiy Storchaka2014-11-151-4/+9
| | | | Fixed an error in _PySys_GetSizeOf declaration.
* Fixed compilation error introduced in 3f7519f633ed (issue #22518).Serhiy Storchaka2014-10-041-2/+1
|
* Issue #22518: Fixed integer overflow issues in "backslashreplace" andSerhiy Storchaka2014-10-041-2/+12
| | | | "xmlcharrefreplace" error handlers.
* Fixed reference leak in the "backslashreplace" error handler.Serhiy Storchaka2014-09-231-1/+3
|
* PEP 466: backport persistent urandom fd (closes #21305)Benjamin Peterson2014-08-282-16/+79
| | | | Patch from Alex Gaynor.
* Issue #22193: Added private function _PySys_GetSizeOf() needed to implementSerhiy Storchaka2014-08-141-33/+42
| | | | some __sizeof__() methods.
* remove castsBenjamin Peterson2014-08-101-4/+4
|
* restore runtime exec test (#21591)Benjamin Peterson2014-08-101-0/+9
|
* Issue #21591: Handle exec backwards compatibility in the AST builder.Dirkjan Ochtman2014-07-292-9/+12
| | | | | | | Instead of deferring until runtime. This makes sure we hit the right conditions in dealing with unqualified exec statements. Reviewed by Victor Stinner. Test follows in a later commit.
* correct ref counting of default_action (closes #22017)Benjamin Peterson2014-07-201-0/+1
|
* add missing 'because' (closes #22008)Benjamin Peterson2014-07-181-1/+1
| | | | Patch from A Kaptur.
* revert tstate_delete_common, since it's pretty much wrongBenjamin Peterson2014-06-171-8/+1
|
* avoid a deadlock with the interpreter head lock and the GIL during finalizationBenjamin Peterson2014-06-171-1/+8
|
* check if the thread is finalizing after retaking the GILBenjamin Peterson2014-06-171-0/+7
|
* avoid crashes and lockups from daemon threads during interpreter shutdown ↵Benjamin Peterson2014-06-173-3/+16
| | | | (#1856)
* Issue #19362: Tweek len() doc and docstring to expand the indicated range ofTerry Jan Reedy2014-06-161-1/+1
| | | | arguments. Original patch by Gareth Rees.
* Issue #19656: Running Python with the -3 option now also warns aboutSerhiy Storchaka2014-06-011-5/+17
| | | | non-ascii bytes literals.
* Issue #21523: Fix over-pessimistic computation of the stack effect of some ↵Antoine Pitrou2014-05-231-2/+6
| | | | | | | opcodes in the compiler. This also fixes a quadratic compilation time issue noticeable when compiling code with a large number of "and" and "or" operators.
* Issue #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka2014-02-092-4/+2
|
* fix error checkBenjamin Peterson2014-01-161-1/+1
|
* update copyright yearBenjamin Peterson2014-01-011-1/+1
|
* Issue #16404: Add checks for return value of PyInt_FromLong() inSerhiy Storchaka2013-12-171-0/+4
| | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
* Fixed leak in sys.flags initialization.Serhiy Storchaka2013-12-171-0/+1
|
* Issue #19638: Raise ValueError instead of crashing when converting billion ↵Mark Dickinson2013-11-261-17/+48
| | | | character strings to float.
* Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in theChristian Heimes2013-10-221-0/+5
| | | | Python executable and not removed by the linker's optimizer.
* Closes #15213: update comment for _PyOS_URandomGeorg Brandl2013-10-061-2/+3
|
* #18839: document that sys.exit() will not accept a non-integer numeric value ↵Ezio Melotti2013-08-261-1/+1
| | | | as exit status.
* Issue #13461: Fix a crash in the TextIOWrapper.tell method and in the "replace"Serhiy Storchaka2013-08-201-1/+1
| | | | error handler on 64-bit platforms. Patch by Yogesh Chaudhari.
* Issue #18756: Improve error reporting in os.urandom() when the failure is ↵Antoine Pitrou2013-08-161-2/+6
| | | | due to something else than /dev/urandom not existing.