66 < head >
77 < meta http-equiv ="X-UA-Compatible " content ="IE=Edge " />
88 < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
9- < title > IDLE — Python 3.8.0a0 documentation</ title >
9+ < title > IDLE — Python 3.8.0a1 documentation</ title >
1010 < link rel ="stylesheet " href ="../_static/pydoctheme.css " type ="text/css " />
1111 < link rel ="stylesheet " href ="../_static/pygments.css " type ="text/css " />
1212
1919 < script type ="text/javascript " src ="../_static/sidebar.js "> </ script >
2020
2121 < link rel ="search " type ="application/opensearchdescription+xml "
22- title ="Search within Python 3.8.0a0 documentation "
22+ title ="Search within Python 3.8.0a1 documentation "
2323 href ="../_static/opensearch.xml "/>
2424 < link rel ="author " title ="About these documents " href ="../about.html " />
2525 < link rel ="index " title ="Index " href ="../genindex.html " />
@@ -72,7 +72,7 @@ <h3>Navigation</h3>
7272
7373
7474 < li >
75- < a href ="../index.html "> 3.8.0a0 Documentation</ a > »
75+ < a href ="../index.html "> 3.8.0a1 Documentation</ a > »
7676 </ li >
7777
7878 < li class ="nav-item nav-item-1 "> < a href ="index.html " > The Python Standard Library</ a > »</ li >
@@ -673,14 +673,31 @@ <h3>User output in Shell<a class="headerlink" href="#user-output-in-shell" title
673673In contrast, some system text windows only keep the last n lines of output.
674674A Windows console, for instance, keeps a user-settable 1 to 9999 lines,
675675with 300 the default.</ p >
676- < p > Text widgets display a subset of Unicode, the Basic Multilingual Plane (BMP).
677- Which characters get a proper glyph instead of a replacement box depends on
678- the operating system and installed fonts. Newline characters cause following
679- text to appear on a new line, but other control characters are either
680- replaced with a box or deleted. However, < code class ="docutils literal notranslate "> < span class ="pre "> repr()</ span > </ code > , which is used for
681- interactive echo of expression values, replaces control characters,
682- some BMP codepoints, and all non-BMP characters with escape codes
683- before they are output.</ p >
676+ < p > A Tk Text widget, and hence IDLE’s Shell, displays characters (codepoints)
677+ in the the BMP (Basic Multilingual Plane) subset of Unicode.
678+ Which characters are displayed with a proper glyph and which with a
679+ replacement box depends on the operating system and installed fonts.
680+ Tab characters cause the following text to begin after
681+ the next tab stop. (They occur every 8 ‘characters’).
682+ Newline characters cause following text to appear on a new line.
683+ Other control characters are ignored or displayed as a space, box, or
684+ something else, depending on the operating system and font.
685+ (Moving the text cursor through such output with arrow keys may exhibit
686+ some surprising spacing behavior.)</ p >
687+ < div class ="highlight-none notranslate "> < div class ="highlight "> < pre > < span > </ span > >>> s = 'a\tb\a<\x02><\r>\bc\nd'
688+ >>> len(s)
689+ 14
690+ >>> s # Display repr(s)
691+ 'a\tb\x07<\x02><\r>\x08c\nd'
692+ >>> print(s, end='') # Display s as is.
693+ # Result varies by OS and font. Try it.
694+ </ pre > </ div >
695+ </ div >
696+ < p > The < code class ="docutils literal notranslate "> < span class ="pre "> repr</ span > </ code > function is used for interactive echo of expression
697+ values. It returns an altered version of the input string in which
698+ control codes, some BMP codepoints, and all non-BMP codepoints are
699+ replaced with escape codes. As demonstrated above, it allows one to
700+ identify the characters in a string, regardless of how they are displayed.</ p >
684701< p > Normal and error output are generally kept separate (on separate lines)
685702from code input and each other. They each get different highlight colors.</ p >
686703< p > For SyntaxError tracebacks, the normal ‘^’ marking where the error was
@@ -889,7 +906,7 @@ <h3>Navigation</h3>
889906
890907
891908 < li >
892- < a href ="../index.html "> 3.8.0a0 Documentation</ a > »
909+ < a href ="../index.html "> 3.8.0a1 Documentation</ a > »
893910 </ li >
894911
895912 < li class ="nav-item nav-item-1 "> < a href ="index.html " > The Python Standard Library</ a > »</ li >
@@ -912,15 +929,15 @@ <h3>Navigation</h3>
912929 </ ul >
913930 </ div >
914931 < div class ="footer ">
915- © < a href ="../copyright.html "> Copyright</ a > 2001-2018 , Python Software Foundation.
932+ © < a href ="../copyright.html "> Copyright</ a > 2001-2019 , Python Software Foundation.
916933 < br />
917934
918935 The Python Software Foundation is a non-profit corporation.
919936< a href ="https://www.python.org/psf/donations/ "> Please donate.</ a >
920937< br />
921938 < br />
922939
923- Last updated on Dec 28, 2018 .
940+ Last updated on Feb 08, 2019 .
924941 < a href ="https://docs.python.org/3/bugs.html "> Found a bug</ a > ?
925942 < br />
926943
0 commit comments