summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.cVictor Stinner2015-03-241-0/+17
| | | | | | | I expected more users of _Py_wstat(), but in practice it's only used by Modules/getpath.c. Move the function because it's not needed on Windows. Windows uses PC/getpathp.c which uses the Win32 API (ex: GetFileAttributesW()) not the POSIX API.
* Issue #23753: Python doesn't support anymore platforms without stat() orVictor Stinner2015-03-242-24/+0
| | | | | | | fstat(), these functions are always required. Remove HAVE_STAT and HAVE_FSTAT defines, and stop supporting DONT_HAVE_STAT and DONT_HAVE_FSTAT.
* Improve and fix-up comments.Raymond Hettinger2015-03-241-25/+46
|
* Issue 23744: Minor speed-up for deque.__bool__().Raymond Hettinger2015-03-241-1/+24
|
* Merge 3.4 (faulthandler ICC)Victor Stinner2015-03-231-1/+8
|\
| * Issue #23654: Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC)Victor Stinner2015-03-231-1/+8
| | | | | | | | | | | | | | Issue #23654: Turn off ICC's tail call optimization for the stack_overflow generator. ICC turns the recursive tail call into a loop. Patch written by Matt Frank.
* | Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.Serhiy Storchaka2015-03-221-8/+12
| |
* | Issue #23571: _Py_CheckFunctionResult() now gives the name of the functionVictor Stinner2015-03-211-0/+22
| | | | | | | | | | | | | | | | | | | | | | which returned an invalid result (result+error or no result without error) in the exception message. Add also unit test to check that the exception contains the name of the function. Special case: the final _PyEval_EvalFrameEx() check doesn't mention the function since it didn't execute a single function but a whole frame.
* | Minor nit. Make the rotate() success/fail tests consistent.Raymond Hettinger2015-03-211-3/+3
| |
* | For safety, wait to decref deleted values until the deque state has been ↵Raymond Hettinger2015-03-211-4/+4
| | | | | | | | restored.
* | Fix minor formatting nits and remove unnecessary comment.Raymond Hettinger2015-03-211-4/+3
| |
* | Issue 23704: Add index(), copy(), and insert() to deques. Register deques ↵Raymond Hettinger2015-03-211-0/+91
| | | | | | | | as a MutableSequence.
* | Issue 23705: Improve the performance of __contains__ checks for deques.Raymond Hettinger2015-03-201-1/+33
| |
* | Issue #22832: Tweaked parameter names for fcntl module to better matchSerhiy Storchaka2015-03-202-43/+41
| | | | | | | | | | official POSIX documentation. Updated the documenttion for Python 3. Patch by Alex Shkop.
* | Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retriedVictor Stinner2015-03-201-26/+47
| | | | | | | | | | | | | | | | | | | | when interrupted by a signal not in the *sigset* parameter, if the signal handler does not raise an exception. signal.sigtimedwait() recomputes the timeout with a monotonic clock when it is retried. Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't raise InterruptedError anymore if it is interrupted by a signal not in its sigset parameter.
* | Fix compiler warnings: comparison between signed and unsigned numbersVictor Stinner2015-03-201-1/+1
| |
* | Issue #23696: Chain ZipImportError to the OSErrorVictor Stinner2015-03-201-1/+5
| |
* | Issue #23709, #23001: ossaudiodev now uses Py_ssize_t for sizes instead of intVictor Stinner2015-03-201-6/+7
| | | | | | | | | | The module is now also "SSIZE_T clean" (for PyArg_Parse...() functions) since it switched to Py_buffer ("y*" argument format).
* | Issue #23001: Fix typoVictor Stinner2015-03-201-1/+1
| |
* | Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, andSerhiy Storchaka2015-03-205-75/+111
| | | | | | | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too.
* | Issue #23646: Fix test_threading on WindowsVictor Stinner2015-03-201-1/+1
| |
* | Issue #23646: Enhance precision of time.sleep() and socket timeout whenVictor Stinner2015-03-202-3/+3
| | | | | | | | | | | | | | | | interrupted by a signal Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro. The _PyTime_ADD_SECONDS only supported an integer number of seconds, the _PyTime_AddDouble() has subsecond resolution.
* | Issue #23709: The ossaudiodev module now retries read/write when interrupted byVictor Stinner2015-03-191-28/+22
| | | | | | | | | | | | a signal (PEP 475). Use he new _Py_read() and _Py_write() functions.
* | 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 #23708: Add _Py_read() and _Py_write() functions to factorize code handleVictor Stinner2015-03-192-152/+36
| | | | | | | | | | | | | | | | 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 #23646: If time.sleep() is interrupted by a signal, the sleep is nowVictor Stinner2015-03-191-51/+56
| | | | | | | | | | | | | | 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.
* | Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka2015-03-189-25/+25
| |
* | 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
| |
* | Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file()Victor Stinner2015-03-181-0/+3
| | | | | | | | Detect also earlier PyMarshal_Read*() errors in zipimport.
* | Issue #23694: Enhance _Py_fopen(), it now raises an exception on errorVictor Stinner2015-03-182-10/+4
| | | | | | | | | | * 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-175-21/+9
| | | | | | | | | | | | | | | | * _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 #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpatVictor Stinner2015-03-175-15/+5
| | | | | | | | | | | | | | | | _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw modules. pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in Include/pyport.h.
* | Revert changeset d927047b1d8eb87738676980a24930d053ba2150Victor Stinner2015-03-171-69/+49
| | | | | | | | Sorry, it was a mistake, the patch is still under review: issue #23646.
* | testVictor Stinner2015-03-121-49/+69
| |
* | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-122-2/+2
|\ \ | |/ | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
| * Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-122-2/+2
| | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* | Issue #23566: enable(), register(), dump_traceback() and dump_traceback_later()Victor Stinner2015-03-121-21/+35
| | | | | | | | functions of faulthandler now accept file descriptors. Patch by Wei Wu.
* | Issue #23524: Change back to using Windows errors for _Py_fstat instead of ↵Steve Dower2015-03-082-2/+8
| | | | | | | | the errno shim.
* | Issue #22524: Fix os.scandir() for platforms which don't have a d_type field inVictor Stinner2015-03-081-11/+27
| | | | | | | | the dirent structure (ex: OpenIndiana).
* | Issue #22524: New os.scandir() function, part of the PEP 471: "os.scandir()Victor Stinner2015-03-081-20/+798
| | | | | | | | | | function -- a better and faster directory iterator". Patch written by Ben Hoyt.
* | Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() nowVictor Stinner2015-03-062-8/+0
| | | | | | | | | | | | | | | | | | | | | | raise a SystemError if a function returns a result and raises an exception. The SystemError is chained to the previous exception. Refactor also PyObject_Call() and PyCFunction_Call() to make them more readable. Remove some checks which became useless (duplicate checks). Change reviewed by Serhiy Storchaka.
* | Issue #23524: Replace _PyVerify_fd function with calling ↵Steve Dower2015-03-062-89/+5
| | | | | | | | _set_thread_local_invalid_parameter_handler on every thread.
* | Fix regression introduced by changeset 7c6e3358221a that caused compileNed Deily2015-03-051-2/+2
| | | | | | | | errors of _testcapimodule.c with older versions of gcc.
* | Fixed GCC version testing.Serhiy Storchaka2015-03-051-2/+2
| |
* | Fix "GCC diagnostic" in socketmodule.cVictor Stinner2015-03-051-2/+2
| | | | | | | | | | Fix regression of changeset 7c6e3358221a on GCC < 4.4. The _socket module cannot be compiled on "x86 FreeBSD 7.2 3.x" buildbot anymore.
* | merge 3.4Benjamin Peterson2015-03-051-0/+4
|\ \ | |/
| * expose X509_V_FLAG_TRUSTED_FIRSTBenjamin Peterson2015-03-051-0/+4
| |
* | merge 3.4 (#23476)Benjamin Peterson2015-03-051-0/+9
|\ \ | |/