Victor Stinner
a87633e596
Issue #25003 : os.urandom() doesn't use getentropy() on Solaris because
...
getentropy() is blocking, whereas os.urandom() should not block. getentropy()
is supported since Solaris 11.3.
2015-10-01 09:57:26 +02:00
Benjamin Peterson
14462d486b
remove tabs from ceval.c ( closes #24895 )
2015-08-19 20:38:39 -07:00
Benjamin Peterson
0287f2f7cb
check return value of PyString_FromStringAndSize for NULL ( closes #24734 )
...
Patch by Pankaj Sharma.
2015-07-27 07:47:21 -07:00
Serhiy Storchaka
1670af6c33
Added the const qualifier for char* argument of Py_EnterRecursiveCall().
2015-06-21 16:26:28 +03:00
Serhiy Storchaka
f0aa88f6e8
Fixed indentation of Python examples in C comments.
2015-06-11 00:06:27 +03:00
Benjamin Peterson
cc06dbfc73
sync opcode prediction code with python 3
2015-06-01 18:24:31 -05:00
Serhiy Storchaka
c7797dc748
Issue #19543 : Emit deprecation warning for known non-text encodings.
...
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.
2015-05-31 20:21:00 +03:00
Serhiy Storchaka
5127ed727c
Issue #24115 : Update uses of PyObject_IsTrue(), PyObject_Not(),
...
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
2015-05-30 17:45:12 +03:00
Benjamin Peterson
2c992a0788
backport computed gotos ( #4753 )
2015-05-28 12:45:31 -05:00
Serhiy Storchaka
14e10a19f7
Issue #24102 : Fixed exception type checking in standard error handlers.
2015-05-18 16:08:38 +03:00
Christian Heimes
3ce7873fdd
Issue #23998 : PyImport_ReInitLock() now checks for lock allocation error
2015-04-19 21:08:28 +02:00
Victor Stinner
e9932451ae
Issue #23115 : os.urandom() now releases the GIL when the getentropy() is used
...
(OpenBSD 5.6+).
2015-03-30 11:22:13 +02:00
Serhiy Storchaka
aa64c46ac9
Issue #23781 : Add private helper function _PyErr_ReplaceException() that
...
corresponds _PyErr_ChainExceptions() in Python 3 to help porting patches
from Python 3.
2015-03-30 09:48:42 +03:00
Victor Stinner
e0a0bd6eaa
Issue #23458 : On POSIX, the file descriptor kept open by os.urandom() is now
...
set to non inheritable
2015-02-24 14:30:43 +01:00
Serhiy Storchaka
a2269d074b
Issue #23446 : Use PyMem_New instead of PyMem_Malloc to avoid possible integer
...
overflows. Added few missed PyErr_NoMemory().
2015-02-16 13:16:07 +02:00
Serhiy Storchaka
e8d750c05b
Issue #23115 : Fixed compilation on OpenBSD (Py_MIN is not defined in 2.7).
2015-02-16 08:05:10 +02:00
Benjamin Peterson
4cc93db9b3
avoid reading unallocated memory when argc == 0 ( closes #22633 )
2015-02-14 15:17:25 -05:00
Benjamin Peterson
dd87637d04
update for copyright for 2015
2014-12-31 18:09:36 -06:00
Benjamin Peterson
27c269a1fe
use getentropy when available (backport of 75ede5bec8db) ( closes #23115 )
2014-12-26 11:09:00 -06:00
Benjamin Peterson
7a6a97352d
pop the loop block even for infinite while loops ( closes #23048 )
2014-12-13 16:06:19 -05:00
Victor Stinner
2b565bb6f3
Issue #18028 : Fix aliasing issue in READ_TIMESTAMP() of ceval.c on x86_64,
...
when Python is configure with --with-tsc. Patch written by Christian Heimes.
2014-12-12 13:19:00 +01:00
Serhiy Storchaka
0f8f784a77
Removed duplicated words in in comments and docs.
2014-12-01 18:16:30 +02:00
Antoine Pitrou
b9a4501179
Issue #21963 : backout issue #1856 patch (avoid crashes and lockups when
...
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.
2014-11-21 02:04:21 +01:00
Serhiy Storchaka
a86c091a73
Issue #22453 : Fexed reference leaks when format error messages in ceval.c.
...
Warn against the use of leaking macro PyObject_REPR().
2014-11-19 00:11:05 +02:00
Serhiy Storchaka
f9b2aa2efe
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:01 +02:00