This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Update example in the pty documentation
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: berker.peksag, docs@python, python-dev, twouters
Priority: normal Keywords: patch

Created on 2015-04-17 01:17 by berker.peksag, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pty-example.diff berker.peksag, 2015-04-17 01:17 review
Messages (2)
msg241301 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2015-04-17 01:17
I was reading pty docs after watching a PyCon talk and the example in https://docs.python.org/3/library/pty.html#example looked a bit outdated to me. Here is a patch to update it.

Changes:

* Fixed a ResourceWarning warning
* Used argparse instead of getopt
msg242973 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-05-12 14:25
New changeset e656bece13fa by Berker Peksag in branch '3.4':
Issue #23983: Update the pty module example.
https://hg.python.org/cpython/rev/e656bece13fa

New changeset 0be7c8f46378 by Berker Peksag in branch 'default':
Issue #23983: Update the pty module example.
https://hg.python.org/cpython/rev/0be7c8f46378
History
Date User Action Args
2022-04-11 14:58:15adminsetgithub: 68171
2015-05-12 14:26:14berker.peksagsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2015-05-12 14:25:30python-devsetnosy: + python-dev
messages: + msg242973
2015-04-17 03:51:08ned.deilysetnosy: + twouters
2015-04-17 01:17:28berker.peksagcreate