Issue #13540: Expanded argparse documents to clarify the action API

--HG--
branch : 3.2
extra : source : 956c6d33a57d450e2ce181d9a5bbfc34bc3ca64e
Issue #13540: Removed redundant documentation about Action instance attributes. Updated example and documentation per recommendations by Steven Bethard in msg149524.

--HG--
branch : 3.2
extra : source : 008a5473f3008354cf7f6b69d62d9330c7a186a5
Fix test_bytes when sys.stdin is None, for example on Windows when using
pythonw.exe instead of python.exe

--HG--
branch : 3.4
Issue #21704: Fix build error for _multiprocessing when semaphores
are not available.  Patch by Arfrever Frehtes Taifersar Arahesis.

--HG--
branch : 3.4
(Merge 3.4) Fix test_bytes when sys.stdin is None, for example on Windows when
using pythonw.exe instead of python.exe
Issue #21704: Merge.
Fix sporadic failure of test_pep277 on Windows: use support.rmtree() instead of
deltree().

--HG--
branch : 3.4
extra : rebase_source : 30517078a4296a9a84e980cc0552ee72b9c3a1b2
(Merge 3.4) Fix sporadic failure of test_pep277 on Windows: use
support.rmtree() instead of deltree().
Issue #11453, #18174: Fix leak of file descriptor in test_asyncore

--HG--
branch : 3.4
(Merge 3.4) Issue #11453, #18174: Fix leak of file descriptor in test_asyncore
Issue #18174: Fix leak of file descriptor in test_tempfile

--HG--
branch : 3.4
extra : amend_source : 0ff381189b5f16162b2317aed1ef99f9175708a5
(Merge 3.4) Issue #18174: Fix leak of file descriptor in test_tempfile
Issue #17172: Add the ability to run turtledemo from Idle.
Make turtledemo start as active on Mac even when run with subprocess.
Patch by Ramchandra Apt, Lita Cho, and Ned Daily.

--HG--
branch : 3.4
Merge with 3.4
Issue #17172: add NEWS

--HG--
branch : 3.4
Merge with 3.4
asyncio: sync with Tulip

* _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

--HG--
branch : 3.4
(Merge 3.4) asyncio: sync with Tulip

* _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
#21704: remove duplicate name in Misc/ACKS.

--HG--
branch : 3.4
#21704: merge with 3.4.