<div class="gmail_quote">On Wed, Dec 19, 2012 at 7:16 AM, andrew.svetlov <span dir="ltr"><<a href="mailto:python-checkins@python.org" target="_blank">python-checkins@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://hg.python.org/cpython/rev/a6ea6f803017" target="_blank">http://hg.python.org/cpython/rev/a6ea6f803017</a><br>
changeset:   80934:a6ea6f803017<br>
user:        Andrew Svetlov <<a href="mailto:andrew.svetlov@gmail.com">andrew.svetlov@gmail.com</a>><br>
date:        Tue Dec 18 23:16:44 2012 +0200<br>
summary:<br>
  Mention OSError instead of IOError in the docs.<br>
<br>
files:<br>
  Doc/faq/library.rst |  4 ++--<br>
  1 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
<br>
diff --git a/Doc/faq/library.rst b/Doc/faq/library.rst<br>
--- a/Doc/faq/library.rst<br>
+++ b/Doc/faq/library.rst<br>
@@ -209,7 +209,7 @@<br>
            try:<br>
                c = sys.stdin.read(1)<br>
                print("Got character", repr(c))<br>
-           except IOError:<br>
+           except OSError:<br>
                pass<br>
    finally:<br>
        termios.tcsetattr(fd, termios.TCSAFLUSH, oldterm)<br>
@@ -222,7 +222,7 @@<br>
    :func:`termios.tcsetattr` turns off stdin's echoing and disables canonical<br>
    mode.  :func:`fcntl.fnctl` is used to obtain stdin's file descriptor flags<br>
    and modify them for non-blocking mode.  Since reading stdin when it is empty<br>
-   results in an :exc:`IOError`, this error is caught and ignored.<br>
+   results in an :exc:`OSError`, this error is caught and ignored.<br></blockquote><div><br>With any of these changes in the docs, please don't forget to include appropriate "versionchanged" directives. Many people using the Python 3 docs at "<a href="http://docs.python.org/3/">docs.python.org/3/</a>" will still be on Python 3.2, and thus relying on the presence of such directives to let them know that while the various OS-related exception names are now just aliases for OSError in 3.3+, the distinctions still matter in 3.2.<br>
<br>Cheers,<br>Nick.<br><br><br></div></div>-- <br>Nick Coghlan   |   <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>   |   Brisbane, Australia