summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | MergeAntoine Pitrou2015-03-197-199/+219
|\ \
| * | Issue #23708: Fix _Py_read() compilation error on WindowsVictor Stinner2015-03-191-1/+1
| | | | | | | | | | | | Fix typo: self->fd => fd
| * | Issue #23707: On UNIX, os.urandom() now calls the Python signal handler whenVictor Stinner2015-03-191-19/+11
| | | | | | | | | | | | | | | | | | | | | read() is interrupted by a signal. dev_urandom_python() now calls _Py_read() helper instead of calling directly read().
| * | Issue #23708: select.devpoll now retries its internal write() when interruptedVictor Stinner2015-03-191-7/+3
| | | | | | | | | | | | | | | | | | by a signal (EINTR). Modify devpoll_flush() to use _Py_write() instead of calling directly write().
| * | Issue #22181: Fix dev_urandom_noraise(), try calling py_getrandom() beforeVictor Stinner2015-03-191-4/+4
| | | | | | | | | | | | opening /dev/urandom.
| * | Issue #23708: Add _Py_read() and _Py_write() functions to factorize code handleVictor Stinner2015-03-195-169/+201
| | | | | | | | | | | | | | | | | | | | | | | | EINTR error and special cases for Windows. These functions now truncate the length to PY_SSIZE_T_MAX to have a portable and reliable behaviour. For example, read() result is undefined if counter is greater than PY_SSIZE_T_MAX on Linux.
* | | Issue #23632: Memoryviews now allow tuple indexing (including for ↵Antoine Pitrou2015-03-194-51/+195
|/ / | | | | | | multi-dimensional memoryviews).
* | Issue #22181: The availability of the getrandom() is now checked in configure,Victor Stinner2015-03-195-140/+73
| | | | | | | | | | | | and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define. Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
* | Issue #23646: If time.sleep() is interrupted by a signal, the sleep is nowVictor Stinner2015-03-195-66/+101
| | | | | | | | | | | | | | retried with the recomputed delay, except if the signal handler raises an exception (PEP 475). Modify also test_signal to use a monotonic clock instead of the system clock.
* | Fixed Misc/NEWS entry for issue #23136.Serhiy Storchaka2015-03-191-1/+1
|\ \ | |/
| * Fixed Misc/NEWS entry for issue #23136.Serhiy Storchaka2015-03-191-1/+1
| |
* | Issue #23136: _strptime now uniformly handles all days in week 0, includingSerhiy Storchaka2015-03-193-5/+26
|\ \ | |/ | | | | Jan 30 of previous year. Based on patch by Jim Carroll.
| * Issue #23136: _strptime now uniformly handles all days in week 0, includingSerhiy Storchaka2015-03-193-5/+26
| | | | | | | | Jan 30 of previous year. Based on patch by Jim Carroll.
* | Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-193-1/+19
|\ \ | |/ | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
| * Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-193-1/+19
| | | | | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
* | merge 3.4Benjamin Peterson2015-03-191-2/+2
|\ \ | |/
| * wrap properlyBenjamin Peterson2015-03-191-2/+2
| |
* | null merge from 3.4Ethan Furman2015-03-190-0/+0
|\ \ | |/
| * issue23673Ethan Furman2015-03-194-9/+48
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | issue23673Ethan Furman2015-03-196-30/+63
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | Issue #22903: The fake test case created by unittest.loader when it fails ↵Antoine Pitrou2015-03-183-10/+37
|\ \ | |/ | | | | importing a test module is now picklable.
| * Issue #22903: The fake test case created by unittest.loader when it fails ↵Antoine Pitrou2015-03-183-9/+32
| | | | | | | | importing a test module is now picklable.
* | Issue #23353: improve exceptions tests for generatorsAntoine Pitrou2015-03-181-0/+46
|\ \ | |/
| * Issue #23353: improve exceptions tests for generatorsAntoine Pitrou2015-03-181-0/+46
| |
* | Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka2015-03-1825-56/+56
| |
* | Restored backward compatibility of pickling http.cookies.Morsel. It wasSerhiy Storchaka2015-03-182-0/+32
| | | | | | | | broken after converting instance attributes to properies in issue #2211.
* | Merge 3.4 (tracemalloc typo)Victor Stinner2015-03-181-1/+1
|\ \ | |/
| * _tracemalloc.c: Fix typoVictor Stinner2015-03-181-1/+1
| |
* | Fix compiler warning in mmapmodule.c (compare signed/unsigned integers)Victor Stinner2015-03-181-1/+1
| |
* | Initialize variables to prevent GCC warningsVictor Stinner2015-03-183-18/+25
| |
* | Fix compiler warning in dtoa.cVictor Stinner2015-03-181-2/+2
| |
* | Issue #22181: On Linux, os.urandom() now uses the new getrandom() syscall ifVictor Stinner2015-03-182-6/+89
| | | | | | | | | | | | available, syscall introduced in the Linux kernel 3.17. It is more reliable and more secure, because it avoids the need of a file descriptor and waits until the kernel has enough entropy.
* | Merge 3.4 (linecache doc)Victor Stinner2015-03-182-4/+4
|\ \ | |/
| * Issue #11726: Fix linecache example in the docVictor Stinner2015-03-182-4/+4
| | | | | | | | | | | | | | Use a Python source file (linecache.__file__) instead of /etc/passwd. Modify also linecache docstrings to clarify the linecache is written to cache Python source files, not any text files.
* | Merge 3.4 (linecache doc)Victor Stinner2015-03-181-2/+5
|\ \ | |/
| * Issue #11726: clarify linecache doc: linecache is written to cache PythonVictor Stinner2015-03-181-2/+5
| | | | | | | | source files, even if "it works" with other text files encoded to UTF-8.
* | Issue #12155: Fix queue doc example to join threadsVictor Stinner2015-03-181-13/+23
| | | | | | | | Use None as a sentinel to stop a worker.
* | Merge 3.4 (marshal doc)Victor Stinner2015-03-181-6/+15
|\ \ | |/
| * Issue #19428: Document that PyMarshal_ReadLongFromFile() andVictor Stinner2015-03-181-6/+15
| | | | | | | | PyMarshal_ReadShortFromFile() can fail.
* | Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file()Victor Stinner2015-03-182-2/+9
| | | | | | | | Detect also earlier PyMarshal_Read*() errors in zipimport.
* | Merge 3.4 (asyncio)Victor Stinner2015-03-183-0/+5
|\ \ | |/
| * Issue #23456: Add missing @coroutine decorators in asyncioVictor Stinner2015-03-183-0/+5
| |
* | Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() becauseVictor Stinner2015-03-181-29/+51
| | | | | | | | | | | | | | the caller can replace the directory with a different file kind. The bottom-up way, os.walk(topdown=False), still uses entry.is_symlink(), and so can be faster than Python 3.4.
* | Issue #23694: Handle EINTR in _Py_open() and _Py_fopen_obj()Victor Stinner2015-03-181-13/+40
| | | | | | | | | | Retry open()/fopen() if it fails with EINTR and the Python signal handler doesn't raise an exception.
* | Issue #2211: Updated the implementation of the http.cookies.Morsel class.Serhiy Storchaka2015-03-185-86/+299
| | | | | | | | | | | | | | | | | | Setting attributes key, value and coded_value directly now is deprecated. update() and setdefault() now transform and check keys. Comparing for equality now takes into account attributes key, value and coded_value. copy() now returns a Morsel, not a dict. repr() now contains all attributes. Optimized checking keys and quoting values. Added new tests. Original patch by Demian Brecht.
* | Issue #23207: merged fix from 3.4.Vinay Sajip2015-03-182-1/+5
|\ \ | |/
| * Issue #23207: Improved kwarg validation.Vinay Sajip2015-03-182-1/+5
| |
* | Issue #23694: Enhance _Py_fopen(), it now raises an exception on errorVictor Stinner2015-03-185-24/+44
| | | | | | | | | | * If fopen() fails, OSError is raised with the original filename object. * The GIL is now released while calling fopen()
* | Issue #23694: Enhance _Py_open(), it now raises exceptionsVictor Stinner2015-03-178-45/+71
| | | | | | | | | | | | | | | | * _Py_open() now raises exceptions on error. If open() fails, it raises an OSError with the filename. * _Py_open() now releases the GIL while calling open() * Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not held
* | Issue #23644: Fix issues with C++ when compiling Python extensionsVictor Stinner2015-03-172-12/+10
| | | | | | | | | | | | | | | | Disable completly pyatomic.h on C++, because <stdatomic.h> is not compatible with C++. <pyatomic.h> is only needed by the optimized PyThreadState_GET() macro in pystate.h. Instead, declare PyThreadState_GET() as an alias to PyThreadState_Get(), as done for limited API.