summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix test_warnings on WindowsVictor Stinner2016-03-191-8/+10
| | | | Issue #26567.
* ResourceWarning: Revert change on socket and scandirVictor Stinner2016-03-192-3/+4
| | | | io.FileIO has a safe implementation of destructor, but not socket nor scandir.
* Fix test_loggingVictor Stinner2016-03-191-27/+33
| | | | | Issue #26568: Fix implementation of showwarning() and formatwarning() for test_logging.
* On ResourceWarning, log traceback where the object was allocatedVictor Stinner2016-03-1911-40/+175
| | | | | | | | | | Issue #26567: * Add a new function PyErr_ResourceWarning() function to pass the destroyed object * Add a source attribute to warnings.WarningMessage * Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where source object was allocated.
* Add _showwarnmsg() and _formatwarnmsg() to warningsVictor Stinner2016-03-193-41/+117
| | | | | | | | | | | | | Issue #26568: add new _showwarnmsg() and _formatwarnmsg() functions to the warnings module. The C function warn_explicit() now calls warnings._showwarnmsg() with a warnings.WarningMessage as parameter, instead of calling warnings.showwarning() with multiple parameters. _showwarnmsg() calls warnings.showwarning() if warnings.showwarning() was replaced. Same for _formatwarnmsg(): call warnings.formatwarning() if it was replaced.
* Merge for issue #26095Brett Cannon2016-03-181-0/+46
|\
| * Suggest people use feature detection in porting guideBrett Cannon2016-03-181-0/+46
| |
* | Issue #26252: Add an example on how to register a finderBrett Cannon2016-03-181-2/+32
| |
* | #26250: merge with 3.5.Ezio Melotti2016-03-182-0/+13
|\ \ | |/
| * #26250: document the sqlite3.Cursor.connection attribute. Initial patches ↵Ezio Melotti2016-03-182-0/+13
| | | | | | | | by Aviv Palivoda and Varpu Rantala.
* | Merge for issue #26271Brett Cannon2016-03-183-2/+6
|\ \ | |/
| * Issue #26271: Fix the Freeze tool to use variables passed in from theBrett Cannon2016-03-183-2/+6
| | | | | | | | | | | | configure script related to compiler flags. Thanks to Daniel Shaulov for the bug report and patch.
* | Doc: fix typos, patch written by Stefan BehnelVictor Stinner2016-03-183-6/+6
| |
* | Fixed a typo.Serhiy Storchaka2016-03-181-1/+1
|\ \ | |/
| * Fixed a typo.Serhiy Storchaka2016-03-181-1/+1
| |
* | Issue #26580: Remove outdated reference to ftpmirrorBerker Peksag2016-03-181-6/+0
|\ \ | |/ | | | | Patch by SilentGhost.
| * Issue #26580: Remove outdated reference to ftpmirrorBerker Peksag2016-03-181-6/+0
| | | | | | | | Patch by SilentGhost.
* | Enhance documentation on malloc debug hooksVictor Stinner2016-03-183-11/+20
| | | | | | | | Issue #26564, #26516, #26563.
* | Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store ↵Steve Dower2016-03-172-1/+5
|\ \ | |/ | | | | is empty. Patch by Baji.
| * Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store ↵Steve Dower2016-03-172-1/+5
| | | | | | | | is empty. Patch by Baji.
* | Issue #26583: merge from 3.5Ned Deily2016-03-172-0/+4
|\ \ | |/
| * Issue #26583: Skip test_timestamp_overflow in test_import if bytecodeNed Deily2016-03-172-0/+4
| | | | | | | | files cannot be written.
* | Merge 3.5 into defaultDonald Stufft2016-03-173-2/+2
|\ \ | |/
| * Merge 3.4 into 3.5Donald Stufft2016-03-173-2/+2
| |\
| | * Upgrade ensurepip._bundled pip to 8.1.1 and setuptools to 20.3Donald Stufft2016-03-173-2/+2
| | |
* | | Merge 3.5Victor Stinner2016-03-172-3/+8
|\ \ \ | |/ /
| * | Fix pyclbr to support importing packagesVictor Stinner2016-03-172-3/+8
| | | | | | | | | | | | | | | Issue #26569: Fix pyclbr.readmodule() and pyclbr.readmodule_ex() to support importing packages.
* | | Issue #17603: Merge configure.ac fix from 3.5Martin Panter2016-03-184-15/+4
|\ \ \ | |/ /
| * | Issue #17603: Check for st_blocks field without requiring fileblocks.oMartin Panter2016-03-184-15/+4
| | |
* | | Null merge 3.5Victor Stinner2016-03-170-0/+0
|\ \ \ | |/ /
| * | Py_FatalError: disable faulthandler earlierVictor Stinner2016-03-161-5/+5
| | | | | | | | | | | | | | | Issue #26563: Py_FatalError: disable faulthandler before trying to flush sys.stdout and sys.stderr.
* | | Null merge 3.5Victor Stinner2016-03-160-0/+0
|\ \ \ | |/ /
| * | Fix usage of PyMem_Malloc() in overlapped.cVictor Stinner2016-03-161-3/+6
| | | | | | | | | | | | | | | | | | Issue #26563: Replace PyMem_Malloc() with PyMem_RawFree() since PostToQueueCallback() calls PyMem_RawFree() (previously PyMem_Free()) in a new C thread which doesn't hold the GIL.
* | | Fix usage of PyMem_Malloc() in overlapped.cVictor Stinner2016-03-161-3/+6
| | | | | | | | | | | | | | | | | | Issue #26563: Replace PyMem_Malloc() with PyMem_RawFree() since PostToQueueCallback() calls PyMem_RawFree() (previously PyMem_Free()) in a new C thread which doesn't hold the GIL.
* | | Py_FatalError: disable faulthandler earlierVictor Stinner2016-03-161-5/+5
| | | | | | | | | | | | | | | Issue #26563: Py_FatalError: disable faulthandler before trying to flush sys.stdout and sys.stderr.
* | | faulthandler now works in non-Python threadsVictor Stinner2016-03-167-48/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26563: * Add _PyGILState_GetInterpreterStateUnsafe() function: the single PyInterpreterState used by this process' GILState implementation. * Enhance _Py_DumpTracebackThreads() to retrieve the interpreter state from autoInterpreterState in last resort. The function now accepts NULL for interp and current_tstate parameters. * test_faulthandler: fix a ResourceWarning when test is interrupted by CTRL+c
* | | Fix usage of PyMem_Malloc() in os.stat()Victor Stinner2016-03-161-5/+5
| | | | | | | | | | | | | | | Issue #26563: Replace PyMem_Malloc() with PyMem_RawMalloc() in the Windows implementation of os.stat(), since the code is called without holding the GIL.
* | | Fail if PyMem_Malloc() is called without holding the GILVictor Stinner2016-03-164-11/+43
| | | | | | | | | | | | | | | Issue #26563: Debug hooks on Python memory allocators now raise a fatal error if functions of the PyMem_Malloc() family are called without holding the GIL.
* | | Fix compilation error of traceback.c on WindowsVictor Stinner2016-03-161-3/+3
| | | | | | | | | | | | Issue #26564.
* | | Issue #21042: Revert Linux find_library() to return just filenameMartin Panter2016-03-174-35/+21
| | | | | | | | | | | | | | | | | | This reverts most of revision 3092cf163eb4. The change worked on x86 architectures, but did not work on ARM, probably due to extra ABI flags in the ldconfig output.
* | | Issue #26499: Merge HTTPResponse fix from 3.5Martin Panter2016-03-174-9/+86
|\ \ \ | |/ /
| * | Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent GhostMartin Panter2016-03-174-9/+86
| | |
* | | regrtest: Fix module.__path__Victor Stinner2016-03-153-933/+945
| | | | | | | | | | | | | | | | | | | | | Issue #26538: libregrtest: Fix setup_tests() to keep module.__path__ type (_NamespacePath), don't convert to a list. Add _NamespacePath.__setitem__() method to importlib._bootstrap_external.
* | | Issue #26564: Fix test_capiVictor Stinner2016-03-151-0/+2
| | |
* | | 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
|\ \ \ | |/ /