summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Oops, revert unwanted change used to create an exampleVictor Stinner2016-03-151-1/+0
| | | | Issue #26564.
* On memory error, dump the memory block tracebackVictor Stinner2016-03-158-19/+126
| | | | | | Issue #26564: _PyObject_DebugDumpAddress() now dumps the traceback where a memory block was allocated on memory block. Use the tracemalloc module to get the traceback.
* Merge 3.5 (_tracemalloc)Victor Stinner2016-03-151-17/+7
|\
| * _tracemalloc: store lineno as unsigned intVictor Stinner2016-03-151-17/+7
| | | | | | | | Issue #26564. Cleanup the code, lineno is never negative.
* | Enhance and rewrite traceback dump C functionsVictor Stinner2016-03-152-53/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26564: * Expose _Py_DumpASCII() and _Py_DumpDecimal() in traceback.h * Change the type of the second _Py_DumpASCII() parameter from int to unsigned long * Rewrite _Py_DumpDecimal() and dump_hexadecimal() to write directly characters in the expected order, avoid the need of reversing the string. * dump_hexadecimal() limits width to the size of the buffer * _Py_DumpASCII() does nothing if the object is not a Unicode string * dump_frame() wrtites "???" as the line number if the line number is negative
* | Merge 3.5 (test_faulthandler)Victor Stinner2016-03-152-2/+18
|\ \ | |/
| * faulthandler: Test Py_FatalError() with GIL releasedVictor Stinner2016-03-152-2/+18
| | | | | | | | Issue #26558.
| * Fix Py_FatalError() if called without the GILVictor Stinner2016-03-141-34/+50
| | | | | | | | | | | | Issue #26558: If Py_FatalError() is called without the GIL, don't try to print the current exception, nor try to flush stdout and stderr: only dump the traceback of Python threads.
* | _tracemalloc: filename cannot be NULLVictor Stinner2016-03-151-2/+2
| |
* | Issue #26566: Rewrite test_signal.InterProcessSignalTestsVictor Stinner2016-03-152-162/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Lib/test/signalinterproctester.py * Don't disable the garbage collector anymore * Don't use os.fork() with a subprocess to not inherit existing signal handlers or threads: start from a fresh process * Don't use UNIX kill command to send a signal but Python os.kill() * Use a timeout of 10 seconds to wait for the signal instead of 1 second * Always use signal.pause(), instead of time.wait(1), to wait for a signal * Use context manager on subprocess.Popen * remove code to retry on EINTR: it's no more needed since the PEP 475 * remove unused function exit_subprocess() * Cleanup the code
* | Issue #26523: The multiprocessing thread pool (multiprocessing.dummy.Pool) ↵Antoine Pitrou2016-03-152-9/+19
|\ \ | |/ | | | | was untested.
| * Issue #26523: The multiprocessing thread pool (multiprocessing.dummy.Pool) ↵Antoine Pitrou2016-03-152-9/+19
| | | | | | | | was untested.
* | #25320: Handle sockets in directories unittest discovery is scanning.Robert Collins2016-03-154-0/+46
|\ \ | |/ | | | | Patch from Victor van den Elzen.
| * #25320: Handle sockets in directories unittest discovery is scanning.Robert Collins2016-03-154-0/+46
| | | | | | | | Patch from Victor van den Elzen.
* | Check the GIL in PyObject_Malloc()Victor Stinner2016-03-146-34/+119
| | | | | | | | | | Issue #26558: The debug hook of PyObject_Malloc() now checks that the GIL is held when the function is called.
* | Add more checks on the GILVictor Stinner2016-03-145-5/+52
| | | | | | | | | | | | | | | | | | | | | | | | Issue #10915, #15751, #26558: * PyGILState_Check() now returns 1 (success) before the creation of the GIL and after the destruction of the GIL. It allows to use the function early in Python initialization and late in Python finalization. * Add a flag to disable PyGILState_Check(). Disable PyGILState_Check() when Py_NewInterpreter() is called * Add assert(PyGILState_Check()) to: _Py_dup(), _Py_fstat(), _Py_read() and _Py_write()
* | Issue #26516: Fix test_capi on AIXVictor Stinner2016-03-141-1/+1
| | | | | | | | Fix regex for parse a pointer address.
* | Merge 3.5 (test_venv)Victor Stinner2016-03-141-1/+10
|\ \ | |/
| * Fix test_venv on FreeBSD buildbotVictor Stinner2016-03-141-1/+10
| | | | | | | | Ignore pip warning in test_venv.test_with_venv().
* | _pickle: Fix load_counted_tuple(), use Py_ssize_t for sizeVictor Stinner2016-03-141-1/+1
| | | | | | | | Fix a warning on Windows 64-bit.
* | posix_getcwd(): limit to INT_MAX on WindowsVictor Stinner2016-03-141-0/+10
| | | | | | | | | | It's more to fix a conversion warning during compilation, I don't think that Windows support current working directory larger than 2 GB ...
* | Merge 3.5 (test_site)Victor Stinner2016-03-141-2/+7
|\ \ | |/
| * Skip test_site if USER_SITE cannot be createdVictor Stinner2016-03-141-2/+7
| | | | | | | | | | Issue #17758: Skip test_site if site.USER_SITE directory doesn't exist and cannot be created.
* | Issue #26516: Fix test_capi on 32-bit systemVictor Stinner2016-03-141-11/+9
| | | | | | | | On 32-bit system, only 4 bytes after dumped for the tail.
* | Issue #26516: Fix test_capi on WindowsVictor Stinner2016-03-141-4/+8
| | | | | | | | Pointers are formatted differently.
* | Issue #26558: Remove useless check in tracemallocVictor Stinner2016-03-141-4/+0
| | | | | | | | | | The first instruction of tracemalloc_add_trace() is traceback_new() which already checks the GIL.
* | Fix Py_FatalError() if called without the GILVictor Stinner2016-03-141-34/+50
| | | | | | | | | | | | Issue #26558: If Py_FatalError() is called without the GIL, don't try to print the current exception, nor try to flush stdout and stderr: only dump the traceback of Python threads.
* | Add PYTHONMALLOC env varVictor Stinner2016-03-1413-90/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26516: * Add PYTHONMALLOC environment variable to set the Python memory allocators and/or install debug hooks. * PyMem_SetupDebugHooks() can now also be used on Python compiled in release mode. * The PYTHONMALLOCSTATS environment variable can now also be used on Python compiled in release mode. It now has no effect if set to an empty string. * In debug mode, debug hooks are now also installed on Python memory allocators when Python is configured without pymalloc.
* | Issue #20556: Used specific assert methods in threading tests.Serhiy Storchaka2016-03-143-23/+22
|\ \ | |/
| * Issue #20556: Used specific assert methods in threading tests.Serhiy Storchaka2016-03-143-23/+22
| |
* | Issue #747320: Use email.utils.formatdate() to avoid code duplicationBerker Peksag2016-03-142-6/+16
| | | | | | | | | | | | in BaseHTTPRequestHandler Initial patch by karlcow.
* | Issue #16181: cookiejar.http2time() now returns None if year is higher than ↵Berker Peksag2016-03-143-1/+11
|\ \ | |/ | | | | datetime.MAXYEAR
| * Issue #16181: cookiejar.http2time() now returns None if year is higher than ↵Berker Peksag2016-03-143-1/+11
| | | | | | | | datetime.MAXYEAR
* | #24918: merge with 3.5.Ezio Melotti2016-03-132-0/+6
|\ \ | |/
| * #24918: fix CSS for code blocks when a side box is present. Patch by Manvi B.Ezio Melotti2016-03-132-0/+6
| |
* | mergeRaymond Hettinger2016-03-131-1/+1
|\ \ | |/
| * Minor recipe edit: convert "while 1" to "while True".Raymond Hettinger2016-03-131-1/+1
| |
* | #25687: merge with 3.5.Ezio Melotti2016-03-132-4/+7
|\ \ | |/
| * #25687: clarify that errors in tearDown increase the total number of ↵Ezio Melotti2016-03-132-4/+7
| | | | | | | | reported errors. Initial patch by HyeSoo Park.
* | mergeRaymond Hettinger2016-03-131-2/+2
|\ \ | |/
| * Issue #26548: Minor fix to awkward wording in docsRaymond Hettinger2016-03-131-2/+2
| |
* | Issue #26079: Fixing the build output folder for tix-8.4.3.6. Patch by ↵Steve Dower2016-03-122-4/+7
|\ \ | |/ | | | | Bjoern Thiel.
| * Issue #26079: Fixing the build output folder for tix-8.4.3.6. Patch by ↵Steve Dower2016-03-122-4/+7
| | | | | | | | Bjoern Thiel.
* | Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt.Steve Dower2016-03-122-0/+8
|\ \ | |/
| * Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt.Steve Dower2016-03-122-0/+8
| |
* | Issue #26513: Fixes platform module detection of Windows ServerSteve Dower2016-03-122-1/+3
|\ \ | |/
| * Issue #26513: Fixes platform module detection of Windows ServerSteve Dower2016-03-122-1/+3
| |
* | Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch bySerhiy Storchaka2016-03-123-7/+36
|\ \ | |/ | | | | Tamás Bence Gedai.
| * Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch bySerhiy Storchaka2016-03-124-7/+29
| | | | | | | | Tamás Bence Gedai.
* | Revert change 291d47954618Victor Stinner2016-03-121-2/+2
| | | | | | | | | | | | | | | | | | Revert: "Always test datetime.strftime("%4Y") Issue #13305: Always test datetime.datetime.strftime("%4Y") for years < 1900." In fact, strftime("%4Y") fails on most platforms.