home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / python / pytex / pytexdoc / lib1 / traceback / tex / node1_ct.html < prev    next >
LaTeX Document  |  1996-11-08  |  2.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 53 74 | 61 6e 64 61 72 64 20 4d |ts of St|andard M|
|000000b0| 6f 64 75 6c 65 20 74 72 | 61 63 65 62 61 63 6b 3c |odule tr|aceback<|
|000000c0| 2f 54 49 54 4c 45 3e 0a | 0a 3c 4d 45 54 41 20 48 |/TITLE>.|.<META H|
|000000d0| 54 54 50 2d 45 51 55 49 | 56 3d 22 43 6f 6e 74 65 |TTP-EQUI|V="Conte|
|000000e0| 6e 74 2d 54 79 70 65 22 | 20 43 4f 4e 54 45 4e 54 |nt-Type"| CONTENT|
|000000f0| 3d 22 74 65 78 74 2f 68 | 74 6d 6c 3b 20 63 68 61 |="text/h|tml; cha|
|00000100| 72 73 65 74 3d 75 74 66 | 2d 38 22 3e 0a 3c 4d 45 |rset=utf|-8">.<ME|
|00000110| 54 41 20 4e 41 4d 45 3d | 22 76 69 65 77 70 6f 72 |TA NAME=|"viewpor|
|00000120| 74 22 20 43 4f 4e 54 45 | 4e 54 3d 22 77 69 64 74 |t" CONTE|NT="widt|
|00000130| 68 3d 64 65 76 69 63 65 | 2d 77 69 64 74 68 2c 20 |h=device|-width, |
|00000140| 69 6e 69 74 69 61 6c 2d | 73 63 61 6c 65 3d 31 2e |initial-|scale=1.|
|00000150| 30 22 3e 0a 3c 4d 45 54 | 41 20 4e 41 4d 45 3d 22 |0">.<MET|A NAME="|
|00000160| 47 65 6e 65 72 61 74 6f | 72 22 20 43 4f 4e 54 45 |Generato|r" CONTE|
|00000170| 4e 54 3d 22 4c 61 54 65 | 58 32 48 54 4d 4c 20 76 |NT="LaTe|X2HTML v|
|00000180| 32 30 32 32 22 3e 0a 0a | 3c 4c 49 4e 4b 20 52 45 |2022">..|<LINK RE|
|00000190| 4c 3d 22 53 54 59 4c 45 | 53 48 45 45 54 22 20 48 |L="STYLE|SHEET" H|
|000001a0| 52 45 46 3d 22 74 65 78 | 2e 63 73 73 22 3e 0a 0a |REF="tex|.css">..|
|000001b0| 3c 4c 49 4e 4b 20 52 45 | 4c 3d 22 70 72 65 76 69 |<LINK RE|L="previ|
|000001c0| 6f 75 73 22 20 48 52 45 | 46 3d 22 74 65 78 5f 6d |ous" HRE|F="tex_m|
|000001d0| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|000001e0| 45 4c 3d 22 75 70 22 20 | 48 52 45 46 3d 22 74 65 |EL="up" |HREF="te|
|000001f0| 78 5f 6d 6e 2e 68 74 6d | 6c 22 3e 0a 3c 2f 48 45 |x_mn.htm|l">.</HE|
|00000200| 41 44 3e 0a 20 0a 3c 42 | 4f 44 59 20 62 67 63 6f |AD>. .<B|ODY bgco|
|00000210| 6c 6f 72 3d 22 23 66 66 | 66 66 66 66 22 20 74 65 |lor="#ff|ffff" te|
|00000220| 78 74 3d 22 23 30 30 30 | 30 30 30 22 20 6c 69 6e |xt="#000|000" lin|
|00000230| 6b 3d 22 23 39 39 34 34 | 45 45 22 20 76 6c 69 6e |k="#9944|EE" vlin|
|00000240| 6b 3d 22 23 30 30 30 30 | 66 66 22 20 61 6c 69 6e |k="#0000|ff" alin|
|00000250| 6b 3d 22 23 30 30 66 66 | 30 30 22 3e 0a 0a 3c 48 |k="#00ff|00">..<H|
|00000260| 31 3e 3c 41 20 49 44 3d | 22 53 45 43 54 49 4f 4e |1><A ID=|"SECTION|
|00000270| 30 30 30 31 30 30 30 30 | 30 30 30 30 30 30 30 30 |00010000|00000000|
|00000280| 30 30 30 30 22 3e 0a 53 | 74 61 6e 64 61 72 64 20 |0000">.S|tandard |
|00000290| 4d 6f 64 75 6c 65 20 74 | 72 61 63 65 62 61 63 6b |Module t|raceback|
|000002a0| 3c 2f 41 3e 0a 3c 2f 48 | 31 3e 0a 74 72 61 63 65 |</A>.</H|1>.trace|
|000002b0| 62 61 63 6b 0a 0a 3c 50 | 3e 0a 0a 3c 50 3e 0a 54 |back..<P|>..<P>.T|
|000002c0| 68 69 73 20 6d 6f 64 75 | 6c 65 20 70 72 6f 76 69 |his modu|le provi|
|000002d0| 64 65 73 20 61 20 73 74 | 61 6e 64 61 72 64 20 69 |des a st|andard i|
|000002e0| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 66 6f 72 6d |nterface| to form|
|000002f0| 61 74 20 61 6e 64 20 70 | 72 69 6e 74 20 73 74 61 |at and p|rint sta|
|00000300| 63 6b 0a 74 72 61 63 65 | 73 20 6f 66 20 50 79 74 |ck.trace|s of Pyt|
|00000310| 68 6f 6e 20 70 72 6f 67 | 72 61 6d 73 2e 20 20 49 |hon prog|rams. I|
|00000320| 74 20 65 78 61 63 74 6c | 79 20 6d 69 6d 69 63 73 |t exactl|y mimics|
|00000330| 20 74 68 65 20 62 65 68 | 61 76 69 6f 72 20 6f 66 | the beh|avior of|
|00000340| 20 74 68 65 0a 50 79 74 | 68 6f 6e 20 69 6e 74 65 | the.Pyt|hon inte|
|00000350| 72 70 72 65 74 65 72 20 | 77 68 65 6e 20 69 74 20 |rpreter |when it |
|00000360| 70 72 69 6e 74 73 20 61 | 20 73 74 61 63 6b 20 74 |prints a| stack t|
|00000370| 72 61 63 65 2e 20 20 54 | 68 69 73 20 69 73 20 75 |race. T|his is u|
|00000380| 73 65 66 75 6c 20 77 68 | 65 6e 0a 79 6f 75 20 77 |seful wh|en.you w|
|00000390| 61 6e 74 20 74 6f 20 70 | 72 69 6e 74 20 73 74 61 |ant to p|rint sta|
|000003a0| 63 6b 20 74 72 61 63 65 | 73 20 75 6e 64 65 72 20 |ck trace|s under |
|000003b0| 70 72 6f 67 72 61 6d 20 | 63 6f 6e 74 72 6f 6c 2c |program |control,|
|000003c0| 20 65 2e 67 2e 20 69 6e | 20 61 0a 60 60 77 72 61 | e.g. in| a.``wra|
|000003d0| 70 70 65 72 27 27 20 61 | 72 6f 75 6e 64 20 74 68 |pper'' a|round th|
|000003e0| 65 20 69 6e 74 65 72 70 | 72 65 74 65 72 2e 0a 0a |e interp|reter...|
|000003f0| 3c 50 3e 0a 54 68 65 20 | 6d 6f 64 75 6c 65 20 75 |<P>.The |module u|
|00000400| 73 65 73 20 74 72 61 63 | 65 62 61 63 6b 20 6f 62 |ses trac|eback ob|
|00000410| 6a 65 63 74 73 20 26 6d | 64 61 73 68 3b 20 74 68 |jects &m|dash; th|
|00000420| 69 73 20 69 73 20 74 68 | 65 20 6f 62 6a 65 63 74 |is is th|e object|
|00000430| 20 74 79 70 65 0a 74 68 | 61 74 20 69 73 20 73 74 | type.th|at is st|
|00000440| 6f 72 65 64 20 69 6e 20 | 74 68 65 20 76 61 72 69 |ored in |the vari|
|00000450| 61 62 6c 65 73 20 73 79 | 73 2e 65 78 63 5f 74 72 |ables sy|s.exc_tr|
|00000460| 61 63 65 62 61 63 6b 20 | 61 6e 64 0a 73 79 73 2e |aceback |and.sys.|
|00000470| 6c 61 73 74 5f 74 72 61 | 63 65 62 61 63 6b 2e 0a |last_tra|ceback..|
|00000480| 0a 3c 50 3e 0a 54 68 65 | 20 6d 6f 64 75 6c 65 20 |.<P>.The| module |
|00000490| 64 65 66 69 6e 65 73 20 | 74 68 65 20 66 6f 6c 6c |defines |the foll|
|000004a0| 6f 77 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 73 3a |owing fu|nctions:|
|000004b0| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|000004c0| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|000004d0| 20 31 39 36 2e 32 35 65 | 78 3b 20 76 65 72 74 69 | 196.25e|x; verti|
|000004e0| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 2d 30 2e 35 37 |cal-alig|n: -0.57|
|000004f0| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 31 2e |ex; " SR|C="img1.|
|00000500| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|00000510| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 70 72 69 6e |n{funcde|sc}{prin|
|00000520| 74 5f 74 62 7d 7b 74 72 | 61 63 65 62 61 63 6b 5c |t_tb}{tr|aceback\|
|00000530| 6f 70 74 69 6f 6e 61 6c | 7b 5c 2c 20 6c 69 6d 69 |optional|{\, limi|
|00000540| 74 7d 7d 0a 50 72 69 6e | 74 20 75 70 20 74 6f 20 |t}}.Prin|t up to |
|00000550| 5c 76 61 72 7b 6c 69 6d | 69 74 7d 2e 2e 2e 0a 2e |\var{lim|it}.....|
|00000560| 2e 2e 66 0a 5c 76 61 72 | 7b 6c 69 6d 69 74 7d 20 |..f.\var|{limit} |
|00000570| 69 73 20 6f 6d 69 74 74 | 65 64 20 6f 72 20 5c 63 |is omitt|ed or \c|
|00000580| 6f 64 65 7b 4e 6f 6e 65 | 7d 2c 20 61 6c 6c 20 65 |ode{None|}, all e|
|00000590| 6e 74 72 69 65 73 20 61 | 72 65 20 70 72 69 6e 74 |ntries a|re print|
|000005a0| 65 64 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |ed..\end|{funcdes|
|000005b0| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 3c |c}">.<BR|>..<P>.<|
|000005c0| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|000005d0| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 31 37 65 78 |="height|: 2.17ex|
|000005e0| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|000005f0| 3a 20 31 37 36 2e 35 35 | 65 78 3b 20 22 20 53 52 |: 176.55|ex; " SR|
|00000600| 43 3d 22 69 6d 67 32 2e | 70 6e 67 22 0a 20 41 4c |C="img2.|png". AL|
|00000610| 54 3d 22 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |T="\begi|n{funcde|
|00000620| 73 63 7d 7b 65 78 74 72 | 61 63 74 5f 74 62 7d 7b |sc}{extr|act_tb}{|
|00000630| 74 72 61 63 65 62 61 63 | 6b 5c 6f 70 74 69 6f 6e |tracebac|k\option|
|00000640| 61 6c 7b 5c 2c 20 6c 69 | 6d 69 74 7d 7d 0a 52 65 |al{\, li|mit}}.Re|
|00000650| 74 75 72 6e 20 61 20 6c | 69 73 74 20 6f 66 20 75 |turn a l|ist of u|
|00000660| 70 20 74 2e 2e 2e 0a 2e | 2e 2e 73 70 61 63 65 20 |p t.....|..space |
|00000670| 73 74 72 69 70 70 65 64 | 3b 20 69 66 20 74 68 65 |stripped|; if the|
|00000680| 20 73 6f 75 72 63 65 20 | 69 73 20 6e 6f 74 20 61 | source |is not a|
|00000690| 76 61 69 6c 61 62 6c 65 | 20 69 74 20 69 73 0a 5c |vailable| it is.\|
|000006a0| 63 6f 64 65 7b 4e 6f 6e | 65 7d 2e 0a 5c 65 6e 64 |code{Non|e}..\end|
|000006b0| 7b 66 75 6e 63 64 65 73 | 63 7d 22 3e 0a 3c 42 52 |{funcdes|c}">.<BR|
|000006c0| 3e 0a 0a 3c 50 3e 0a 3c | 42 52 3e 0a 3c 49 4d 47 |>..<P>.<|BR>.<IMG|
|000006d0| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|000006e0| 3a 20 32 2e 32 34 65 78 | 3b 20 76 65 72 74 69 63 |: 2.24ex|; vertic|
|000006f0| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 36 2e 34 31 |al-align|: 176.41|
|00000700| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 33 2e |ex; " SR|C="img3.|
|00000710| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|00000720| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 70 72 69 6e |n{funcde|sc}{prin|
|00000730| 74 5f 65 78 63 65 70 74 | 69 6f 6e 7d 7b 74 79 70 |t_except|ion}{typ|
|00000740| 65 5c 2c 20 76 61 6c 75 | 65 5c 2c 20 74 72 61 63 |e\, valu|e\, trac|
|00000750| 65 62 61 63 6b 5c 6f 70 | 74 69 6f 6e 61 6c 7b 5c |eback\op|tional{\|
|00000760| 2c 20 6c 69 6d 69 74 7d | 7d 0a 50 2e 2e 2e 0a 2e |, limit}|}.P.....|
|00000770| 2e 2e 65 64 20 77 69 74 | 68 20 61 0a 63 61 72 65 |..ed wit|h a.care|
|00000780| 74 20 69 6e 64 69 63 61 | 74 69 6f 6e 20 74 68 65 |t indica|tion the|
|00000790| 20 61 70 70 72 6f 78 69 | 6d 61 74 65 20 70 6f 73 | approxi|mate pos|
|000007a0| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 65 72 72 |ition of| the err|
|000007b0| 6f 72 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |or..\end|{funcdes|
|000007c0| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 3c |c}">.<BR|>..<P>.<|
|000007d0| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|000007e0| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 31 37 65 78 |="height|: 2.17ex|
|000007f0| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|00000800| 3a 20 31 37 36 2e 31 33 | 65 78 3b 20 22 20 53 52 |: 176.13|ex; " SR|
|00000810| 43 3d 22 69 6d 67 34 2e | 70 6e 67 22 0a 20 41 4c |C="img4.|png". AL|
|00000820| 54 3d 22 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |T="\begi|n{funcde|
|00000830| 73 63 7d 7b 70 72 69 6e | 74 5f 65 78 63 7d 7b 5c |sc}{prin|t_exc}{\|
|00000840| 6f 70 74 69 6f 6e 61 6c | 7b 6c 69 6d 69 74 7d 7d |optional|{limit}}|
|00000850| 0a 54 68 69 73 20 69 73 | 20 61 20 73 68 6f 72 74 |.This is| a short|
|00000860| 68 61 6e 64 20 66 6f 72 | 20 5c 63 6f 64 65 7b 70 |hand for| \code{p|
|00000870| 72 69 6e 2e 2e 2e 0a 2e | 2e 2e 2c 7d 0a 5c 63 6f |rin.....|..,}.\co|
|00000880| 64 65 7b 73 79 73 2e 65 | 78 63 5f 76 61 6c 75 65 |de{sys.e|xc_value|
|00000890| 2c 7d 20 5c 63 6f 64 65 | 7b 73 79 73 2e 65 78 63 |,} \code|{sys.exc|
|000008a0| 5f 74 72 61 63 65 62 61 | 63 6b 2c 7d 20 5c 63 6f |_traceba|ck,} \co|
|000008b0| 64 65 7b 6c 69 6d 69 74 | 29 7d 2e 0a 5c 65 6e 64 |de{limit|)}..\end|
|000008c0| 7b 66 75 6e 63 64 65 73 | 63 7d 22 3e 0a 3c 42 52 |{funcdes|c}">.<BR|
|000008d0| 3e 0a 0a 3c 50 3e 0a 3c | 42 52 3e 0a 3c 49 4d 47 |>..<P>.<|BR>.<IMG|
|000008e0| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|000008f0| 3a 20 32 2e 33 38 65 78 | 3b 20 76 65 72 74 69 63 |: 2.38ex|; vertic|
|00000900| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 36 2e 32 37 |al-align|: 176.27|
|00000910| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 35 2e |ex; " SR|C="img5.|
|00000920| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|00000930| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 70 72 69 6e |n{funcde|sc}{prin|
|00000940| 74 5f 6c 61 73 74 7d 7b | 5c 6f 70 74 69 6f 6e 61 |t_last}{|\optiona|
|00000950| 6c 7b 6c 69 6d 69 74 7d | 7d 0a 54 68 69 73 20 69 |l{limit}|}.This i|
|00000960| 73 20 61 20 73 68 6f 72 | 74 68 61 6e 64 20 66 6f |s a shor|thand fo|
|00000970| 72 20 5c 63 6f 64 65 7b | 70 72 69 2e 2e 2e 0a 2e |r \code{|pri.....|
|00000980| 2e 2e 0a 5c 63 6f 64 65 | 7b 73 79 73 2e 6c 61 73 |...\code|{sys.las|
|00000990| 74 5f 76 61 6c 75 65 2c | 7d 20 5c 63 6f 64 65 7b |t_value,|} \code{|
|000009a0| 73 79 73 2e 6c 61 73 74 | 5f 74 72 61 63 65 62 61 |sys.last|_traceba|
|000009b0| 63 6b 2c 7d 20 5c 63 6f | 64 65 7b 6c 69 6d 69 74 |ck,} \co|de{limit|
|000009c0| 29 7d 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |)}..\end|{funcdes|
|000009d0| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 3c 48 52 3e 0a 0a |c}">.<BR|>.<HR>..|
|000009e0| 3c 2f 42 4f 44 59 3e 0a | 3c 2f 48 54 4d 4c 3e 0a |</BODY>.|</HTML>.|
+--------+-------------------------+-------------------------+--------+--------+