6
6
< head >
7
7
< meta http-equiv ="X-UA-Compatible " content ="IE=Edge " />
8
8
< 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 >
10
10
< link rel ="stylesheet " href ="../_static/pydoctheme.css " type ="text/css " />
11
11
< link rel ="stylesheet " href ="../_static/pygments.css " type ="text/css " />
12
12
19
19
< script type ="text/javascript " src ="../_static/sidebar.js "> </ script >
20
20
21
21
< 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 "
23
23
href ="../_static/opensearch.xml "/>
24
24
< link rel ="author " title ="About these documents " href ="../about.html " />
25
25
< link rel ="index " title ="Index " href ="../genindex.html " />
@@ -72,7 +72,7 @@ <h3>Navigation</h3>
72
72
73
73
74
74
< li >
75
- < a href ="../index.html "> 3.8.0a0 Documentation</ a > »
75
+ < a href ="../index.html "> 3.8.0a1 Documentation</ a > »
76
76
</ li >
77
77
78
78
< 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
673
673
In contrast, some system text windows only keep the last n lines of output.
674
674
A Windows console, for instance, keeps a user-settable 1 to 9999 lines,
675
675
with 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 >
684
701
< p > Normal and error output are generally kept separate (on separate lines)
685
702
from code input and each other. They each get different highlight colors.</ p >
686
703
< p > For SyntaxError tracebacks, the normal ‘^’ marking where the error was
@@ -889,7 +906,7 @@ <h3>Navigation</h3>
889
906
890
907
891
908
< li >
892
- < a href ="../index.html "> 3.8.0a0 Documentation</ a > »
909
+ < a href ="../index.html "> 3.8.0a1 Documentation</ a > »
893
910
</ li >
894
911
895
912
< li class ="nav-item nav-item-1 "> < a href ="index.html " > The Python Standard Library</ a > »</ li >
@@ -912,15 +929,15 @@ <h3>Navigation</h3>
912
929
</ ul >
913
930
</ div >
914
931
< 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.
916
933
< br />
917
934
918
935
The Python Software Foundation is a non-profit corporation.
919
936
< a href ="https://www.python.org/psf/donations/ "> Please donate.</ a >
920
937
< br />
921
938
< br />
922
939
923
- Last updated on Dec 28, 2018 .
940
+ Last updated on Feb 08, 2019 .
924
941
< a href ="https://docs.python.org/3/bugs.html "> Found a bug</ a > ?
925
942
< br />
926
943
0 commit comments