home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / python / pytex / pytexdoc / lib1 / marshal / tex / node1_ct.html < prev    next >
LaTeX Document  |  1996-11-08  |  3.8 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 42 75 | 69 6c 74 2d 69 6e 20 4d |ts of Bu|ilt-in M|
|000000b0| 6f 64 75 6c 65 20 6d 61 | 72 73 68 61 6c 3c 2f 54 |odule ma|rshal</T|
|000000c0| 49 54 4c 45 3e 0a 0a 3c | 4d 45 54 41 20 48 54 54 |ITLE>..<|META HTT|
|000000d0| 50 2d 45 51 55 49 56 3d | 22 43 6f 6e 74 65 6e 74 |P-EQUIV=|"Content|
|000000e0| 2d 54 79 70 65 22 20 43 | 4f 4e 54 45 4e 54 3d 22 |-Type" C|ONTENT="|
|000000f0| 74 65 78 74 2f 68 74 6d | 6c 3b 20 63 68 61 72 73 |text/htm|l; chars|
|00000100| 65 74 3d 75 74 66 2d 38 | 22 3e 0a 3c 4d 45 54 41 |et=utf-8|">.<META|
|00000110| 20 4e 41 4d 45 3d 22 76 | 69 65 77 70 6f 72 74 22 | NAME="v|iewport"|
|00000120| 20 43 4f 4e 54 45 4e 54 | 3d 22 77 69 64 74 68 3d | CONTENT|="width=|
|00000130| 64 65 76 69 63 65 2d 77 | 69 64 74 68 2c 20 69 6e |device-w|idth, in|
|00000140| 69 74 69 61 6c 2d 73 63 | 61 6c 65 3d 31 2e 30 22 |itial-sc|ale=1.0"|
|00000150| 3e 0a 3c 4d 45 54 41 20 | 4e 41 4d 45 3d 22 47 65 |>.<META |NAME="Ge|
|00000160| 6e 65 72 61 74 6f 72 22 | 20 43 4f 4e 54 45 4e 54 |nerator"| CONTENT|
|00000170| 3d 22 4c 61 54 65 58 32 | 48 54 4d 4c 20 76 32 30 |="LaTeX2|HTML v20|
|00000180| 32 32 22 3e 0a 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |22">..<L|INK REL=|
|00000190| 22 53 54 59 4c 45 53 48 | 45 45 54 22 20 48 52 45 |"STYLESH|EET" HRE|
|000001a0| 46 3d 22 74 65 78 2e 63 | 73 73 22 3e 0a 0a 3c 4c |F="tex.c|ss">..<L|
|000001b0| 49 4e 4b 20 52 45 4c 3d | 22 70 72 65 76 69 6f 75 |INK REL=|"previou|
|000001c0| 73 22 20 48 52 45 46 3d | 22 74 65 78 5f 6d 6e 2e |s" HREF=|"tex_mn.|
|000001d0| 68 74 6d 6c 22 3e 0a 3c | 4c 49 4e 4b 20 52 45 4c |html">.<|LINK REL|
|000001e0| 3d 22 75 70 22 20 48 52 | 45 46 3d 22 74 65 78 5f |="up" HR|EF="tex_|
|000001f0| 6d 6e 2e 68 74 6d 6c 22 | 3e 0a 3c 2f 48 45 41 44 |mn.html"|>.</HEAD|
|00000200| 3e 0a 20 0a 3c 42 4f 44 | 59 20 62 67 63 6f 6c 6f |>. .<BOD|Y bgcolo|
|00000210| 72 3d 22 23 66 66 66 66 | 66 66 22 20 74 65 78 74 |r="#ffff|ff" text|
|00000220| 3d 22 23 30 30 30 30 30 | 30 22 20 6c 69 6e 6b 3d |="#00000|0" link=|
|00000230| 22 23 39 39 34 34 45 45 | 22 20 76 6c 69 6e 6b 3d |"#9944EE|" vlink=|
|00000240| 22 23 30 30 30 30 66 66 | 22 20 61 6c 69 6e 6b 3d |"#0000ff|" alink=|
|00000250| 22 23 30 30 66 66 30 30 | 22 3e 0a 0a 3c 48 31 3e |"#00ff00|">..<H1>|
|00000260| 3c 41 20 49 44 3d 22 53 | 45 43 54 49 4f 4e 30 30 |<A ID="S|ECTION00|
|00000270| 30 31 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |01000000|00000000|
|00000280| 30 30 22 3e 0a 42 75 69 | 6c 74 2d 69 6e 20 4d 6f |00">.Bui|lt-in Mo|
|00000290| 64 75 6c 65 20 6d 61 72 | 73 68 61 6c 3c 2f 41 3e |dule mar|shal</A>|
|000002a0| 0a 3c 2f 48 31 3e 0a 0a | 3c 50 3e 0a 6d 61 72 73 |.</H1>..|<P>.mars|
|000002b0| 68 61 6c 0a 54 68 69 73 | 20 6d 6f 64 75 6c 65 20 |hal.This| module |
|000002c0| 63 6f 6e 74 61 69 6e 73 | 20 66 75 6e 63 74 69 6f |contains| functio|
|000002d0| 6e 73 20 74 68 61 74 20 | 63 61 6e 20 72 65 61 64 |ns that |can read|
|000002e0| 20 61 6e 64 20 77 72 69 | 74 65 20 50 79 74 68 6f | and wri|te Pytho|
|000002f0| 6e 0a 76 61 6c 75 65 73 | 20 69 6e 20 61 20 62 69 |n.values| in a bi|
|00000300| 6e 61 72 79 20 66 6f 72 | 6d 61 74 2e 20 20 54 68 |nary for|mat. Th|
|00000310| 65 20 66 6f 72 6d 61 74 | 20 69 73 20 73 70 65 63 |e format| is spec|
|00000320| 69 66 69 63 20 74 6f 20 | 50 79 74 68 6f 6e 2c 20 |ific to |Python, |
|00000330| 62 75 74 0a 69 6e 64 65 | 70 65 6e 64 65 6e 74 20 |but.inde|pendent |
|00000340| 6f 66 20 6d 61 63 68 69 | 6e 65 20 61 72 63 68 69 |of machi|ne archi|
|00000350| 74 65 63 74 75 72 65 20 | 69 73 73 75 65 73 20 28 |tecture |issues (|
|00000360| 65 2e 67 2e 2c 20 79 6f | 75 20 63 61 6e 20 77 72 |e.g., yo|u can wr|
|00000370| 69 74 65 20 61 0a 50 79 | 74 68 6f 6e 20 76 61 6c |ite a.Py|thon val|
|00000380| 75 65 20 74 6f 20 61 20 | 66 69 6c 65 20 6f 6e 20 |ue to a |file on |
|00000390| 61 20 50 43 2c 20 74 72 | 61 6e 73 70 6f 72 74 20 |a PC, tr|ansport |
|000003a0| 74 68 65 20 66 69 6c 65 | 20 74 6f 20 61 20 53 75 |the file| to a Su|
|000003b0| 6e 2c 20 61 6e 64 20 72 | 65 61 64 0a 69 74 20 62 |n, and r|ead.it b|
|000003c0| 61 63 6b 20 74 68 65 72 | 65 29 2e 20 20 44 65 74 |ack ther|e). Det|
|000003d0| 61 69 6c 73 20 6f 66 20 | 74 68 65 20 66 6f 72 6d |ails of |the form|
|000003e0| 61 74 20 61 72 65 20 75 | 6e 64 6f 63 75 6d 65 6e |at are u|ndocumen|
|000003f0| 74 65 64 20 6f 6e 20 70 | 75 72 70 6f 73 65 3b 0a |ted on p|urpose;.|
|00000400| 69 74 20 6d 61 79 20 63 | 68 61 6e 67 65 20 62 65 |it may c|hange be|
|00000410| 74 77 65 65 6e 20 50 79 | 74 68 6f 6e 20 76 65 72 |tween Py|thon ver|
|00000420| 73 69 6f 6e 73 20 28 61 | 6c 74 68 6f 75 67 68 20 |sions (a|lthough |
|00000430| 69 74 20 72 61 72 65 6c | 79 20 64 6f 65 73 29 2e |it rarel|y does).|
|00000440| 3c 41 20 4e 41 4d 45 3d | 22 74 65 78 32 68 74 6d |<A NAME=|"tex2htm|
|00000450| 6c 31 22 20 48 52 45 46 | 3d 22 66 6f 6f 74 6e 6f |l1" HREF|="footno|
|00000460| 64 65 5f 6d 6e 2e 68 74 | 6d 6c 23 66 6f 6f 74 33 |de_mn.ht|ml#foot3|
|00000470| 22 20 54 41 52 47 45 54 | 3d 22 66 6f 6f 74 65 72 |" TARGET|="footer|
|00000480| 22 3e 3c 53 55 50 3e 3c | 49 4d 47 20 20 41 4c 54 |"><SUP><|IMG ALT|
|00000490| 3d 22 5b 2a 5d 22 20 53 | 52 43 3d 22 66 6f 6f 74 |="[*]" S|RC="foot|
|000004a0| 6e 6f 74 65 2e 70 6e 67 | 22 3e 3c 2f 53 55 50 3e |note.png|"></SUP>|
|000004b0| 3c 2f 41 3e 0a 3c 50 3e | 0a 54 68 69 73 20 69 73 |</A>.<P>|.This is|
|000004c0| 20 6e 6f 74 20 61 20 67 | 65 6e 65 72 61 6c 20 60 | not a g|eneral `|
|000004d0| 60 70 65 72 73 69 73 74 | 65 6e 63 79 27 27 20 6d |`persist|ency'' m|
|000004e0| 6f 64 75 6c 65 2e 20 20 | 46 6f 72 20 67 65 6e 65 |odule. |For gene|
|000004f0| 72 61 6c 20 70 65 72 73 | 69 73 74 65 6e 63 79 0a |ral pers|istency.|
|00000500| 61 6e 64 20 74 72 61 6e | 73 66 65 72 20 6f 66 20 |and tran|sfer of |
|00000510| 50 79 74 68 6f 6e 20 6f | 62 6a 65 63 74 73 20 74 |Python o|bjects t|
|00000520| 68 72 6f 75 67 68 20 52 | 50 43 20 63 61 6c 6c 73 |hrough R|PC calls|
|00000530| 2c 20 73 65 65 20 74 68 | 65 20 6d 6f 64 75 6c 65 |, see th|e module|
|00000540| 73 0a 70 69 63 6b 6c 65 | 20 61 6e 64 20 73 68 65 |s.pickle| and she|
|00000550| 6c 76 65 2e 20 20 54 68 | 65 20 6d 61 72 73 68 61 |lve. Th|e marsha|
|00000560| 6c 20 6d 6f 64 75 6c 65 | 20 65 78 69 73 74 73 0a |l module| exists.|
|00000570| 6d 61 69 6e 6c 79 20 74 | 6f 20 73 75 70 70 6f 72 |mainly t|o suppor|
|00000580| 74 20 72 65 61 64 69 6e | 67 20 61 6e 64 20 77 72 |t readin|g and wr|
|00000590| 69 74 69 6e 67 20 74 68 | 65 20 60 60 70 73 65 75 |iting th|e ``pseu|
|000005a0| 64 6f 2d 63 6f 6d 70 69 | 6c 65 64 27 27 20 63 6f |do-compi|led'' co|
|000005b0| 64 65 20 66 6f 72 0a 50 | 79 74 68 6f 6e 20 6d 6f |de for.P|ython mo|
|000005c0| 64 75 6c 65 73 20 6f 66 | 20 2e 70 79 63 20 66 69 |dules of| .pyc fi|
|000005d0| 6c 65 73 2e 0a 70 69 63 | 6b 6c 65 0a 73 68 65 6c |les..pic|kle.shel|
|000005e0| 76 65 0a 63 6f 64 65 0a | 0a 3c 50 3e 0a 4e 6f 74 |ve.code.|.<P>.Not|
|000005f0| 20 61 6c 6c 20 50 79 74 | 68 6f 6e 20 6f 62 6a 65 | all Pyt|hon obje|
|00000600| 63 74 20 74 79 70 65 73 | 20 61 72 65 20 73 75 70 |ct types| are sup|
|00000610| 70 6f 72 74 65 64 3b 20 | 69 6e 20 67 65 6e 65 72 |ported; |in gener|
|00000620| 61 6c 2c 20 6f 6e 6c 79 | 20 6f 62 6a 65 63 74 73 |al, only| objects|
|00000630| 0a 77 68 6f 73 65 20 76 | 61 6c 75 65 20 69 73 20 |.whose v|alue is |
|00000640| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 66 72 6f 6d |independ|ent from|
|00000650| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 69 6e | a parti|cular in|
|00000660| 76 6f 63 61 74 69 6f 6e | 20 6f 66 20 50 79 74 68 |vocation| of Pyth|
|00000670| 6f 6e 20 63 61 6e 0a 62 | 65 20 77 72 69 74 74 65 |on can.b|e writte|
|00000680| 6e 20 61 6e 64 20 72 65 | 61 64 20 62 79 20 74 68 |n and re|ad by th|
|00000690| 69 73 20 6d 6f 64 75 6c | 65 2e 20 20 54 68 65 20 |is modul|e. The |
|000006a0| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 79 70 65 73 20 |followin|g types |
|000006b0| 61 72 65 20 73 75 70 70 | 6f 72 74 65 64 3a 0a 4e |are supp|orted:.N|
|000006c0| 6f 6e 65 2c 20 69 6e 74 | 65 67 65 72 73 2c 20 6c |one, int|egers, l|
|000006d0| 6f 6e 67 20 69 6e 74 65 | 67 65 72 73 2c 20 66 6c |ong inte|gers, fl|
|000006e0| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 6e 75 6d |oating p|oint num|
|000006f0| 62 65 72 73 2c 0a 73 74 | 72 69 6e 67 73 2c 20 74 |bers,.st|rings, t|
|00000700| 75 70 6c 65 73 2c 20 6c | 69 73 74 73 2c 20 64 69 |uples, l|ists, di|
|00000710| 63 74 69 6f 6e 61 72 69 | 65 73 2c 20 61 6e 64 20 |ctionari|es, and |
|00000720| 63 6f 64 65 20 6f 62 6a | 65 63 74 73 2c 20 77 68 |code obj|ects, wh|
|00000730| 65 72 65 20 69 74 0a 73 | 68 6f 75 6c 64 20 62 65 |ere it.s|hould be|
|00000740| 20 75 6e 64 65 72 73 74 | 6f 6f 64 20 74 68 61 74 | underst|ood that|
|00000750| 20 74 75 70 6c 65 73 2c | 20 6c 69 73 74 73 20 61 | tuples,| lists a|
|00000760| 6e 64 20 64 69 63 74 69 | 6f 6e 61 72 69 65 73 20 |nd dicti|onaries |
|00000770| 61 72 65 20 6f 6e 6c 79 | 0a 73 75 70 70 6f 72 74 |are only|.support|
|00000780| 65 64 20 61 73 20 6c 6f | 6e 67 20 61 73 20 74 68 |ed as lo|ng as th|
|00000790| 65 20 76 61 6c 75 65 73 | 20 63 6f 6e 74 61 69 6e |e values| contain|
|000007a0| 65 64 20 74 68 65 72 65 | 69 6e 20 61 72 65 20 74 |ed there|in are t|
|000007b0| 68 65 6d 73 65 6c 76 65 | 73 0a 73 75 70 70 6f 72 |hemselve|s.suppor|
|000007c0| 74 65 64 3b 20 61 6e 64 | 20 72 65 63 75 72 73 69 |ted; and| recursi|
|000007d0| 76 65 20 6c 69 73 74 73 | 20 61 6e 64 20 64 69 63 |ve lists| and dic|
|000007e0| 74 69 6f 6e 61 72 69 65 | 73 20 73 68 6f 75 6c 64 |tionarie|s should|
|000007f0| 20 6e 6f 74 20 62 65 20 | 77 72 69 74 74 65 6e 0a | not be |written.|
|00000800| 28 74 68 65 79 20 77 69 | 6c 6c 20 63 61 75 73 65 |(they wi|ll cause|
|00000810| 20 69 6e 66 69 6e 69 74 | 65 20 6c 6f 6f 70 73 29 | infinit|e loops)|
|00000820| 2e 0a 0a 3c 50 3e 0a 3c | 42 3e 43 61 76 65 61 74 |...<P>.<|B>Caveat|
|00000830| 3a 3c 2f 42 3e 20 4f 6e | 20 6d 61 63 68 69 6e 65 |:</B> On| machine|
|00000840| 73 20 77 68 65 72 65 20 | 43 27 73 20 6c 6f 6e 67 |s where |C's long|
|00000850| 20 69 6e 74 20 74 79 70 | 65 20 68 61 73 20 6d 6f | int typ|e has mo|
|00000860| 72 65 20 74 68 61 6e 0a | 33 32 20 62 69 74 73 20 |re than.|32 bits |
|00000870| 28 73 75 63 68 20 61 73 | 20 74 68 65 20 44 45 43 |(such as| the DEC|
|00000880| 20 41 6c 70 68 61 29 2c | 20 69 74 0a 69 73 20 70 | Alpha),| it.is p|
|00000890| 6f 73 73 69 62 6c 65 20 | 74 6f 20 63 72 65 61 74 |ossible |to creat|
|000008a0| 65 20 70 6c 61 69 6e 20 | 50 79 74 68 6f 6e 20 69 |e plain |Python i|
|000008b0| 6e 74 65 67 65 72 73 20 | 74 68 61 74 20 61 72 65 |ntegers |that are|
|000008c0| 20 6c 6f 6e 67 65 72 20 | 74 68 61 6e 20 33 32 0a | longer |than 32.|
|000008d0| 62 69 74 73 2e 20 20 53 | 69 6e 63 65 20 74 68 65 |bits. S|ince the|
|000008e0| 20 63 75 72 72 65 6e 74 | 20 6d 61 72 73 68 61 6c | current| marshal|
|000008f0| 20 6d 6f 64 75 6c 65 20 | 75 73 65 73 20 33 32 20 | module |uses 32 |
|00000900| 62 69 74 73 20 74 6f 0a | 74 72 61 6e 73 66 65 72 |bits to.|transfer|
|00000910| 20 70 6c 61 69 6e 20 50 | 79 74 68 6f 6e 20 69 6e | plain P|ython in|
|00000920| 74 65 67 65 72 73 2c 20 | 73 75 63 68 20 76 61 6c |tegers, |such val|
|00000930| 75 65 73 20 61 72 65 20 | 73 69 6c 65 6e 74 6c 79 |ues are |silently|
|00000940| 20 74 72 75 6e 63 61 74 | 65 64 2e 0a 54 68 69 73 | truncat|ed..This|
|00000950| 20 70 61 72 74 69 63 75 | 6c 61 72 6c 79 20 61 66 | particu|larly af|
|00000960| 66 65 63 74 73 20 74 68 | 65 20 75 73 65 20 6f 66 |fects th|e use of|
|00000970| 20 76 65 72 79 20 6c 6f | 6e 67 20 69 6e 74 65 67 | very lo|ng integ|
|00000980| 65 72 20 6c 69 74 65 72 | 61 6c 73 20 69 6e 0a 50 |er liter|als in.P|
|00000990| 79 74 68 6f 6e 20 6d 6f | 64 75 6c 65 73 20 26 6d |ython mo|dules &m|
|000009a0| 64 61 73 68 3b 20 74 68 | 65 73 65 20 77 69 6c 6c |dash; th|ese will|
|000009b0| 20 62 65 20 61 63 63 65 | 70 74 65 64 20 62 79 20 | be acce|pted by |
|000009c0| 74 68 65 20 70 61 72 73 | 65 72 20 6f 6e 20 73 75 |the pars|er on su|
|000009d0| 63 68 0a 6d 61 63 68 69 | 6e 65 73 2c 20 62 75 74 |ch.machi|nes, but|
|000009e0| 20 77 69 6c 6c 20 62 65 | 20 73 69 6c 65 6e 74 6c | will be| silentl|
|000009f0| 79 20 62 65 20 74 72 75 | 6e 63 61 74 65 64 20 77 |y be tru|ncated w|
|00000a00| 68 65 6e 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 69 |hen the |module i|
|00000a10| 73 20 72 65 61 64 0a 66 | 72 6f 6d 20 74 68 65 20 |s read.f|rom the |
|00000a20| 2e 70 79 63 20 69 6e 73 | 74 65 61 64 2e 3c 41 20 |.pyc ins|tead.<A |
|00000a30| 4e 41 4d 45 3d 22 74 65 | 78 32 68 74 6d 6c 32 22 |NAME="te|x2html2"|
|00000a40| 20 48 52 45 46 3d 22 66 | 6f 6f 74 6e 6f 64 65 5f | HREF="f|ootnode_|
|00000a50| 6d 6e 2e 68 74 6d 6c 23 | 66 6f 6f 74 35 32 22 20 |mn.html#|foot52" |
|00000a60| 54 41 52 47 45 54 3d 22 | 66 6f 6f 74 65 72 22 3e |TARGET="|footer">|
|00000a70| 3c 53 55 50 3e 3c 49 4d | 47 20 20 41 4c 54 3d 22 |<SUP><IM|G ALT="|
|00000a80| 5b 2a 5d 22 20 53 52 43 | 3d 22 66 6f 6f 74 6e 6f |[*]" SRC|="footno|
|00000a90| 74 65 2e 70 6e 67 22 3e | 3c 2f 53 55 50 3e 3c 2f |te.png">|</SUP></|
|00000aa0| 41 3e 0a 3c 50 3e 0a 54 | 68 65 72 65 20 61 72 65 |A>.<P>.T|here are|
|00000ab0| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 68 61 74 20 | functio|ns that |
|00000ac0| 72 65 61 64 2f 77 72 69 | 74 65 20 66 69 6c 65 73 |read/wri|te files|
|00000ad0| 20 61 73 20 77 65 6c 6c | 20 61 73 20 66 75 6e 63 | as well| as func|
|00000ae0| 74 69 6f 6e 73 0a 6f 70 | 65 72 61 74 69 6e 67 20 |tions.op|erating |
|00000af0| 6f 6e 20 73 74 72 69 6e | 67 73 2e 0a 0a 3c 50 3e |on strin|gs...<P>|
|00000b00| 0a 54 68 65 20 6d 6f 64 | 75 6c 65 20 64 65 66 69 |.The mod|ule defi|
|00000b10| 6e 65 73 20 74 68 65 73 | 65 20 66 75 6e 63 74 69 |nes thes|e functi|
|00000b20| 6f 6e 73 3a 0a 0a 3c 50 | 3e 0a 0a 3c 50 3e 0a 3c |ons:..<P|>..<P>.<|
|00000b30| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|00000b40| 3d 22 68 65 69 67 68 74 | 3a 20 31 39 36 2e 32 35 |="height|: 196.25|
|00000b50| 65 78 3b 20 76 65 72 74 | 69 63 61 6c 2d 61 6c 69 |ex; vert|ical-ali|
|00000b60| 67 6e 3a 20 2d 30 2e 37 | 30 65 78 3b 20 22 20 53 |gn: -0.7|0ex; " S|
|00000b70| 52 43 3d 22 69 6d 67 31 | 2e 70 6e 67 22 0a 20 41 |RC="img1|.png". A|
|00000b80| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|00000b90| 65 73 63 7d 7b 64 75 6d | 70 7d 7b 76 61 6c 75 65 |esc}{dum|p}{value|
|00000ba0| 5c 2c 20 66 69 6c 65 7d | 0a 57 72 69 74 65 20 74 |\, file}|.Write t|
|00000bb0| 68 65 20 76 61 6c 75 65 | 20 6f 6e 20 74 68 65 20 |he value| on the |
|00000bc0| 6f 70 65 6e 20 66 69 6c | 65 2e 20 54 68 65 20 76 |open fil|e. The v|
|00000bd0| 61 6c 75 2e 2e 2e 0a 2e | 2e 2e 69 6c 65 2e 20 54 |alu.....|..ile. T|
|00000be0| 68 65 20 6f 62 6a 65 63 | 74 20 77 69 6c 6c 20 6e |he objec|t will n|
|00000bf0| 6f 74 20 62 65 20 70 72 | 6f 70 65 72 6c 79 20 72 |ot be pr|operly r|
|00000c00| 65 61 64 20 62 61 63 6b | 20 62 79 0a 5c 63 6f 64 |ead back| by.\cod|
|00000c10| 65 7b 6c 6f 61 64 28 29 | 7d 2e 0a 5c 65 6e 64 7b |e{load()|}..\end{|
|00000c20| 66 75 6e 63 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |funcdesc|}">.<BR>|
|00000c30| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|00000c40| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|00000c50| 20 32 2e 31 37 65 78 3b | 20 76 65 72 74 69 63 61 | 2.17ex;| vertica|
|00000c60| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 34 31 65 |l-align:| 176.41e|
|00000c70| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 32 2e 70 |x; " SRC|="img2.p|
|00000c80| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00000c90| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 6c 6f 61 64 7d |{funcdes|c}{load}|
|00000ca0| 7b 66 69 6c 65 7d 0a 52 | 65 61 64 20 6f 6e 65 20 |{file}.R|ead one |
|00000cb0| 76 61 6c 75 65 20 66 72 | 6f 6d 20 74 68 65 20 6f |value fr|om the o|
|00000cc0| 70 65 6e 20 66 69 6c 65 | 20 61 6e 64 20 72 65 74 |pen file| and ret|
|00000cd0| 75 72 6e 20 69 74 2e 20 | 49 2e 2e 2e 0a 2e 2e 2e |urn it. |I.......|
|00000ce0| 6c 6f 61 64 28 29 7d 20 | 77 69 6c 6c 20 73 75 62 |load()} |will sub|
|00000cf0| 73 74 69 74 75 74 65 20 | 5c 63 6f 64 65 7b 4e 6f |stitute |\code{No|
|00000d00| 6e 65 7d 20 66 6f 72 20 | 74 68 65 0a 75 6e 6d 61 |ne} for |the.unma|
|00000d10| 72 73 68 61 6c 6c 61 62 | 6c 65 20 74 79 70 65 2e |rshallab|le type.|
|00000d20| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 22 |.\end{fu|ncdesc}"|
|00000d30| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 3c 42 52 3e |>.<BR>..|<P>.<BR>|
|00000d40| 0a 3c 49 4d 47 0a 20 20 | 53 54 59 4c 45 3d 22 68 |.<IMG. |STYLE="h|
|00000d50| 65 69 67 68 74 3a 20 32 | 2e 31 37 65 78 3b 20 76 |eight: 2|.17ex; v|
|00000d60| 65 72 74 69 63 61 6c 2d | 61 6c 69 67 6e 3a 20 31 |ertical-|align: 1|
|00000d70| 37 36 2e 34 31 65 78 3b | 20 22 20 53 52 43 3d 22 |76.41ex;| " SRC="|
|00000d80| 69 6d 67 33 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |img3.png|". ALT="|
|00000d90| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00000da0| 7b 64 75 6d 70 73 7d 7b | 76 61 6c 75 65 7d 0a 52 |{dumps}{|value}.R|
|00000db0| 65 74 75 72 6e 20 74 68 | 65 20 73 74 72 69 6e 67 |eturn th|e string|
|00000dc0| 20 74 68 61 74 20 77 6f | 75 6c 64 20 62 65 20 77 | that wo|uld be w|
|00000dd0| 72 69 74 74 65 6e 20 74 | 6f 20 61 20 66 69 6c 2e |ritten t|o a fil.|
|00000de0| 2e 2e 0a 2e 2e 2e 20 76 | 61 6c 75 65 20 68 61 73 |...... v|alue has|
|00000df0| 20 28 6f 72 20 63 6f 6e | 74 61 69 6e 73 20 61 6e | (or con|tains an|
|00000e00| 0a 6f 62 6a 65 63 74 20 | 74 68 61 74 20 68 61 73 |.object |that has|
|00000e10| 29 20 61 6e 20 75 6e 73 | 75 70 70 6f 72 74 65 64 |) an uns|upported|
|00000e20| 20 74 79 70 65 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 | type..\|end{func|
|00000e30| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00000e40| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|00000e50| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 32 2e 33 |YLE="hei|ght: 2.3|
|00000e60| 38 65 78 3b 20 76 65 72 | 74 69 63 61 6c 2d 61 6c |8ex; ver|tical-al|
|00000e70| 69 67 6e 3a 20 31 37 36 | 2e 34 30 65 78 3b 20 22 |ign: 176|.40ex; "|
|00000e80| 20 53 52 43 3d 22 69 6d | 67 34 2e 70 6e 67 22 0a | SRC="im|g4.png".|
|00000e90| 20 41 4c 54 3d 22 5c 62 | 65 67 69 6e 7b 66 75 6e | ALT="\b|egin{fun|
|00000ea0| 63 64 65 73 63 7d 7b 6c | 6f 61 64 73 7d 7b 73 74 |cdesc}{l|oads}{st|
|00000eb0| 72 69 6e 67 7d 0a 43 6f | 6e 76 65 72 74 20 74 68 |ring}.Co|nvert th|
|00000ec0| 65 20 73 74 72 69 6e 67 | 20 74 6f 20 61 20 76 61 |e string| to a va|
|00000ed0| 6c 75 65 2e 20 49 66 20 | 6e 6f 20 76 61 6c 69 64 |lue. If |no valid|
|00000ee0| 20 76 61 6c 75 2e 2e 2e | 0a 2e 2e 2e 6f 72 20 5c | valu...|....or \|
|00000ef0| 63 6f 64 65 7b 54 79 70 | 65 45 72 72 6f 72 7d 2e |code{Typ|eError}.|
|00000f00| 20 45 78 74 72 61 0a 63 | 68 61 72 61 63 74 65 72 | Extra.c|haracter|
|00000f10| 73 20 69 6e 20 74 68 65 | 20 73 74 72 69 6e 67 20 |s in the| string |
|00000f20| 61 72 65 20 69 67 6e 6f | 72 65 64 2e 0a 5c 65 6e |are igno|red..\en|
|00000f30| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|00000f40| 52 3e 0a 3c 48 52 3e 0a | 0a 3c 2f 42 4f 44 59 3e |R>.<HR>.|.</BODY>|
|00000f50| 0a 3c 2f 48 54 4d 4c 3e | 0a |.</HTML>|. |
+--------+-------------------------+-------------------------+--------+--------+