1. 29 Jul, 2014 7 commits
    • Victor Stinner's avatar
      Close #22063: socket operations (socket,recv, sock_sendall, sock_connect, · f636ad94
      Victor Stinner authored
      sock_accept) now raise an exception in debug mode if sockets are in blocking
      mode.
      f636ad94
    • Victor Stinner's avatar
    • Ned Deily's avatar
      Edit NEWS entry · 841d9bae
      Ned Deily authored
      841d9bae
    • Ezio Melotti's avatar
      #21704: remove duplicate name in Misc/ACKS. · a9f21ce9
      Ezio Melotti authored
      a9f21ce9
    • Victor Stinner's avatar
      asyncio: sync with Tulip · 5710b3fd
      Victor Stinner authored
      * _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
      5710b3fd
    • Terry Jan Reedy's avatar
      Issue #17172: add NEWS · 863d051d
      Terry Jan Reedy authored
      863d051d
    • Terry Jan Reedy's avatar
      Issue #17172: Add the ability to run turtledemo from Idle. · 8f6f9904
      Terry Jan Reedy authored
      Make turtledemo start as active on Mac even when run with subprocess.
      Patch by Ramchandra Apt, Lita Cho, and Ned Daily.
      8f6f9904
  2. 28 Jul, 2014 5 commits
  3. 27 Jul, 2014 2 commits
    • Victor Stinner's avatar
      asyncio, tulip issue 196: ProactorIocp._register() now registers the overlapped · 05fb8244
      Victor Stinner authored
      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.
      05fb8244
    • Terry Jan Reedy's avatar
  4. 26 Jul, 2014 5 commits
  5. 25 Jul, 2014 12 commits
  6. 24 Jul, 2014 9 commits