home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pytexdoc / ext / lib / lib1 / sys / tex
LaTeX Document  |  1996-11-08  |  6.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 42 75 69 6c 74 2d 69 |\section|{Built-i|
|00000010| 6e 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |n Module| \sectco|
|00000020| 64 65 7b 73 79 73 7d 7d | 0a 0a 5c 62 69 6d 6f 64 |de{sys}}|..\bimod|
|00000030| 69 6e 64 65 78 7b 73 79 | 73 7d 0a 54 68 69 73 20 |index{sy|s}.This |
|00000040| 6d 6f 64 75 6c 65 20 70 | 72 6f 76 69 64 65 73 20 |module p|rovides |
|00000050| 61 63 63 65 73 73 20 74 | 6f 20 73 6f 6d 65 20 76 |access t|o some v|
|00000060| 61 72 69 61 62 6c 65 73 | 20 75 73 65 64 20 6f 72 |ariables| used or|
|00000070| 20 6d 61 69 6e 74 61 69 | 6e 65 64 20 62 79 20 74 | maintai|ned by t|
|00000080| 68 65 0a 69 6e 74 65 72 | 70 72 65 74 65 72 20 61 |he.inter|preter a|
|00000090| 6e 64 20 74 6f 20 66 75 | 6e 63 74 69 6f 6e 73 20 |nd to fu|nctions |
|000000a0| 74 68 61 74 20 69 6e 74 | 65 72 61 63 74 20 73 74 |that int|eract st|
|000000b0| 72 6f 6e 67 6c 79 20 77 | 69 74 68 20 74 68 65 20 |rongly w|ith the |
|000000c0| 69 6e 74 65 72 70 72 65 | 74 65 72 2e 0a 49 74 20 |interpre|ter..It |
|000000d0| 69 73 20 61 6c 77 61 79 | 73 20 61 76 61 69 6c 61 |is alway|s availa|
|000000e0| 62 6c 65 2e 0a 0a 5c 72 | 65 6e 65 77 63 6f 6d 6d |ble...\r|enewcomm|
|000000f0| 61 6e 64 7b 5c 69 6e 64 | 65 78 73 75 62 69 74 65 |and{\ind|exsubite|
|00000100| 6d 7d 7b 28 69 6e 20 6d | 6f 64 75 6c 65 20 73 79 |m}{(in m|odule sy|
|00000110| 73 29 7d 0a 0a 5c 62 65 | 67 69 6e 7b 64 61 74 61 |s)}..\be|gin{data|
|00000120| 64 65 73 63 7d 7b 61 72 | 67 76 7d 0a 20 20 54 68 |desc}{ar|gv}. Th|
|00000130| 65 20 6c 69 73 74 20 6f | 66 20 63 6f 6d 6d 61 6e |e list o|f comman|
|00000140| 64 20 6c 69 6e 65 20 61 | 72 67 75 6d 65 6e 74 73 |d line a|rguments|
|00000150| 20 70 61 73 73 65 64 20 | 74 6f 20 61 20 50 79 74 | passed |to a Pyt|
|00000160| 68 6f 6e 20 73 63 72 69 | 70 74 2e 0a 20 20 5c 63 |hon scri|pt.. \c|
|00000170| 6f 64 65 7b 73 79 73 2e | 61 72 67 76 5b 30 5d 7d |ode{sys.|argv[0]}|
|00000180| 20 69 73 20 74 68 65 20 | 73 63 72 69 70 74 20 6e | is the |script n|
|00000190| 61 6d 65 20 28 69 74 20 | 69 73 20 6f 70 65 72 61 |ame (it |is opera|
|000001a0| 74 69 6e 67 20 73 79 73 | 74 65 6d 0a 20 20 64 65 |ting sys|tem. de|
|000001b0| 70 65 6e 64 65 6e 74 20 | 77 68 65 74 68 65 72 20 |pendent |whether |
|000001c0| 74 68 69 73 20 69 73 20 | 61 20 66 75 6c 6c 20 70 |this is |a full p|
|000001d0| 61 74 68 6e 61 6d 65 20 | 6f 72 20 6e 6f 74 29 2e |athname |or not).|
|000001e0| 0a 20 20 49 66 20 74 68 | 65 20 63 6f 6d 6d 61 6e |. If th|e comman|
|000001f0| 64 20 77 61 73 20 65 78 | 65 63 75 74 65 64 20 75 |d was ex|ecuted u|
|00000200| 73 69 6e 67 20 74 68 65 | 20 5c 73 61 6d 70 7b 2d |sing the| \samp{-|
|00000210| 63 7d 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |c} comma|nd line |
|00000220| 6f 70 74 69 6f 6e 0a 20 | 20 74 6f 20 74 68 65 20 |option. | to the |
|00000230| 69 6e 74 65 72 70 72 65 | 74 65 72 2c 20 5c 63 6f |interpre|ter, \co|
|00000240| 64 65 7b 73 79 73 2e 61 | 72 67 76 5b 30 5d 7d 20 |de{sys.a|rgv[0]} |
|00000250| 69 73 20 73 65 74 20 74 | 6f 20 74 68 65 20 73 74 |is set t|o the st|
|00000260| 72 69 6e 67 0a 20 20 5c | 63 6f 64 65 7b 22 2d 63 |ring. \|code{"-c|
|00000270| 22 7d 2e 0a 20 20 49 66 | 20 6e 6f 20 73 63 72 69 |"}.. If| no scri|
|00000280| 70 74 20 6e 61 6d 65 20 | 77 61 73 20 70 61 73 73 |pt name |was pass|
|00000290| 65 64 20 74 6f 20 74 68 | 65 20 50 79 74 68 6f 6e |ed to th|e Python|
|000002a0| 20 69 6e 74 65 72 70 72 | 65 74 65 72 2c 0a 20 20 | interpr|eter,. |
|000002b0| 5c 63 6f 64 65 7b 73 79 | 73 2e 61 72 67 76 7d 20 |\code{sy|s.argv} |
|000002c0| 68 61 73 20 7a 65 72 6f | 20 6c 65 6e 67 74 68 2e |has zero| length.|
|000002d0| 0a 5c 65 6e 64 7b 64 61 | 74 61 64 65 73 63 7d 0a |.\end{da|tadesc}.|
|000002e0| 0a 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |.\begin{|datadesc|
|000002f0| 7d 7b 62 75 69 6c 74 69 | 6e 5f 6d 6f 64 75 6c 65 |}{builti|n_module|
|00000300| 5f 6e 61 6d 65 73 7d 0a | 20 20 41 20 6c 69 73 74 |_names}.| A list|
|00000310| 20 6f 66 20 73 74 72 69 | 6e 67 73 20 67 69 76 69 | of stri|ngs givi|
|00000320| 6e 67 20 74 68 65 20 6e | 61 6d 65 73 20 6f 66 20 |ng the n|ames of |
|00000330| 61 6c 6c 20 6d 6f 64 75 | 6c 65 73 20 74 68 61 74 |all modu|les that|
|00000340| 20 61 72 65 20 63 6f 6d | 70 69 6c 65 64 0a 20 20 | are com|piled. |
|00000350| 69 6e 74 6f 20 74 68 69 | 73 20 50 79 74 68 6f 6e |into thi|s Python|
|00000360| 20 69 6e 74 65 72 70 72 | 65 74 65 72 2e 20 20 28 | interpr|eter. (|
|00000370| 54 68 69 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |This inf|ormation|
|00000380| 20 69 73 20 6e 6f 74 20 | 61 76 61 69 6c 61 62 6c | is not |availabl|
|00000390| 65 20 69 6e 0a 20 20 61 | 6e 79 20 6f 74 68 65 72 |e in. a|ny other|
|000003a0| 20 77 61 79 20 2d 2d 2d | 20 5c 63 6f 64 65 7b 73 | way ---| \code{s|
|000003b0| 79 73 2e 6d 6f 64 75 6c | 65 73 2e 6b 65 79 73 28 |ys.modul|es.keys(|
|000003c0| 29 7d 20 6f 6e 6c 79 20 | 6c 69 73 74 73 20 74 68 |)} only |lists th|
|000003d0| 65 20 69 6d 70 6f 72 74 | 65 64 0a 20 20 6d 6f 64 |e import|ed. mod|
|000003e0| 75 6c 65 73 2e 29 0a 5c | 65 6e 64 7b 64 61 74 61 |ules.).\|end{data|
|000003f0| 64 65 73 63 7d 0a 0a 5c | 62 65 67 69 6e 7b 64 61 |desc}..\|begin{da|
|00000400| 74 61 64 65 73 63 7d 7b | 65 78 63 5f 74 79 70 65 |tadesc}{|exc_type|
|00000410| 7d 0a 5c 64 61 74 61 6c | 69 6e 65 7b 65 78 63 5f |}.\datal|ine{exc_|
|00000420| 76 61 6c 75 65 7d 0a 5c | 64 61 74 61 6c 69 6e 65 |value}.\|dataline|
|00000430| 7b 65 78 63 5f 74 72 61 | 63 65 62 61 63 6b 7d 0a |{exc_tra|ceback}.|
|00000440| 20 20 54 68 65 73 65 20 | 74 68 72 65 65 20 76 61 | These |three va|
|00000450| 72 69 61 62 6c 65 73 20 | 61 72 65 20 6e 6f 74 20 |riables |are not |
|00000460| 61 6c 77 61 79 73 20 64 | 65 66 69 6e 65 64 3b 20 |always d|efined; |
|00000470| 74 68 65 79 20 61 72 65 | 20 73 65 74 20 77 68 65 |they are| set whe|
|00000480| 6e 20 61 6e 0a 20 20 65 | 78 63 65 70 74 69 6f 6e |n an. e|xception|
|00000490| 20 68 61 6e 64 6c 65 72 | 20 28 61 6e 20 5c 63 6f | handler| (an \co|
|000004a0| 64 65 7b 65 78 63 65 70 | 74 7d 20 63 6c 61 75 73 |de{excep|t} claus|
|000004b0| 65 20 6f 66 20 61 20 5c | 63 6f 64 65 7b 74 72 79 |e of a \|code{try|
|000004c0| 7d 20 73 74 61 74 65 6d | 65 6e 74 29 20 69 73 0a |} statem|ent) is.|
|000004d0| 20 20 69 6e 76 6f 6b 65 | 64 2e 20 20 54 68 65 69 | invoke|d. Thei|
|000004e0| 72 20 6d 65 61 6e 69 6e | 67 20 69 73 3a 20 5c 63 |r meanin|g is: \c|
|000004f0| 6f 64 65 7b 65 78 63 5f | 74 79 70 65 7d 20 67 65 |ode{exc_|type} ge|
|00000500| 74 73 20 74 68 65 20 65 | 78 63 65 70 74 69 6f 6e |ts the e|xception|
|00000510| 20 74 79 70 65 20 6f 66 | 0a 20 20 74 68 65 20 65 | type of|. the e|
|00000520| 78 63 65 70 74 69 6f 6e | 20 62 65 69 6e 67 20 68 |xception| being h|
|00000530| 61 6e 64 6c 65 64 3b 20 | 5c 63 6f 64 65 7b 65 78 |andled; |\code{ex|
|00000540| 63 5f 76 61 6c 75 65 7d | 20 67 65 74 73 20 74 68 |c_value}| gets th|
|00000550| 65 20 65 78 63 65 70 74 | 69 6f 6e 0a 20 20 70 61 |e except|ion. pa|
|00000560| 72 61 6d 65 74 65 72 20 | 28 69 74 73 20 5c 64 66 |rameter |(its \df|
|00000570| 6e 7b 61 73 73 6f 63 69 | 61 74 65 64 20 76 61 6c |n{associ|ated val|
|00000580| 75 65 7d 20 6f 72 20 74 | 68 65 20 73 65 63 6f 6e |ue} or t|he secon|
|00000590| 64 20 61 72 67 75 6d 65 | 6e 74 20 74 6f 0a 20 20 |d argume|nt to. |
|000005a0| 5c 63 6f 64 65 7b 72 61 | 69 73 65 7d 29 3b 20 5c |\code{ra|ise}); \|
|000005b0| 63 6f 64 65 7b 65 78 63 | 5f 74 72 61 63 65 62 61 |code{exc|_traceba|
|000005c0| 63 6b 7d 20 67 65 74 73 | 20 61 20 74 72 61 63 65 |ck} gets| a trace|
|000005d0| 62 61 63 6b 20 6f 62 6a | 65 63 74 20 28 73 65 65 |back obj|ect (see|
|000005e0| 20 74 68 65 0a 20 20 52 | 65 66 65 72 65 6e 63 65 | the. R|eference|
|000005f0| 20 4d 61 6e 75 61 6c 29 | 20 77 68 69 63 68 0a 20 | Manual)| which. |
|00000600| 20 65 6e 63 61 70 73 75 | 6c 61 74 65 73 20 74 68 | encapsu|lates th|
|00000610| 65 20 63 61 6c 6c 20 73 | 74 61 63 6b 20 61 74 20 |e call s|tack at |
|00000620| 74 68 65 20 70 6f 69 6e | 74 20 77 68 65 72 65 20 |the poin|t where |
|00000630| 74 68 65 20 65 78 63 65 | 70 74 69 6f 6e 0a 20 20 |the exce|ption. |
|00000640| 6f 72 69 67 69 6e 61 6c | 6c 79 20 6f 63 63 75 72 |original|ly occur|
|00000650| 72 65 64 2e 0a 5c 6f 62 | 69 6e 64 65 78 7b 74 72 |red..\ob|index{tr|
|00000660| 61 63 65 62 61 63 6b 7d | 0a 5c 65 6e 64 7b 64 61 |aceback}|.\end{da|
|00000670| 74 61 64 65 73 63 7d 0a | 0a 5c 62 65 67 69 6e 7b |tadesc}.|.\begin{|
|00000680| 66 75 6e 63 64 65 73 63 | 7d 7b 65 78 69 74 7d 7b |funcdesc|}{exit}{|
|00000690| 6e 7d 0a 20 20 45 78 69 | 74 20 66 72 6f 6d 20 50 |n}. Exi|t from P|
|000006a0| 79 74 68 6f 6e 20 77 69 | 74 68 20 6e 75 6d 65 72 |ython wi|th numer|
|000006b0| 69 63 20 65 78 69 74 20 | 73 74 61 74 75 73 20 5c |ic exit |status \|
|000006c0| 76 61 72 7b 6e 7d 2e 20 | 20 54 68 69 73 20 69 73 |var{n}. | This is|
|000006d0| 0a 20 20 69 6d 70 6c 65 | 6d 65 6e 74 65 64 20 62 |. imple|mented b|
|000006e0| 79 20 72 61 69 73 69 6e | 67 20 74 68 65 20 5c 63 |y raisin|g the \c|
|000006f0| 6f 64 65 7b 53 79 73 74 | 65 6d 45 78 69 74 7d 20 |ode{Syst|emExit} |
|00000700| 65 78 63 65 70 74 69 6f | 6e 2c 20 73 6f 20 63 6c |exceptio|n, so cl|
|00000710| 65 61 6e 75 70 0a 20 20 | 61 63 74 69 6f 6e 73 20 |eanup. |actions |
|00000720| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 5c 63 6f |specifie|d by \co|
|00000730| 64 65 7b 66 69 6e 61 6c | 6c 79 7d 20 63 6c 61 75 |de{final|ly} clau|
|00000740| 73 65 73 20 6f 66 20 5c | 63 6f 64 65 7b 74 72 79 |ses of \|code{try|
|00000750| 7d 20 73 74 61 74 65 6d | 65 6e 74 73 0a 20 20 61 |} statem|ents. a|
|00000760| 72 65 20 68 6f 6e 6f 72 | 65 64 2c 20 61 6e 64 20 |re honor|ed, and |
|00000770| 69 74 20 69 73 20 70 6f | 73 73 69 62 6c 65 20 74 |it is po|ssible t|
|00000780| 6f 20 63 61 74 63 68 20 | 74 68 65 20 65 78 69 74 |o catch |the exit|
|00000790| 20 61 74 74 65 6d 70 74 | 20 61 74 20 61 6e 20 6f | attempt| at an o|
|000007a0| 75 74 65 72 0a 20 20 6c | 65 76 65 6c 2e 0a 5c 65 |uter. l|evel..\e|
|000007b0| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 0a 0a 5c 62 |nd{funcd|esc}..\b|
|000007c0| 65 67 69 6e 7b 64 61 74 | 61 64 65 73 63 7d 7b 65 |egin{dat|adesc}{e|
|000007d0| 78 69 74 66 75 6e 63 7d | 0a 20 20 54 68 69 73 20 |xitfunc}|. This |
|000007e0| 76 61 6c 75 65 20 69 73 | 20 6e 6f 74 20 61 63 74 |value is| not act|
|000007f0| 75 61 6c 6c 79 20 64 65 | 66 69 6e 65 64 20 62 79 |ually de|fined by|
|00000800| 20 74 68 65 20 6d 6f 64 | 75 6c 65 2c 20 62 75 74 | the mod|ule, but|
|00000810| 20 63 61 6e 20 62 65 20 | 73 65 74 20 62 79 0a 20 | can be |set by. |
|00000820| 20 74 68 65 20 75 73 65 | 72 20 28 6f 72 20 62 79 | the use|r (or by|
|00000830| 20 61 20 70 72 6f 67 72 | 61 6d 29 20 74 6f 20 73 | a progr|am) to s|
|00000840| 70 65 63 69 66 79 20 61 | 20 63 6c 65 61 6e 2d 75 |pecify a| clean-u|
|00000850| 70 20 61 63 74 69 6f 6e | 20 61 74 20 70 72 6f 67 |p action| at prog|
|00000860| 72 61 6d 0a 20 20 65 78 | 69 74 2e 20 20 57 68 65 |ram. ex|it. Whe|
|00000870| 6e 20 73 65 74 2c 20 69 | 74 20 73 68 6f 75 6c 64 |n set, i|t should|
|00000880| 20 62 65 20 61 20 70 61 | 72 61 6d 65 74 65 72 6c | be a pa|rameterl|
|00000890| 65 73 73 20 66 75 6e 63 | 74 69 6f 6e 2e 20 20 54 |ess func|tion. T|
|000008a0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 0a 20 20 77 |his func|tion. w|
|000008b0| 69 6c 6c 20 62 65 20 63 | 61 6c 6c 65 64 20 77 68 |ill be c|alled wh|
|000008c0| 65 6e 20 74 68 65 20 69 | 6e 74 65 72 70 72 65 74 |en the i|nterpret|
|000008d0| 65 72 20 65 78 69 74 73 | 20 69 6e 20 61 6e 79 20 |er exits| in any |
|000008e0| 77 61 79 20 28 65 78 63 | 65 70 74 20 77 68 65 6e |way (exc|ept when|
|000008f0| 20 61 0a 20 20 66 61 74 | 61 6c 20 65 72 72 6f 72 | a. fat|al error|
|00000900| 20 6f 63 63 75 72 73 3a | 20 69 6e 20 74 68 61 74 | occurs:| in that|
|00000910| 20 63 61 73 65 20 74 68 | 65 20 69 6e 74 65 72 70 | case th|e interp|
|00000920| 72 65 74 65 72 27 73 20 | 69 6e 74 65 72 6e 61 6c |reter's |internal|
|00000930| 20 73 74 61 74 65 0a 20 | 20 63 61 6e 6e 6f 74 20 | state. | cannot |
|00000940| 62 65 20 74 72 75 73 74 | 65 64 29 2e 0a 5c 65 6e |be trust|ed)..\en|
|00000950| 64 7b 64 61 74 61 64 65 | 73 63 7d 0a 0a 5c 62 65 |d{datade|sc}..\be|
|00000960| 67 69 6e 7b 64 61 74 61 | 64 65 73 63 7d 7b 6c 61 |gin{data|desc}{la|
|00000970| 73 74 5f 74 79 70 65 7d | 0a 5c 64 61 74 61 6c 69 |st_type}|.\datali|
|00000980| 6e 65 7b 6c 61 73 74 5f | 76 61 6c 75 65 7d 0a 5c |ne{last_|value}.\|
|00000990| 64 61 74 61 6c 69 6e 65 | 7b 6c 61 73 74 5f 74 72 |dataline|{last_tr|
|000009a0| 61 63 65 62 61 63 6b 7d | 0a 20 20 54 68 65 73 65 |aceback}|. These|
|000009b0| 20 74 68 72 65 65 20 76 | 61 72 69 61 62 6c 65 73 | three v|ariables|
|000009c0| 20 61 72 65 20 6e 6f 74 | 20 61 6c 77 61 79 73 20 | are not| always |
|000009d0| 64 65 66 69 6e 65 64 3b | 20 74 68 65 79 20 61 72 |defined;| they ar|
|000009e0| 65 20 73 65 74 20 77 68 | 65 6e 20 61 6e 0a 20 20 |e set wh|en an. |
|000009f0| 65 78 63 65 70 74 69 6f | 6e 20 69 73 20 6e 6f 74 |exceptio|n is not|
|00000a00| 20 68 61 6e 64 6c 65 64 | 20 61 6e 64 20 74 68 65 | handled| and the|
|00000a10| 20 69 6e 74 65 72 70 72 | 65 74 65 72 20 70 72 69 | interpr|eter pri|
|00000a20| 6e 74 73 20 61 6e 20 65 | 72 72 6f 72 20 6d 65 73 |nts an e|rror mes|
|00000a30| 73 61 67 65 0a 20 20 61 | 6e 64 20 61 20 73 74 61 |sage. a|nd a sta|
|00000a40| 63 6b 20 74 72 61 63 65 | 62 61 63 6b 2e 20 20 54 |ck trace|back. T|
|00000a50| 68 65 69 72 20 69 6e 74 | 65 6e 64 65 64 20 75 73 |heir int|ended us|
|00000a60| 65 20 69 73 20 74 6f 20 | 61 6c 6c 6f 77 20 61 6e |e is to |allow an|
|00000a70| 20 69 6e 74 65 72 61 63 | 74 69 76 65 0a 20 20 75 | interac|tive. u|
|00000a80| 73 65 72 20 74 6f 20 69 | 6d 70 6f 72 74 20 61 20 |ser to i|mport a |
|00000a90| 64 65 62 75 67 67 65 72 | 20 6d 6f 64 75 6c 65 20 |debugger| module |
|00000aa0| 61 6e 64 20 65 6e 67 61 | 67 65 20 69 6e 20 70 6f |and enga|ge in po|
|00000ab0| 73 74 2d 6d 6f 72 74 65 | 6d 20 64 65 62 75 67 67 |st-morte|m debugg|
|00000ac0| 69 6e 67 0a 20 20 77 69 | 74 68 6f 75 74 20 68 61 |ing. wi|thout ha|
|00000ad0| 76 69 6e 67 20 74 6f 20 | 72 65 2d 65 78 65 63 75 |ving to |re-execu|
|00000ae0| 74 65 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 74 |te the c|ommand t|
|00000af0| 68 61 74 20 63 61 75 73 | 65 64 20 74 68 65 20 65 |hat caus|ed the e|
|00000b00| 72 72 6f 72 20 28 77 68 | 69 63 68 0a 20 20 6d 61 |rror (wh|ich. ma|
|00000b10| 79 20 62 65 20 68 61 72 | 64 20 74 6f 20 72 65 70 |y be har|d to rep|
|00000b20| 72 6f 64 75 63 65 29 2e | 20 20 54 68 65 20 6d 65 |roduce).| The me|
|00000b30| 61 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 76 61 72 |aning of| the var|
|00000b40| 69 61 62 6c 65 73 20 69 | 73 20 74 68 65 20 73 61 |iables i|s the sa|
|00000b50| 6d 65 0a 20 20 61 73 20 | 74 68 61 74 20 6f 66 20 |me. as |that of |
|00000b60| 5c 63 6f 64 65 7b 65 78 | 63 5f 74 79 70 65 7d 2c |\code{ex|c_type},|
|00000b70| 20 5c 63 6f 64 65 7b 65 | 78 63 5f 76 61 6c 75 65 | \code{e|xc_value|
|00000b80| 7d 20 61 6e 64 20 5c 63 | 6f 64 65 7b 65 78 63 5f |} and \c|ode{exc_|
|00000b90| 74 72 61 63 61 62 61 63 | 6b 7d 2c 0a 20 20 72 65 |tracabac|k},. re|
|00000ba0| 73 70 65 63 74 69 76 65 | 6c 79 2e 0a 5c 65 6e 64 |spective|ly..\end|
|00000bb0| 7b 64 61 74 61 64 65 73 | 63 7d 0a 0a 5c 62 65 67 |{datades|c}..\beg|
|00000bc0| 69 6e 7b 64 61 74 61 64 | 65 73 63 7d 7b 6d 6f 64 |in{datad|esc}{mod|
|00000bd0| 75 6c 65 73 7d 0a 20 20 | 47 69 76 65 73 20 74 68 |ules}. |Gives th|
|00000be0| 65 20 6c 69 73 74 20 6f | 66 20 6d 6f 64 75 6c 65 |e list o|f module|
|00000bf0| 73 20 74 68 61 74 20 68 | 61 76 65 20 61 6c 72 65 |s that h|ave alre|
|00000c00| 61 64 79 20 62 65 65 6e | 20 6c 6f 61 64 65 64 2e |ady been| loaded.|
|00000c10| 0a 20 20 54 68 69 73 20 | 63 61 6e 20 62 65 20 6d |. This |can be m|
|00000c20| 61 6e 69 70 75 6c 61 74 | 65 64 20 74 6f 20 66 6f |anipulat|ed to fo|
|00000c30| 72 63 65 20 72 65 6c 6f | 61 64 69 6e 67 20 6f 66 |rce relo|ading of|
|00000c40| 20 6d 6f 64 75 6c 65 73 | 20 61 6e 64 20 6f 74 68 | modules| and oth|
|00000c50| 65 72 20 74 72 69 63 6b | 73 2e 0a 5c 65 6e 64 7b |er trick|s..\end{|
|00000c60| 64 61 74 61 64 65 73 63 | 7d 0a 0a 5c 62 65 67 69 |datadesc|}..\begi|
|00000c70| 6e 7b 64 61 74 61 64 65 | 73 63 7d 7b 70 61 74 68 |n{datade|sc}{path|
|00000c80| 7d 0a 20 20 41 20 6c 69 | 73 74 20 6f 66 20 73 74 |}. A li|st of st|
|00000c90| 72 69 6e 67 73 20 74 68 | 61 74 20 73 70 65 63 69 |rings th|at speci|
|00000ca0| 66 69 65 73 20 74 68 65 | 20 73 65 61 72 63 68 20 |fies the| search |
|00000cb0| 70 61 74 68 20 66 6f 72 | 20 6d 6f 64 75 6c 65 73 |path for| modules|
|00000cc0| 2e 0a 20 20 49 6e 69 74 | 69 61 6c 69 7a 65 64 20 |.. Init|ialized |
|00000cd0| 66 72 6f 6d 20 74 68 65 | 20 65 6e 76 69 72 6f 6e |from the| environ|
|00000ce0| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 20 5c 63 |ment var|iable \c|
|00000cf0| 6f 64 65 7b 50 59 54 48 | 4f 4e 50 41 54 48 7d 2c |ode{PYTH|ONPATH},|
|00000d00| 20 6f 72 20 61 6e 0a 20 | 20 69 6e 73 74 61 6c 6c | or an. | install|
|00000d10| 61 74 69 6f 6e 2d 64 65 | 70 65 6e 64 65 6e 74 20 |ation-de|pendent |
|00000d20| 64 65 66 61 75 6c 74 2e | 0a 5c 65 6e 64 7b 64 61 |default.|.\end{da|
|00000d30| 74 61 64 65 73 63 7d 0a | 0a 5c 62 65 67 69 6e 7b |tadesc}.|.\begin{|
|00000d40| 64 61 74 61 64 65 73 63 | 7d 7b 70 6c 61 74 66 6f |datadesc|}{platfo|
|00000d50| 72 6d 7d 0a 54 68 69 73 | 20 73 74 72 69 6e 67 20 |rm}.This| string |
|00000d60| 63 6f 6e 74 61 69 6e 73 | 20 61 20 70 6c 61 74 66 |contains| a platf|
|00000d70| 6f 72 6d 20 69 64 65 6e | 74 69 66 69 65 72 2e 20 |orm iden|tifier. |
|00000d80| 20 54 68 69 73 20 63 61 | 6e 20 62 65 20 75 73 65 | This ca|n be use|
|00000d90| 64 20 74 6f 0a 61 70 70 | 65 6e 64 20 70 6c 61 74 |d to.app|end plat|
|00000da0| 66 6f 72 6d 2d 73 70 65 | 63 69 66 69 63 20 63 6f |form-spe|cific co|
|00000db0| 6d 70 6f 6e 65 6e 74 73 | 20 74 6f 20 5c 63 6f 64 |mponents| to \cod|
|00000dc0| 65 7b 73 79 73 2e 70 61 | 74 68 7d 2c 20 66 6f 72 |e{sys.pa|th}, for|
|00000dd0| 20 69 6e 73 74 61 6e 63 | 65 2e 0a 5c 65 6e 64 7b | instanc|e..\end{|
|00000de0| 64 61 74 61 64 65 73 63 | 7d 0a 0a 5c 62 65 67 69 |datadesc|}..\begi|
|00000df0| 6e 7b 64 61 74 61 64 65 | 73 63 7d 7b 70 73 31 7d |n{datade|sc}{ps1}|
|00000e00| 0a 5c 64 61 74 61 6c 69 | 6e 65 7b 70 73 32 7d 0a |.\datali|ne{ps2}.|
|00000e10| 20 20 53 74 72 69 6e 67 | 73 20 73 70 65 63 69 66 | String|s specif|
|00000e20| 79 69 6e 67 20 74 68 65 | 20 70 72 69 6d 61 72 79 |ying the| primary|
|00000e30| 20 61 6e 64 20 73 65 63 | 6f 6e 64 61 72 79 20 70 | and sec|ondary p|
|00000e40| 72 6f 6d 70 74 20 6f 66 | 20 74 68 65 0a 20 20 69 |rompt of| the. i|
|00000e50| 6e 74 65 72 70 72 65 74 | 65 72 2e 20 20 54 68 65 |nterpret|er. The|
|00000e60| 73 65 20 61 72 65 20 6f | 6e 6c 79 20 64 65 66 69 |se are o|nly defi|
|00000e70| 6e 65 64 20 69 66 20 74 | 68 65 20 69 6e 74 65 72 |ned if t|he inter|
|00000e80| 70 72 65 74 65 72 20 69 | 73 20 69 6e 0a 20 20 69 |preter i|s in. i|
|00000e90| 6e 74 65 72 61 63 74 69 | 76 65 20 6d 6f 64 65 2e |nteracti|ve mode.|
|00000ea0| 20 20 54 68 65 69 72 20 | 69 6e 69 74 69 61 6c 20 | Their |initial |
|00000eb0| 76 61 6c 75 65 73 20 69 | 6e 20 74 68 69 73 20 63 |values i|n this c|
|00000ec0| 61 73 65 20 61 72 65 0a | 20 20 5c 63 6f 64 65 7b |ase are.| \code{|
|00000ed0| 27 3e 3e 3e 20 27 7d 20 | 61 6e 64 20 5c 63 6f 64 |'>>> '} |and \cod|
|00000ee0| 65 7b 27 2e 2e 2e 20 27 | 7d 2e 0a 5c 65 6e 64 7b |e{'... '|}..\end{|
|00000ef0| 64 61 74 61 64 65 73 63 | 7d 0a 0a 5c 62 65 67 69 |datadesc|}..\begi|
|00000f00| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 73 65 74 63 |n{funcde|sc}{setc|
|00000f10| 68 65 63 6b 69 6e 74 65 | 72 76 61 6c 7d 7b 69 6e |heckinte|rval}{in|
|00000f20| 74 65 72 76 61 6c 7d 0a | 53 65 74 20 74 68 65 20 |terval}.|Set the |
|00000f30| 69 6e 74 65 72 70 72 65 | 74 65 72 27 73 20 60 60 |interpre|ter's ``|
|00000f40| 63 68 65 63 6b 20 69 6e | 74 65 72 76 61 6c 27 27 |check in|terval''|
|00000f50| 2e 20 20 54 68 69 73 20 | 69 6e 74 65 67 65 72 20 |. This |integer |
|00000f60| 76 61 6c 75 65 0a 64 65 | 74 65 72 6d 69 6e 65 73 |value.de|termines|
|00000f70| 20 68 6f 77 20 6f 66 74 | 65 6e 20 74 68 65 20 69 | how oft|en the i|
|00000f80| 6e 74 65 72 70 72 65 74 | 65 72 20 63 68 65 63 6b |nterpret|er check|
|00000f90| 73 20 66 6f 72 20 70 65 | 72 69 6f 64 69 63 20 74 |s for pe|riodic t|
|00000fa0| 68 69 6e 67 73 20 73 75 | 63 68 0a 61 73 20 74 68 |hings su|ch.as th|
|00000fb0| 72 65 61 64 20 73 77 69 | 74 63 68 65 73 20 61 6e |read swi|tches an|
|00000fc0| 64 20 73 69 67 6e 61 6c | 20 68 61 6e 64 6c 65 72 |d signal| handler|
|00000fd0| 73 2e 20 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 |s. The |default |
|00000fe0| 69 73 20 31 30 2c 20 6d | 65 61 6e 69 6e 67 0a 74 |is 10, m|eaning.t|
|00000ff0| 68 65 20 63 68 65 63 6b | 20 69 73 20 70 65 72 66 |he check| is perf|
|00001000| 6f 72 6d 65 64 20 65 76 | 65 72 79 20 31 30 20 50 |ormed ev|ery 10 P|
|00001010| 79 74 68 6f 6e 20 76 69 | 72 74 75 61 6c 20 69 6e |ython vi|rtual in|
|00001020| 73 74 72 75 63 74 69 6f | 6e 73 2e 20 20 53 65 74 |structio|ns. Set|
|00001030| 74 69 6e 67 0a 69 74 20 | 74 6f 20 61 20 6c 61 72 |ting.it |to a lar|
|00001040| 67 65 72 20 76 61 6c 75 | 65 20 6d 61 79 20 69 6e |ger valu|e may in|
|00001050| 63 72 65 61 73 65 20 70 | 65 72 66 6f 72 6d 61 6e |crease p|erforman|
|00001060| 63 65 20 66 6f 72 20 70 | 72 6f 67 72 61 6d 73 20 |ce for p|rograms |
|00001070| 75 73 69 6e 67 0a 74 68 | 72 65 61 64 73 2e 20 20 |using.th|reads. |
|00001080| 53 65 74 74 69 6e 67 20 | 69 74 20 74 6f 20 61 20 |Setting |it to a |
|00001090| 76 61 6c 75 65 20 24 5c | 6c 65 71 20 30 24 20 63 |value $\|leq 0$ c|
|000010a0| 68 65 63 6b 73 20 65 76 | 65 72 79 20 76 69 72 74 |hecks ev|ery virt|
|000010b0| 75 61 6c 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 2c |ual inst|ruction,|
|000010c0| 0a 6d 61 78 69 6d 69 7a | 69 6e 67 20 72 65 73 70 |.maximiz|ing resp|
|000010d0| 6f 6e 73 69 76 65 6e 65 | 73 73 20 61 73 20 77 65 |onsivene|ss as we|
|000010e0| 6c 6c 20 61 73 20 6f 76 | 65 72 68 65 61 64 2e 0a |ll as ov|erhead..|
|000010f0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0a 0a |\end{fun|cdesc}..|
|00001100| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00001110| 7b 73 65 74 74 72 61 63 | 65 7d 7b 74 72 61 63 65 |{settrac|e}{trace|
|00001120| 66 75 6e 63 7d 0a 20 20 | 53 65 74 20 74 68 65 20 |func}. |Set the |
|00001130| 73 79 73 74 65 6d 27 73 | 20 74 72 61 63 65 20 66 |system's| trace f|
|00001140| 75 6e 63 74 69 6f 6e 2c | 20 77 68 69 63 68 20 61 |unction,| which a|
|00001150| 6c 6c 6f 77 73 20 79 6f | 75 20 74 6f 20 69 6d 70 |llows yo|u to imp|
|00001160| 6c 65 6d 65 6e 74 20 61 | 0a 20 20 50 79 74 68 6f |lement a|. Pytho|
|00001170| 6e 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 64 65 |n source| code de|
|00001180| 62 75 67 67 65 72 20 69 | 6e 20 50 79 74 68 6f 6e |bugger i|n Python|
|00001190| 2e 20 20 53 65 65 20 73 | 65 63 74 69 6f 6e 20 60 |. See s|ection `|
|000011a0| 60 48 6f 77 20 49 74 20 | 57 6f 72 6b 73 27 27 0a |`How It |Works''.|
|000011b0| 20 20 69 6e 20 74 68 65 | 20 63 68 61 70 74 65 72 | in the| chapter|
|000011c0| 20 6f 6e 20 74 68 65 20 | 50 79 74 68 6f 6e 20 44 | on the |Python D|
|000011d0| 65 62 75 67 67 65 72 2e | 0a 5c 65 6e 64 7b 66 75 |ebugger.|.\end{fu|
|000011e0| 6e 63 64 65 73 63 7d 0a | 5c 69 6e 64 65 78 7b 74 |ncdesc}.|\index{t|
|000011f0| 72 61 63 65 20 66 75 6e | 63 74 69 6f 6e 7d 0a 5c |race fun|ction}.\|
|00001200| 69 6e 64 65 78 7b 64 65 | 62 75 67 67 65 72 7d 0a |index{de|bugger}.|
|00001210| 0a 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |.\begin{|funcdesc|
|00001220| 7d 7b 73 65 74 70 72 6f | 66 69 6c 65 7d 7b 70 72 |}{setpro|file}{pr|
|00001230| 6f 66 69 6c 65 66 75 6e | 63 7d 0a 20 20 53 65 74 |ofilefun|c}. Set|
|00001240| 20 74 68 65 20 73 79 73 | 74 65 6d 27 73 20 70 72 | the sys|tem's pr|
|00001250| 6f 66 69 6c 65 20 66 75 | 6e 63 74 69 6f 6e 2c 20 |ofile fu|nction, |
|00001260| 77 68 69 63 68 20 61 6c | 6c 6f 77 73 20 79 6f 75 |which al|lows you|
|00001270| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 61 0a | to impl|ement a.|
|00001280| 20 20 50 79 74 68 6f 6e | 20 73 6f 75 72 63 65 20 | Python| source |
|00001290| 63 6f 64 65 20 70 72 6f | 66 69 6c 65 72 20 69 6e |code pro|filer in|
|000012a0| 20 50 79 74 68 6f 6e 2e | 20 20 53 65 65 20 74 68 | Python.| See th|
|000012b0| 65 20 63 68 61 70 74 65 | 72 20 6f 6e 20 74 68 65 |e chapte|r on the|
|000012c0| 0a 20 20 50 79 74 68 6f | 6e 20 50 72 6f 66 69 6c |. Pytho|n Profil|
|000012d0| 65 72 2e 20 20 54 68 65 | 20 73 79 73 74 65 6d 27 |er. The| system'|
|000012e0| 73 20 70 72 6f 66 69 6c | 65 20 66 75 6e 63 74 69 |s profil|e functi|
|000012f0| 6f 6e 0a 20 20 69 73 20 | 63 61 6c 6c 65 64 20 73 |on. is |called s|
|00001300| 69 6d 69 6c 61 72 6c 79 | 20 74 6f 20 74 68 65 20 |imilarly| to the |
|00001310| 73 79 73 74 65 6d 27 73 | 20 74 72 61 63 65 20 66 |system's| trace f|
|00001320| 75 6e 63 74 69 6f 6e 20 | 28 73 65 65 0a 20 20 5c |unction |(see. \|
|00001330| 63 6f 64 65 7b 73 79 73 | 2e 73 65 74 74 72 61 63 |code{sys|.settrac|
|00001340| 65 7d 29 2c 20 62 75 74 | 20 69 74 20 69 73 6e 27 |e}), but| it isn'|
|00001350| 74 20 63 61 6c 6c 65 64 | 20 66 6f 72 20 65 61 63 |t called| for eac|
|00001360| 68 20 65 78 65 63 75 74 | 65 64 20 6c 69 6e 65 20 |h execut|ed line |
|00001370| 6f 66 0a 20 20 63 6f 64 | 65 20 28 6f 6e 6c 79 20 |of. cod|e (only |
|00001380| 6f 6e 20 63 61 6c 6c 20 | 61 6e 64 20 72 65 74 75 |on call |and retu|
|00001390| 72 6e 20 61 6e 64 20 77 | 68 65 6e 20 61 6e 20 65 |rn and w|hen an e|
|000013a0| 78 63 65 70 74 69 6f 6e | 20 6f 63 63 75 72 73 29 |xception| occurs)|
|000013b0| 2e 20 20 41 6c 73 6f 2c | 0a 20 20 69 74 73 20 72 |. Also,|. its r|
|000013c0| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 69 73 20 6e |eturn va|lue is n|
|000013d0| 6f 74 20 75 73 65 64 2c | 20 73 6f 20 69 74 20 63 |ot used,| so it c|
|000013e0| 61 6e 20 6a 75 73 74 20 | 72 65 74 75 72 6e 20 5c |an just |return \|
|000013f0| 63 6f 64 65 7b 4e 6f 6e | 65 7d 2e 0a 5c 65 6e 64 |code{Non|e}..\end|
|00001400| 7b 66 75 6e 63 64 65 73 | 63 7d 0a 5c 69 6e 64 65 |{funcdes|c}.\inde|
|00001410| 78 7b 70 72 6f 66 69 6c | 65 20 66 75 6e 63 74 69 |x{profil|e functi|
|00001420| 6f 6e 7d 0a 5c 69 6e 64 | 65 78 7b 70 72 6f 66 69 |on}.\ind|ex{profi|
|00001430| 6c 65 72 7d 0a 0a 5c 62 | 65 67 69 6e 7b 64 61 74 |ler}..\b|egin{dat|
|00001440| 61 64 65 73 63 7d 7b 73 | 74 64 69 6e 7d 0a 5c 64 |adesc}{s|tdin}.\d|
|00001450| 61 74 61 6c 69 6e 65 7b | 73 74 64 6f 75 74 7d 0a |ataline{|stdout}.|
|00001460| 5c 64 61 74 61 6c 69 6e | 65 7b 73 74 64 65 72 72 |\datalin|e{stderr|
|00001470| 7d 0a 20 20 46 69 6c 65 | 20 6f 62 6a 65 63 74 73 |}. File| objects|
|00001480| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 | corresp|onding t|
|00001490| 6f 20 74 68 65 20 69 6e | 74 65 72 70 72 65 74 65 |o the in|terprete|
|000014a0| 72 27 73 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 |r's stan|dard inp|
|000014b0| 75 74 2c 0a 20 20 6f 75 | 74 70 75 74 20 61 6e 64 |ut,. ou|tput and|
|000014c0| 20 65 72 72 6f 72 20 73 | 74 72 65 61 6d 73 2e 20 | error s|treams. |
|000014d0| 20 5c 63 6f 64 65 7b 73 | 79 73 2e 73 74 64 69 6e | \code{s|ys.stdin|
|000014e0| 7d 20 69 73 20 75 73 65 | 64 20 66 6f 72 20 61 6c |} is use|d for al|
|000014f0| 6c 0a 20 20 69 6e 74 65 | 72 70 72 65 74 65 72 20 |l. inte|rpreter |
|00001500| 69 6e 70 75 74 20 65 78 | 63 65 70 74 20 66 6f 72 |input ex|cept for|
|00001510| 20 73 63 72 69 70 74 73 | 20 62 75 74 20 69 6e 63 | scripts| but inc|
|00001520| 6c 75 64 69 6e 67 20 63 | 61 6c 6c 73 20 74 6f 0a |luding c|alls to.|
|00001530| 20 20 5c 63 6f 64 65 7b | 69 6e 70 75 74 28 29 7d | \code{|input()}|
|00001540| 20 61 6e 64 20 5c 63 6f | 64 65 7b 72 61 77 5f 69 | and \co|de{raw_i|
|00001550| 6e 70 75 74 28 29 7d 2e | 20 20 5c 63 6f 64 65 7b |nput()}.| \code{|
|00001560| 73 79 73 2e 73 74 64 6f | 75 74 7d 20 69 73 20 75 |sys.stdo|ut} is u|
|00001570| 73 65 64 0a 20 20 66 6f | 72 20 74 68 65 20 6f 75 |sed. fo|r the ou|
|00001580| 74 70 75 74 20 6f 66 20 | 5c 63 6f 64 65 7b 70 72 |tput of |\code{pr|
|00001590| 69 6e 74 7d 20 61 6e 64 | 20 65 78 70 72 65 73 73 |int} and| express|
|000015a0| 69 6f 6e 20 73 74 61 74 | 65 6d 65 6e 74 73 20 61 |ion stat|ements a|
|000015b0| 6e 64 20 66 6f 72 20 74 | 68 65 0a 20 20 70 72 6f |nd for t|he. pro|
|000015c0| 6d 70 74 73 20 6f 66 20 | 5c 63 6f 64 65 7b 69 6e |mpts of |\code{in|
|000015d0| 70 75 74 28 29 7d 20 61 | 6e 64 20 5c 63 6f 64 65 |put()} a|nd \code|
|000015e0| 7b 72 61 77 5f 69 6e 70 | 75 74 28 29 7d 2e 20 20 |{raw_inp|ut()}. |
|000015f0| 54 68 65 20 69 6e 74 65 | 72 70 72 65 74 65 72 27 |The inte|rpreter'|
|00001600| 73 0a 20 20 6f 77 6e 20 | 70 72 6f 6d 70 74 73 20 |s. own |prompts |
|00001610| 61 6e 64 20 28 61 6c 6d | 6f 73 74 20 61 6c 6c 20 |and (alm|ost all |
|00001620| 6f 66 29 20 69 74 73 20 | 65 72 72 6f 72 20 6d 65 |of) its |error me|
|00001630| 73 73 61 67 65 73 20 67 | 6f 20 74 6f 0a 20 20 5c |ssages g|o to. \|
|00001640| 63 6f 64 65 7b 73 79 73 | 2e 73 74 64 65 72 72 7d |code{sys|.stderr}|
|00001650| 2e 20 20 5c 63 6f 64 65 | 7b 73 79 73 2e 73 74 64 |. \code|{sys.std|
|00001660| 6f 75 74 7d 20 61 6e 64 | 20 5c 63 6f 64 65 7b 73 |out} and| \code{s|
|00001670| 79 73 2e 73 74 64 65 72 | 72 7d 20 6e 65 65 64 6e |ys.stder|r} needn|
|00001680| 27 74 0a 20 20 62 65 20 | 62 75 69 6c 74 2d 69 6e |'t. be |built-in|
|00001690| 20 66 69 6c 65 20 6f 62 | 6a 65 63 74 73 3a 20 61 | file ob|jects: a|
|000016a0| 6e 79 20 6f 62 6a 65 63 | 74 20 69 73 20 61 63 63 |ny objec|t is acc|
|000016b0| 65 70 74 61 62 6c 65 20 | 61 73 20 6c 6f 6e 67 20 |eptable |as long |
|000016c0| 61 73 20 69 74 20 68 61 | 73 0a 20 20 61 20 5c 63 |as it ha|s. a \c|
|000016d0| 6f 64 65 7b 77 72 69 74 | 65 7d 20 6d 65 74 68 6f |ode{writ|e} metho|
|000016e0| 64 20 74 68 61 74 20 74 | 61 6b 65 73 20 61 20 73 |d that t|akes a s|
|000016f0| 74 72 69 6e 67 20 61 72 | 67 75 6d 65 6e 74 2e 20 |tring ar|gument. |
|00001700| 20 28 43 68 61 6e 67 69 | 6e 67 20 74 68 65 73 65 | (Changi|ng these|
|00001710| 0a 20 20 6f 62 6a 65 63 | 74 73 20 64 6f 65 73 6e |. objec|ts doesn|
|00001720| 27 74 20 61 66 66 65 63 | 74 20 74 68 65 20 73 74 |'t affec|t the st|
|00001730| 61 6e 64 61 72 64 20 49 | 2f 4f 20 73 74 72 65 61 |andard I|/O strea|
|00001740| 6d 73 20 6f 66 20 70 72 | 6f 63 65 73 73 65 73 0a |ms of pr|ocesses.|
|00001750| 20 20 65 78 65 63 75 74 | 65 64 20 62 79 20 5c 63 | execut|ed by \c|
|00001760| 6f 64 65 7b 70 6f 70 65 | 6e 28 29 7d 2c 20 5c 63 |ode{pope|n()}, \c|
|00001770| 6f 64 65 7b 73 79 73 74 | 65 6d 28 29 7d 20 6f 72 |ode{syst|em()} or|
|00001780| 20 74 68 65 20 5c 63 6f | 64 65 7b 65 78 65 63 2a | the \co|de{exec*|
|00001790| 28 29 7d 0a 20 20 66 61 | 6d 69 6c 79 20 6f 66 20 |()}. fa|mily of |
|000017a0| 66 75 6e 63 74 69 6f 6e | 73 20 69 6e 20 74 68 65 |function|s in the|
|000017b0| 20 5c 63 6f 64 65 7b 6f | 73 7d 20 6d 6f 64 75 6c | \code{o|s} modul|
|000017c0| 65 2e 29 0a 5c 73 74 6d | 6f 64 69 6e 64 65 78 7b |e.).\stm|odindex{|
|000017d0| 6f 73 7d 0a 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |os}.\end|{datades|
|000017e0| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 64 61 74 61 64 |c}..\beg|in{datad|
|000017f0| 65 73 63 7d 7b 74 72 61 | 63 65 62 61 63 6b 6c 69 |esc}{tra|cebackli|
|00001800| 6d 69 74 7d 0a 57 68 65 | 6e 20 74 68 69 73 20 76 |mit}.Whe|n this v|
|00001810| 61 72 69 61 62 6c 65 20 | 69 73 20 73 65 74 20 74 |ariable |is set t|
|00001820| 6f 20 61 6e 20 69 6e 74 | 65 67 65 72 20 76 61 6c |o an int|eger val|
|00001830| 75 65 2c 20 69 74 20 64 | 65 74 65 72 6d 69 6e 65 |ue, it d|etermine|
|00001840| 73 20 74 68 65 0a 6d 61 | 78 69 6d 75 6d 20 6e 75 |s the.ma|ximum nu|
|00001850| 6d 62 65 72 20 6f 66 20 | 6c 65 76 65 6c 73 20 6f |mber of |levels o|
|00001860| 66 20 74 72 61 63 65 62 | 61 63 6b 20 69 6e 66 6f |f traceb|ack info|
|00001870| 72 6d 61 74 69 6f 6e 20 | 70 72 69 6e 74 65 64 20 |rmation |printed |
|00001880| 77 68 65 6e 20 61 6e 0a | 75 6e 68 61 6e 64 6c 65 |when an.|unhandle|
|00001890| 64 20 65 78 63 65 70 74 | 69 6f 6e 20 6f 63 63 75 |d except|ion occu|
|000018a0| 72 73 2e 20 20 54 68 65 | 20 64 65 66 61 75 6c 74 |rs. The| default|
|000018b0| 20 69 73 20 31 30 30 30 | 2e 20 20 57 68 65 6e 20 | is 1000|. When |
|000018c0| 73 65 74 20 74 6f 20 30 | 20 6f 72 0a 6c 65 73 73 |set to 0| or.less|
|000018d0| 2c 20 61 6c 6c 20 74 72 | 61 63 65 62 61 63 6b 20 |, all tr|aceback |
|000018e0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 73 |informat|ion is s|
|000018f0| 75 70 70 72 65 73 73 65 | 64 20 61 6e 64 20 6f 6e |uppresse|d and on|
|00001900| 6c 79 20 74 68 65 20 65 | 78 63 65 70 74 69 6f 6e |ly the e|xception|
|00001910| 0a 74 79 70 65 20 61 6e | 64 20 76 61 6c 75 65 20 |.type an|d value |
|00001920| 61 72 65 20 70 72 69 6e | 74 65 64 2e 0a 5c 65 6e |are prin|ted..\en|
|00001930| 64 7b 64 61 74 61 64 65 | 73 63 7d 0a |d{datade|sc}. |
+--------+-------------------------+-------------------------+--------+--------+