summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* yet another WITH_THREADS typoChristian Heimes2013-07-311-1/+1
|
* Fix _sha3 module to actually release the GIL around its update function.Christian Heimes2013-07-311-1/+1
| | | | gcov is great.
* Test Py_IncRef() and Py_DecRef() C functionsChristian Heimes2013-07-311-0/+11
|
* Fix use of uninitialized scalar variable, see 3f994367a979Christian Heimes2013-07-301-1/+3
| | | | CID 1058763
* Issue #18112: PEP 442 implementation (safe object finalization).Antoine Pitrou2013-07-306-113/+350
|
* Issue #18599: Fix name attribute of _sha1.sha1() object. It now returnsChristian Heimes2013-07-301-1/+1
|\ | | | | | | | | 'SHA1' instead of 'SHA'. Add more tests for hashlib and hash object attributes
| * Issue #18599: Fix name attribute of _sha1.sha1() object. It now returnsChristian Heimes2013-07-301-1/+1
| | | | | | | | 'SHA1' instead of 'SHA'.
| * Issue #15893: frozenmain.c now handles PyMem_Malloc() failureVictor Stinner2013-07-261-6/+10
| |
* | Restore the data block size to 62.Raymond Hettinger2013-07-281-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | The former block size traded away good fit within cache lines in order to gain faster division in deque_item(). However, compilers are getting smarter and can now replace the slow division operation with a fast integer multiply and right shift. Accordingly, it makes sense to go back to a size that lets blocks neatly fill entire cache-lines. GCC-4.8 and CLANG 4.0 both compute "x // 62" with something roughly equivalent to "x * 9520900167075897609 >> 69".
* | Assertions key off NDEBUGRaymond Hettinger2013-07-271-1/+1
| |
* | Issue #15893: Improve error handling in main() and Py_FrozenMain()Victor Stinner2013-07-271-0/+5
| | | | | | | | | | | | * handle _PyMem_RawStrdup() failure * Py_FrozenMain() releases memory on error * Py_FrozenMain() duplicates the old locale, as done in main()
* | Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.Christian Heimes2013-07-261-1/+1
|\ \ | |/ | | | | CID 486199
| * Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.Christian Heimes2013-07-261-1/+1
| | | | | | | | CID 486199
* | Issue #18559: Fix NULL pointer dereference error in _pickle moduleChristian Heimes2013-07-261-4/+6
|\ \ | |/
| * Issue #18559: Fix NULL pointer dereference error in _pickle moduleChristian Heimes2013-07-261-4/+6
| |
* | Issue #18519: the Python authorizer callback of sqlite3 must not raise ↵Victor Stinner2013-07-261-21/+20
| | | | | | | | | | | | | | Python exceptions The exception is printed if sqlite3.enable_callback_tracebacks(True) has been called, otherwise the exception is cleared.
* | Handle yet another potential failure in testcapiChristian Heimes2013-07-261-0/+2
|\ \ | |/ | | | | CID 1058280
| * Handle yet another potential failure in testcapiChristian Heimes2013-07-261-0/+2
| | | | | | | | CID 1058280
* | Check return value of PyLong_FromLong(X509_get_version()). It might be NULL ifChristian Heimes2013-07-261-0/+2
|\ \ | |/ | | | | | | X509_get_version() grows beyond our small int cache. CID 1058279
| * Check return value of PyLong_FromLong(X509_get_version()). It might be NULL ifChristian Heimes2013-07-261-0/+2
| | | | | | | | | | X509_get_version() grows beyond our small int cache. CID 1058279
* | remove surplus and wrong Py_DECREF() introduced in 33891989c9cfChristian Heimes2013-07-261-1/+0
|\ \ | |/
| * remove surplus and wrong Py_DECREF() introduced in 33891989c9cfChristian Heimes2013-07-261-1/+0
| |
* | Fix memory leaks and add checks for failing malloc() calls to testcapi moduleChristian Heimes2013-07-261-3/+16
|\ \ | |/ | | | | | | CID 1058288 Fix declaration-after-statement of d49f65ff4f3c
| * Fix declaration-after-statement of d49f65ff4f3cChristian Heimes2013-07-261-3/+7
| |
| * Fix memory leaks and add checks for failing malloc() calls to testcapi moduleChristian Heimes2013-07-261-0/+9
| | | | | | | | CID 1058288
* | Fix possible NULL pointer dereferences in testcapi moduleChristian Heimes2013-07-261-1/+7
|\ \ | |/ | | | | | | | | CID 1058280 CID 1058282 CID 1058284
| * Fix possible NULL pointer dereferences in testcapi moduleChristian Heimes2013-07-261-1/+7
| | | | | | | | | | | | CID 1058280 CID 1058282 CID 1058284
* | Fix possible NULL pointer dereference in PyCurses_Start_Color()Christian Heimes2013-07-261-0/+4
|\ \ | |/ | | | | CID 1058276
| * Fix possible NULL pointer dereference in PyCurses_Start_Color()Christian Heimes2013-07-261-0/+4
| | | | | | | | CID 1058276
* | merge for issue #18556Brett Cannon2013-07-251-1/+5
|\ \ | |/
| * Issue #18556: Check the return value for PyUnicode_AsWideChar() inBrett Cannon2013-07-251-1/+5
| | | | | | | | | | | | U_set() from ctypes. CID #486657
* | Issue #18549: Eliminate dead code in socket_ntohl().Christian Heimes2013-07-251-2/+0
|\ \ | |/ | | | | CID 982369
| * Issue #18549: Eliminate dead code in socket_ntohl().Christian Heimes2013-07-251-2/+0
| | | | | | | | CID 982369
* | #16937: merge with 3.3.Ezio Melotti2013-07-251-1/+2
|\ \ | |/
| * #16937: document that stdin is always buffered, even when -u is used. Patch ↵Ezio Melotti2013-07-251-1/+2
| | | | | | | | by Elena Oat.
* | Issue #18520: Add a new PyStructSequence_InitType2() function, same thanVictor Stinner2013-07-228-28/+51
| | | | | | | | | | | | | | | | PyStructSequence_InitType() except that it has a return value (0 on success, -1 on error). * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure * Fix also some calls to PyDict_SetItemString(): handle error
* | Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes2013-07-221-4/+12
|\ \ | |/ | | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
| * Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes2013-07-221-4/+12
| | | | | | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
* | Issue #18488: Fix _pysqlite_final_callback()Victor Stinner2013-07-221-4/+4
| | | | | | | | | | | | | | | | | | Restore behaviour of Python 3.3: print the finalizer() error if sqlite3.enable_callback_tracebacks() has been called, clear the error otherwise. But keep (save/restore) also the AttributeError raised in _pysqlite_step_callback().
* | Now all error paths of _freeze_importlib use 'goto error' and the error ↵Christian Heimes2013-07-211-19/+18
|\ \ | |/ | | | | label cleans up all used resources.
| * Now all error paths of _freeze_importlib use 'goto error' and the error ↵Christian Heimes2013-07-211-19/+18
| | | | | | | | label cleans up all used resources.
* | Issue #18514: Fix unreachable Py_DECREF() call in PyCData_FromBaseObj()Christian Heimes2013-07-211-1/+1
|\ \ | |/
| * Issue #18514: Fix unreachable Py_DECREF() call in PyCData_FromBaseObj()Christian Heimes2013-07-211-1/+1
| |
* | Fix reference and memory leaks in _freeze_importlibChristian Heimes2013-07-211-0/+3
|\ \ | |/
| * Fix reference and memory leaks in _freeze_importlibChristian Heimes2013-07-211-0/+3
| |
* | Issue #18519, #18408: Fix sqlite authorizer callbackVictor Stinner2013-07-211-15/+23
| | | | | | | | | | If a previous call to the authorizer callback failed and raised an exception, don't call the Python authorizer callback, but just return SQLITE_DENY.
* | Minor code simplification by eliminating an unnecessary temporary variable.Raymond Hettinger2013-07-211-12/+6
| |
* | Check return value of PyEval_GetGlobals() for NULLChristian Heimes2013-07-201-2/+7
|\ \ | |/ | | | | CID 486814
| * Check return value of PyEval_GetGlobals() for NULLChristian Heimes2013-07-201-2/+7
| | | | | | | | CID 486814
* | Check return value of flush_character_buffer()Christian Heimes2013-07-201-1/+3
|\ \ | |/ | | | | CID 486663