summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge 3.5Victor Stinner2016-03-231-15/+1
|\
| * Enhance _tracemalloc debug modeVictor Stinner2016-03-231-1/+1
| | | | | | | | Issue #26588: Enhance assertion in set_reentrant()
| * Fix _tracemalloc start/stopVictor Stinner2016-03-231-14/+0
| | | | | | | | | | | | | | | | | | Issue #26588: Fix _tracemalloc start/stop: don't play with the reentrant flag. set_reentrant(1) fails with an assertion error if tracemalloc_init() is called first in a thread A and tracemalloc_start() is called second in a thread B. The tracemalloc is imported in a thread A. Importing the module calls tracemalloc_init(). tracemalloc.start() is called in a thread B.
* | Issue #26588: remove debug traces from _tracemalloc.Victor Stinner2016-03-225-91/+5
| |
* | Issue #26588: skip test_warnings.test_tracemalloc()Victor Stinner2016-03-221-0/+1
| |
* | Issue #26588: more debug tracesVictor Stinner2016-03-221-1/+6
| |
* | Issue #26588: Don't call tracemalloc_init() at module initilizationVictor Stinner2016-03-221-0/+2
| | | | | | | | So it's possible to get debug messages in test_tracemalloc.
* | Issue #26588: one more assertionVictor Stinner2016-03-221-0/+1
| |
* | Add assertions on tracemalloc_reentrant_keyVictor Stinner2016-03-221-2/+8
| | | | | | | | Issue #26588.
* | Issue #26588: more assertionsVictor Stinner2016-03-221-2/+23
| |
* | Issue #26588: fix compilation on WindowsVictor Stinner2016-03-221-0/+2
| |
* | Issue #26588: add debug tracesVictor Stinner2016-03-223-5/+59
| | | | | | | | Try to debug random failure on buildbots.
* | regrtest: add time to outputVictor Stinner2016-03-222-6/+19
| | | | | | | | | | Timestamps should help to debug slow buildbots, and timeout and hang on buildbots.
* | Add C functions _PyTraceMalloc_Track()Victor Stinner2016-03-225-11/+300
| | | | | | | | | | | | | | | | Issue #26530: * Add C functions _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() to track memory blocks using the tracemalloc module. * Add _PyTraceMalloc_GetTraceback() to get the traceback of an object.
* | tracemalloc now supports domainsVictor Stinner2016-03-225-104/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26588: * The _tracemalloc now supports tracing memory allocations of multiple address spaces (domains). * Add domain parameter to tracemalloc_add_trace() and tracemalloc_remove_trace(). * tracemalloc_add_trace() now starts by removing the previous trace, if any. * _tracemalloc._get_traces() now returns a list of (domain, size, traceback_frames): the domain is new. * Add tracemalloc.DomainFilter * tracemalloc.Filter: add an optional domain parameter to the constructor and a domain attribute * Sublte change: use Py_uintptr_t rather than void* in the traces key. * Add tracemalloc_config.use_domain, currently hardcoded to 1
* | Remove _Py_hashtable_delete()Victor Stinner2016-03-222-8/+3
| | | | | | | | | | | | Issue #26588: Remove _Py_hashtable_delete() from hashtable.h since the function is not used. Keep the C code in hashtable.c as commented code if someone needs it later.
* | Simplify implementation of hashtable.cVictor Stinner2016-03-223-66/+17
| | | | | | | | | | | | | | | | | | | | | | Issue #26588: Remove copy_data, free_data and get_data_size callbacks from hashtable.h. These callbacks are not used in Python and makes the code more complex. Remove also the _Py_HASHTABLE_ENTRY_DATA_AS_VOID_P() macro which uses an unsafe pointer dereference (can cause memory alignment issue). Replace the macro usage with _Py_HASHTABLE_ENTRY_READ_DATA() which is implemented with the safe memcpy() function.
* | Issue #24266: Merge readline Ctrl+C handling from 3.5Martin Panter2016-03-222-0/+6
|\ \ | |/
| * Issue #24266: Cancel history search mode with Ctrl+C in Readline 7Martin Panter2016-03-222-0/+6
| |
* | merge 3.5 (#17167)Benjamin Peterson2016-03-211-1/+1
|\ \ | |/
| * merge 3.4 (#17167)Benjamin Peterson2016-03-211-1/+1
| |\
| | * remove useless $ keyword (closes #17167)Benjamin Peterson2016-03-211-1/+1
| | |
* | | Issue #15699: Merge readline fixup from 3.5Martin Panter2016-03-221-16/+3
|\ \ \ | |/ /
| * | Issue #15699: Reunite comment with variableMartin Panter2016-03-221-16/+3
| | |
* | | Issue #26588: Fix compilation warning on WindowsVictor Stinner2016-03-211-1/+1
| | |
* | | hashtable.h now supports keys of any sizeVictor Stinner2016-03-214-138/+294
| | | | | | | | | | | | | | | | | | Issue #26588: hashtable.h now supports keys of any size, not only sizeof(void*). It allows to support key larger than sizeof(void*), but also to use less memory for key smaller than sizeof(void*).
* | | cleanup iobase.cVictor Stinner2016-03-191-1/+1
| | | | | | | | | | | | casting iobase_finalize to destructor is not needed
* | | Fix test_ssl.test_refcycle()Victor Stinner2016-03-211-1/+1
| | | | | | | | | | | | | | | | | | Issue #26590: support.check_warnings() stores warnins, but ResourceWarning now comes with a reference to the socket object which indirectly keeps the socket alive.
* | | Add socket finalizerVictor Stinner2016-03-212-18/+56
| | | | | | | | | | | | | | | | | | | | | Issue #26590: Implement a safe finalizer for the _socket.socket type. It now releases the GIL to close the socket. Use PyErr_ResourceWarning() to raise the ResourceWarning to pass the socket object to the warning logger, to get the traceback where the socket was created (allocated).
* | | Ooops, revert changeset ea9efa06c137Victor Stinner2016-03-214-270/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change pushed by mistake, the patch is still under review :-/ """ _tracemalloc: add domain to trace keys * hashtable.h: key has now a variable size * _tracemalloc uses (pointer: void*, domain: unsigned int) as key for traces """
* | | Optimize bytes.replace(b'', b'.')Victor Stinner2016-03-215-18/+45
| | | | | | | | | | | | | | | Issue #26574: Optimize bytes.replace(b'', b'.') and bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider.
* | | _tracemalloc: add domain to trace keysVictor Stinner2016-03-184-121/+270
| | | | | | | | | | | | | | | * hashtable.h: key has now a variable size * _tracemalloc uses (pointer: void*, domain: unsigned int) as key for traces
* | | Merge with 3.5Terry Jan Reedy2016-03-201-2/+2
|\ \ \ | |/ /
| * | Issue #26525: Change ord example from nu to more easily recognized Euro sign.Terry Jan Reedy2016-03-201-2/+2
| | |
* | | Merge with 3.5Terry Jan Reedy2016-03-201-2/+4
|\ \ \ | |/ /
| * | Issue #15660: Further clarify 0 prefix for width specifier in formats.Terry Jan Reedy2016-03-201-2/+4
| | |
* | | Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-208-6/+10
|\ \ \ | |/ /
| * | Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-208-6/+10
| | |
* | | Issues #25643, #26581: Added new tests for detecting Python source code ↵Serhiy Storchaka2016-03-201-2/+81
|\ \ \ | |/ / | | | | | | encoding.
| * | Added new tests for detecting Python source code encoding.Serhiy Storchaka2016-03-201-2/+81
| | |
* | | Issue #12813: uuid.uuid4() no longer depends on ctypesBerker Peksag2016-03-201-1/+0
|\ \ \ | |/ / | | | | | | uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
| * | Issue #12813: uuid.uuid4() no longer depends on ctypesBerker Peksag2016-03-201-1/+0
| | | | | | | | | | | | uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
* | | Issue #19164: Improve exception message of uuid.UUID()Berker Peksag2016-03-201-1/+2
|\ \ \ | |/ / | | | | | | Patch by jgauthier.
| * | Issue #19164: Improve exception message of uuid.UUID()Berker Peksag2016-03-201-1/+2
| | | | | | | | | | | | Patch by jgauthier.
* | | Issue #26593: Fix typo in logging HOWTOBerker Peksag2016-03-201-1/+1
|\ \ \ | |/ / | | | | | | Patch by Andrew Szeto.
| * | Issue #26593: Fix typo in logging HOWTOBerker Peksag2016-03-201-1/+1
| | | | | | | | | | | | Patch by Andrew Szeto.
* | | Issue #19265: Improve test coverage of datetime.tzinfoBerker Peksag2016-03-191-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | Without the patch, line 1010 of Lib/datetime.py wasn't covered by the test suite. Patch by Colin Williams.
| * | Issue #19265: Improve test coverage of datetime.tzinfoBerker Peksag2016-03-191-0/+3
| | | | | | | | | | | | | | | | | | | | | Without the patch, line 1010 of Lib/datetime.py wasn't covered by the test suite. Patch by Colin Williams.
* | | Issue #18787: spwd.getspnam() now raises a PermissionError if the userBerker Peksag2016-03-195-1/+22
| | | | | | | | | | | | doesn't have privileges.
* | | fix indentation in Py_DECREF()Victor Stinner2016-03-191-1/+1
| | |