summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* asyncio: Use the new os.set_blocking() function of Python 3.5 if availableVictor Stinner2014-07-292-10/+14
|
* Edit NEWS entryNed Deily2014-07-291-3/+3
|
* #21704: remove duplicate name in Misc/ACKS.Ezio Melotti2014-07-291-1/+0
|
* asyncio: sync with TulipVictor Stinner2014-07-297-72/+108
| | | | | | | | | | | | | | | | | | | | | | | | * _WaitHandleFuture.cancel() now notify IocpProactor through the overlapped object that the wait was cancelled. * Optimize IocpProactor.wait_for_handle() gets the result if the wait is signaled immediatly. * Enhance representation of Future and Future subclasses - Add "created at filename:lineno" in the representation - Add Future._repr_info() method which can be more easily overriden than Future.__repr__(). It should now be more easy to enhance Future representation without having to modify each subclass. For example, _OverlappedFuture and _WaitHandleFuture get the new "created at" information. - Use reprlib to format Future result, and function arguments when formatting a callback, to limit the length of the representation. * Fix repr(_WaitHandleFuture) * _WaitHandleFuture and _OverlappedFuture: hide frames of internal calls in the source traceback. * Cleanup ProactorIocp._poll(): set the timeout to 0 after the first call to GetQueuedCompletionStatus() * test_locks: close the temporary event loop and check the condition lock * Remove workaround in test_futures, no more needed
* Issue #17172: add NEWSTerry Jan Reedy2014-07-291-0/+7
|
* Issue #17172: Add the ability to run turtledemo from Idle.Terry Jan Reedy2014-07-293-0/+30
| | | | | Make turtledemo start as active on Mac even when run with subprocess. Patch by Ramchandra Apt, Lita Cho, and Ned Daily.
* Issue #18174: Fix leak of file descriptor in test_tempfileVictor Stinner2014-07-281-0/+4
|
* Issue #11453, #18174: Fix leak of file descriptor in test_asyncoreVictor Stinner2014-07-281-0/+4
|
* Fix sporadic failure of test_pep277 on Windows: use support.rmtree() instead ofVictor Stinner2014-07-281-24/+9
| | | | deltree().
* Issue #21704: Fix build error for _multiprocessing when semaphoresRichard Oudkerk2014-07-283-0/+6
| | | | are not available. Patch by Arfrever Frehtes Taifersar Arahesis.
* Fix test_bytes when sys.stdin is None, for example on Windows when usingVictor Stinner2014-07-281-1/+1
| | | | pythonw.exe instead of python.exe
* asyncio, tulip issue 196: ProactorIocp._register() now registers the overlappedVictor Stinner2014-07-271-15/+38
| | | | | | | | | | | | | | | | in the _cache dictionary, even if we already got the result. We need to keep a reference to the overlapped object, otherwise the memory may be reused and GetQueuedCompletionStatus() may use random bytes and behaves badly. There is still a hack for ConnectNamedPipe(): the overlapped object is not register into _cache if the overlapped object completed directly. Log also an error in debug mode in ProactorIocp._loop() if we get an unexpected event. Add a protection in ProactorIocp.close() to avoid blocking, even if it should not happen. I still don't understand exactly why some the completion of some overlapped objects are not notified.
* Modernize turtledemo with conditional expressions; remove duplicate line.Terry Jan Reedy2014-07-271-19/+6
|
* Reduce unnecessary 2.7 versus 3.4+ differences in idlelib/configDialog.py.Terry Jan Reedy2014-07-261-10/+8
| | | | | | 2009-02-02 51562 (27c589f09a21) merged Mac support revisions into 3.0. 2009-03-04 52014 (dc3d24824b60) merged slightly improved version into 2.7. Change 3.4+ to match the later 2.7 patch. Buttons tested manually.
* Document lock parameter for asyncio.Condition()Andrew Svetlov2014-07-261-2/+4
|
* Issue #22074: Fix Lib/test/make_ssl_certs.pyAntoine Pitrou2014-07-261-1/+1
|
* Accept optional lock object in Condition ctor (tulip issue #198)Andrew Svetlov2014-07-262-3/+18
|
* Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowErrorVictor Stinner2014-07-263-2/+30
| | | | on closed socket. repr(socket.socket) already works fine.
* Tulip issue 196: _OverlappedFuture.set_result() now clears its reference to theVictor Stinner2014-07-251-5/+11
| | | | | overlapped object. IocpProactor._poll() now also ignores false alarms: GetQueuedCompletionStatus() returns the overlapped but it is still pending.
* Issue #22044: Fixed premature DECREF in call_tzinfo_method.Raymond Hettinger2014-07-254-7/+22
|
* asyncio: sync with TulipVictor Stinner2014-07-252-1/+9
| | | | | | | | * Tulip issue #196: IocpProactor._poll() clears the reference to the overlapped operation when the operation is done. It would be better to clear the reference in a new _OverlappedFuture.set_result() method, but it cannot be done yet because of a weird bug. * BaseSelectorEventLoop._write_to_self() now logs errors in debug mode.
* Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.Zachary Ware2014-07-252-0/+8
| | | | Patch by Zachary Turner.
* Issue #22072: Fix a couple of SSL doc typos. Patch by Alex Gaynor.Zachary Ware2014-07-251-2/+2
|
* Merge.Charles-François Natali2014-07-2550-441/+649
|\
| * asyncio, test_subprocess: relax timings for slow builbotsVictor Stinner2014-07-251-2/+2
| |
| * asyncio: sync with TulipVictor Stinner2014-07-252-27/+52
| | | | | | | | | | | | | | | | | | | | | | | | * Fix _WaitHandleFuture.cancel(): return the result of the parent cancel() method. * _OverlappedFuture.cancel() now clears its reference to the overlapped object. Make also the _OverlappedFuture.ov attribute private. * Check if _WaitHandleFuture completed before unregistering it in the callback. Add also _WaitHandleFuture._poll() and repr(_WaitHandleFuture). * _WaitHandleFuture now unregisters its wait handler if WaitForSingleObject() raises an exception. * _OverlappedFuture.set_exception() now cancels the overlapped operation.
| * Issue #22061: Add deprecation warnings in empty obsolete methods.Serhiy Storchaka2014-07-251-2/+9
| |
| * Issue #22061: remove call of useless function slated for removal.Terry Jan Reedy2014-07-251-1/+0
| |
| * Issue #22053: Make help work, after previous patch for this issue disabled itTerry Jan Reedy2014-07-251-17/+9
| | | | | | | | by removing global 'demo'. Refactor and remove duplicate code.
| * asyncio: sync with TulipVictor Stinner2014-07-242-30/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve stability of the proactor event loop, especially operations on overlapped objects: * Tulip issue 195: Don't call UnregisterWait() twice if a _WaitHandleFuture is cancelled twice to fix a crash. * IocpProactor.close(): cancel futures to cancel overlapped operations, instead of cancelling directly overlapped operations. Future objects may not call ov.cancel() if the future was cancelled or if the overlapped was already cancelled. The cancel() method of the future may also catch exceptions. Log also errors on cancellation. * tests: rename "f" to "fut" * Add a __repr__() method to IocpProactor * Add a destructor to IocpProactor which closes it * _OverlappedFuture.cancel() doesn't cancel the overlapped anymore if it is done: if it is already cancelled or completed. Log also an error if the cancellation failed. * Add the address of the overlapped object in repr(_OverlappedFuture) * _OverlappedFuture truncates the source traceback to hide the call to the parent constructor (useless in debug).
| * Issue #19884, readline: calling rl_variable_bind ("enable-meta-key", "off")Victor Stinner2014-07-241-1/+5
| | | | | | | | does crash on Mac OS X which uses libedit instead of readline.
| * Issue #16133: The asynchat.async_chat.handle_read() method now ignoresVictor Stinner2014-07-244-0/+26
| | | | | | | | | | | | BlockingIOError exceptions. Initial patch written by Xavier de Gaye. Document also in asyncore documentation that recv() may raise BlockingIOError.
| * Backport os.rst documentation from Python 3.5.Victor Stinner2014-07-241-3/+28
| |
| * Issue #21813: Enhance documentation of the os.stat_result class.Victor Stinner2014-07-241-73/+182
| |
| * Issue #19884: readline: Disable the meta modifier key if stdout is not aVictor Stinner2014-07-243-5/+34
| | | | | | | | | | | | terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit characters.
| * test_gettext: use support.rmtree() instead of shutil.rmtree()Victor Stinner2014-07-241-1/+1
| |
| * asyncio tests: relax timings for slow buildbotsVictor Stinner2014-07-241-4/+4
| |
| * Issue #20055: Fix BaseEventLoop.stop() docstring, incomplete sentence.Victor Stinner2014-07-241-3/+3
| | | | | | | | Patch written by Saimadhav Heblikar.
| * Fix incomplete sentence in asyncio docs.Andrew Svetlov2014-07-241-2/+3
| |
| * Asyncio doc fixes: spelling, grammar, duplication.Terry Jan Reedy2014-07-242-5/+3
| |
| * Englich grammar nit.Terry Jan Reedy2014-07-241-1/+1
| |
| * s/stringobject/bytesobject/ (closes #22036)Benjamin Peterson2014-07-241-1/+1
| | | | | | | | Patch by Martin Matusiak.
| * Fix doc example bug reported on python-list by Akshay Verma.Terry Jan Reedy2014-07-241-1/+1
| |
| * Issue #22053: Cleanup turtledemo start and stop and fix debug shutdown warning.Terry Jan Reedy2014-07-231-21/+5
| |
| * Issue #19493: Fix two uses of ctypes.test.requires (it's not a decorator)Zachary Ware2014-07-232-2/+5
| | | | | | | | | | and skip test_win32.FunctionCallTestCase.test_SEH when Python was compiled in debug configuration or by a non-MSC compiler.
| * Merge headsSerhiy Storchaka2014-07-232-68/+81
| |\
| | * Issue #21597: Turtledemo text pane can now be widened to view or copy completeTerry Jan Reedy2014-07-232-68/+81
| | | | | | | | | | | | | | | | | | lines or narrowed for small screens. Issie #19132: Turtledemo buttons no longer disappear when window is shrun. Patch mostly by Lita Cho (21597) using idea from patch by Jan Kanis (18132).
| * | Issue #6167: Backported tests for Scrollbar.activate() and Scrollbar.set()Serhiy Storchaka2014-07-231-0/+18
| |/ | | | | | | from 6ae34a948cb4.
| * Issue #22002: Make full use of test discovery in test sub-packages.Zachary Ware2014-07-2321-169/+104
| | | | | | | | | | | | Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
| * asyncio: sync with TulipVictor Stinner2014-07-233-14/+13
| | | | | | | | | | * Tulip issue 194: Don't use sys.getrefcount() in unit tests * signal.set_wakeup_fd() can now raise an OSError on Python 3.5