Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c | Victor Stinner | 2015-03-24 | 1 | -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() or | Victor Stinner | 2015-03-24 | 2 | -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 Hettinger | 2015-03-24 | 1 | -25/+46 |
| | |||||
* | Issue 23744: Minor speed-up for deque.__bool__(). | Raymond Hettinger | 2015-03-24 | 1 | -1/+24 |
| | |||||
* | Merge 3.4 (faulthandler ICC) | Victor Stinner | 2015-03-23 | 1 | -1/+8 |
|\ | |||||
| * | Issue #23654: Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC) | Victor Stinner | 2015-03-23 | 1 | -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 Storchaka | 2015-03-22 | 1 | -8/+12 |
| | | |||||
* | | Issue #23571: _Py_CheckFunctionResult() now gives the name of the function | Victor Stinner | 2015-03-21 | 1 | -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 Hettinger | 2015-03-21 | 1 | -3/+3 |
| | | |||||
* | | For safety, wait to decref deleted values until the deque state has been ↵ | Raymond Hettinger | 2015-03-21 | 1 | -4/+4 |
| | | | | | | | | restored. | ||||
* | | Fix minor formatting nits and remove unnecessary comment. | Raymond Hettinger | 2015-03-21 | 1 | -4/+3 |
| | | |||||
* | | Issue 23704: Add index(), copy(), and insert() to deques. Register deques ↵ | Raymond Hettinger | 2015-03-21 | 1 | -0/+91 |
| | | | | | | | | as a MutableSequence. | ||||
* | | Issue 23705: Improve the performance of __contains__ checks for deques. | Raymond Hettinger | 2015-03-20 | 1 | -1/+33 |
| | | |||||
* | | Issue #22832: Tweaked parameter names for fcntl module to better match | Serhiy Storchaka | 2015-03-20 | 2 | -43/+41 |
| | | | | | | | | | | official POSIX documentation. Updated the documenttion for Python 3. Patch by Alex Shkop. | ||||
* | | Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retried | Victor Stinner | 2015-03-20 | 1 | -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 numbers | Victor Stinner | 2015-03-20 | 1 | -1/+1 |
| | | |||||
* | | Issue #23696: Chain ZipImportError to the OSError | Victor Stinner | 2015-03-20 | 1 | -1/+5 |
| | | |||||
* | | Issue #23709, #23001: ossaudiodev now uses Py_ssize_t for sizes instead of int | Victor Stinner | 2015-03-20 | 1 | -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 typo | Victor Stinner | 2015-03-20 | 1 | -1/+1 |
| | | |||||
* | | Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, and | Serhiy Storchaka | 2015-03-20 | 5 | -75/+111 |
| | | | | | | | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too. | ||||
* | | Issue #23646: Fix test_threading on Windows | Victor Stinner | 2015-03-20 | 1 | -1/+1 |
| | | |||||
* | | Issue #23646: Enhance precision of time.sleep() and socket timeout when | Victor Stinner | 2015-03-20 | 2 | -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 by | Victor Stinner | 2015-03-19 | 1 | -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 interrupted | Victor Stinner | 2015-03-19 | 1 | -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 handle | Victor Stinner | 2015-03-19 | 2 | -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 now | Victor Stinner | 2015-03-19 | 1 | -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 Storchaka | 2015-03-18 | 9 | -25/+25 |
| | | |||||
* | | Merge 3.4 (tracemalloc typo) | Victor Stinner | 2015-03-18 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | _tracemalloc.c: Fix typo | Victor Stinner | 2015-03-18 | 1 | -1/+1 |
| | | |||||
* | | Fix compiler warning in mmapmodule.c (compare signed/unsigned integers) | Victor Stinner | 2015-03-18 | 1 | -1/+1 |
| | | |||||
* | | Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file() | Victor Stinner | 2015-03-18 | 1 | -0/+3 |
| | | | | | | | | Detect also earlier PyMarshal_Read*() errors in zipimport. | ||||
* | | Issue #23694: Enhance _Py_fopen(), it now raises an exception on error | Victor Stinner | 2015-03-18 | 2 | -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 exceptions | Victor Stinner | 2015-03-17 | 5 | -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, pyexpat | Victor Stinner | 2015-03-17 | 5 | -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 d927047b1d8eb87738676980a24930d053ba2150 | Victor Stinner | 2015-03-17 | 1 | -69/+49 |
| | | | | | | | | Sorry, it was a mistake, the patch is still under review: issue #23646. | ||||
* | | test | Victor Stinner | 2015-03-12 | 1 | -49/+69 |
| | | |||||
* | | Issue #23641: Cleaned out legacy dunder names from tests and docs. | Serhiy Storchaka | 2015-03-12 | 2 | -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 Storchaka | 2015-03-12 | 2 | -2/+2 |
| | | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. | ||||
* | | Issue #23566: enable(), register(), dump_traceback() and dump_traceback_later() | Victor Stinner | 2015-03-12 | 1 | -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 Dower | 2015-03-08 | 2 | -2/+8 |
| | | | | | | | | the errno shim. | ||||
* | | Issue #22524: Fix os.scandir() for platforms which don't have a d_type field in | Victor Stinner | 2015-03-08 | 1 | -11/+27 |
| | | | | | | | | the dirent structure (ex: OpenIndiana). | ||||
* | | Issue #22524: New os.scandir() function, part of the PEP 471: "os.scandir() | Victor Stinner | 2015-03-08 | 1 | -20/+798 |
| | | | | | | | | | | function -- a better and faster directory iterator". Patch written by Ben Hoyt. | ||||
* | | Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() now | Victor Stinner | 2015-03-06 | 2 | -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 Dower | 2015-03-06 | 2 | -89/+5 |
| | | | | | | | | _set_thread_local_invalid_parameter_handler on every thread. | ||||
* | | Fix regression introduced by changeset 7c6e3358221a that caused compile | Ned Deily | 2015-03-05 | 1 | -2/+2 |
| | | | | | | | | errors of _testcapimodule.c with older versions of gcc. | ||||
* | | Fixed GCC version testing. | Serhiy Storchaka | 2015-03-05 | 1 | -2/+2 |
| | | |||||
* | | Fix "GCC diagnostic" in socketmodule.c | Victor Stinner | 2015-03-05 | 1 | -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.4 | Benjamin Peterson | 2015-03-05 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | expose X509_V_FLAG_TRUSTED_FIRST | Benjamin Peterson | 2015-03-05 | 1 | -0/+4 |
| | | |||||
* | | merge 3.4 (#23476) | Benjamin Peterson | 2015-03-05 | 1 | -0/+9 |
|\ \ | |/ |