summaryrefslogtreecommitdiffstats
path: root/Programs
Commit message (Collapse)AuthorAgeFilesLines
* bpo-20891: Remove test_capi.test_bpo20891() (#5425)Victor Stinner2018-01-291-48/+0
| | | | | | | | | | My first fix is not enough to make test_bpo20891() reliable. A second fix is needed and it was decided to not backport it, so remove the test instead. For Python 3.6, the workaround is to call PyEval_InitThreads() before spawning the first C thread. Python 3.7 will have both fixes.
* bpo-20891: Fix PyGILState_Ensure() (#4650) (#4655)Victor Stinner2017-11-301-11/+117
| | | | | | | | | | | | | | | When PyGILState_Ensure() is called in a non-Python thread before PyEval_InitThreads(), only call PyEval_InitThreads() after calling PyThreadState_New() to fix a crash. Add an unit test in test_embed. Enhance also embedded tests, backport from master: * Add test_pre_initialization_api() * Set PYTHONIOENCODING environment variable in test_forced_io_encoding() (cherry picked from commit b4d1e1f7c1af6ae33f0e371576c8bcafedb099db)
* Fix some warnings from MSVCSteve Dower2016-09-071-1/+1
|
* Issue #27713: merge from 3.5Ned Deily2016-08-201-0/+1
|\
| * Issue #27713: Surpress spurious build warnings when updating importlib'sNed Deily2016-08-201-0/+1
| | | | | | | | | | | | | | bootstrap files: Could not find platform dependent libraries <exec_prefix Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Patch by Xiang Zhang
* | Issue #27736: Improve the existing embedded interpreter init/fini testNed Deily2016-08-161-1/+1
| | | | | | | | | | | | by increasing the number of iterations. That appears sufficient to expose the ref count problem fixed in this issue. Patch suggested by Xiang Zhang
* | Merge doc and comment fixes from 3.5Martin Panter2016-04-191-1/+1
|\ \ | |/
| * Fix spelling (inital), grammar (may translates) in documentation, commentsMartin Panter2016-04-191-1/+1
| |
* | Add PYTHONMALLOC env varVictor Stinner2016-03-141-0/+9
|/ | | | | | | | | | | | | 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.
* Replace fpgetmask() with fedisableexcept()Victor Stinner2016-01-201-6/+2
| | | | | Issue #24520: On FreeBSD, fpgetmask() was deprecated long time ago. fedisableexcept() is now preferred.
* Remove an unnecessary flag.Eric Snow2015-05-061-2/+0
|
* Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-4/+16
|
* Issue #23752: _Py_fstat() is now responsible to raise the Python exceptionVictor Stinner2015-03-301-3/+3
| | | | Add _Py_fstat_noraise() function when a Python exception is not welcome.
* Silenced minor GCC warnings.Serhiy Storchaka2015-02-261-1/+1
|
* Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on ↵Steve Dower2015-02-211-2/+2
| | | | | | Windows. fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer.
* Issue #22934: Update the comment to mention Programs/_freeze_importlib.c.Berker Peksag2014-11-241-1/+1
|
* Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, renameVictor Stinner2014-08-011-1/+1
| | | | | ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions.
* Issue #18093: Factor out the programs that embed the runtimeNick Coghlan2014-07-254-0/+362