home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
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 72 65 | 78 65 63 3c 2f 54 49 54 |odule re|xec</TIT|
|000000c0| 4c 45 3e 0a 0a 3c 4d 45 | 54 41 20 48 54 54 50 2d |LE>..<ME|TA HTTP-|
|000000d0| 45 51 55 49 56 3d 22 43 | 6f 6e 74 65 6e 74 2d 54 |EQUIV="C|ontent-T|
|000000e0| 79 70 65 22 20 43 4f 4e | 54 45 4e 54 3d 22 74 65 |ype" CON|TENT="te|
|000000f0| 78 74 2f 68 74 6d 6c 3b | 20 63 68 61 72 73 65 74 |xt/html;| charset|
|00000100| 3d 75 74 66 2d 38 22 3e | 0a 3c 4d 45 54 41 20 4e |=utf-8">|.<META N|
|00000110| 41 4d 45 3d 22 76 69 65 | 77 70 6f 72 74 22 20 43 |AME="vie|wport" C|
|00000120| 4f 4e 54 45 4e 54 3d 22 | 77 69 64 74 68 3d 64 65 |ONTENT="|width=de|
|00000130| 76 69 63 65 2d 77 69 64 | 74 68 2c 20 69 6e 69 74 |vice-wid|th, init|
|00000140| 69 61 6c 2d 73 63 61 6c | 65 3d 31 2e 30 22 3e 0a |ial-scal|e=1.0">.|
|00000150| 3c 4d 45 54 41 20 4e 41 | 4d 45 3d 22 47 65 6e 65 |<META NA|ME="Gene|
|00000160| 72 61 74 6f 72 22 20 43 | 4f 4e 54 45 4e 54 3d 22 |rator" C|ONTENT="|
|00000170| 4c 61 54 65 58 32 48 54 | 4d 4c 20 76 32 30 32 32 |LaTeX2HT|ML v2022|
|00000180| 22 3e 0a 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 53 |">..<LIN|K REL="S|
|00000190| 54 59 4c 45 53 48 45 45 | 54 22 20 48 52 45 46 3d |TYLESHEE|T" HREF=|
|000001a0| 22 74 65 78 2e 63 73 73 | 22 3e 0a 0a 3c 4c 49 4e |"tex.css|">..<LIN|
|000001b0| 4b 20 52 45 4c 3d 22 70 | 72 65 76 69 6f 75 73 22 |K REL="p|revious"|
|000001c0| 20 48 52 45 46 3d 22 74 | 65 78 5f 6d 6e 2e 68 74 | HREF="t|ex_mn.ht|
|000001d0| 6d 6c 22 3e 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |ml">.<LI|NK REL="|
|000001e0| 75 70 22 20 48 52 45 46 | 3d 22 74 65 78 5f 6d 6e |up" HREF|="tex_mn|
|000001f0| 2e 68 74 6d 6c 22 3e 0a | 3c 4c 49 4e 4b 20 52 45 |.html">.|<LINK RE|
|00000200| 4c 3d 22 6e 65 78 74 22 | 20 48 52 45 46 3d 22 6e |L="next"| HREF="n|
|00000210| 6f 64 65 32 5f 6d 6e 2e | 68 74 6d 6c 22 3e 0a 3c |ode2_mn.|html">.<|
|00000220| 2f 48 45 41 44 3e 0a 20 | 0a 3c 42 4f 44 59 20 62 |/HEAD>. |.<BODY b|
|00000230| 67 63 6f 6c 6f 72 3d 22 | 23 66 66 66 66 66 66 22 |gcolor="|#ffffff"|
|00000240| 20 74 65 78 74 3d 22 23 | 30 30 30 30 30 30 22 20 | text="#|000000" |
|00000250| 6c 69 6e 6b 3d 22 23 39 | 39 34 34 45 45 22 20 76 |link="#9|944EE" v|
|00000260| 6c 69 6e 6b 3d 22 23 30 | 30 30 30 66 66 22 20 61 |link="#0|000ff" a|
|00000270| 6c 69 6e 6b 3d 22 23 30 | 30 66 66 30 30 22 3e 0a |link="#0|0ff00">.|
|00000280| 0a 3c 48 31 3e 3c 41 20 | 49 44 3d 22 53 45 43 54 |.<H1><A |ID="SECT|
|00000290| 49 4f 4e 30 30 30 31 30 | 30 30 30 30 30 30 30 30 |ION00010|00000000|
|000002a0| 30 30 30 30 30 30 30 22 | 3e 0a 53 74 61 6e 64 61 |0000000"|>.Standa|
|000002b0| 72 64 20 4d 6f 64 75 6c | 65 20 72 65 78 65 63 3c |rd Modul|e rexec<|
|000002c0| 2f 41 3e 0a 3c 2f 48 31 | 3e 0a 72 65 78 65 63 0a |/A>.</H1|>.rexec.|
|000002d0| 0a 3c 50 3e 0a 54 68 69 | 73 20 6d 6f 64 75 6c 65 |.<P>.Thi|s module|
|000002e0| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 52 45 | contain|s the RE|
|000002f0| 78 65 63 20 63 6c 61 73 | 73 2c 20 77 68 69 63 68 |xec clas|s, which|
|00000300| 20 73 75 70 70 6f 72 74 | 73 0a 72 5f 65 78 65 63 | support|s.r_exec|
|00000310| 28 29 2c 20 72 5f 65 76 | 61 6c 28 29 2c 20 72 5f |(), r_ev|al(), r_|
|00000320| 65 78 65 63 66 69 6c 65 | 28 29 2c 20 61 6e 64 0a |execfile|(), and.|
|00000330| 72 5f 69 6d 70 6f 72 74 | 28 29 20 6d 65 74 68 6f |r_import|() metho|
|00000340| 64 73 2c 20 77 68 69 63 | 68 20 61 72 65 20 72 65 |ds, whic|h are re|
|00000350| 73 74 72 69 63 74 65 64 | 20 76 65 72 73 69 6f 6e |stricted| version|
|00000360| 73 20 6f 66 20 74 68 65 | 20 73 74 61 6e 64 61 72 |s of the| standar|
|00000370| 64 0a 50 79 74 68 6f 6e | 20 66 75 6e 63 74 69 6f |d.Python| functio|
|00000380| 6e 73 20 65 78 65 63 28 | 29 2c 20 65 76 61 6c 28 |ns exec(|), eval(|
|00000390| 29 2c 20 65 78 65 63 66 | 69 6c 65 28 29 2c 20 61 |), execf|ile(), a|
|000003a0| 6e 64 0a 74 68 65 20 69 | 6d 70 6f 72 74 20 73 74 |nd.the i|mport st|
|000003b0| 61 74 65 6d 65 6e 74 2e | 0a 43 6f 64 65 20 65 78 |atement.|.Code ex|
|000003c0| 65 63 75 74 65 64 20 69 | 6e 20 74 68 69 73 20 72 |ecuted i|n this r|
|000003d0| 65 73 74 72 69 63 74 65 | 64 20 65 6e 76 69 72 6f |estricte|d enviro|
|000003e0| 6e 6d 65 6e 74 20 77 69 | 6c 6c 0a 6f 6e 6c 79 20 |nment wi|ll.only |
|000003f0| 68 61 76 65 20 61 63 63 | 65 73 73 20 74 6f 20 6d |have acc|ess to m|
|00000400| 6f 64 75 6c 65 73 20 61 | 6e 64 20 66 75 6e 63 74 |odules a|nd funct|
|00000410| 69 6f 6e 73 20 74 68 61 | 74 20 61 72 65 20 64 65 |ions tha|t are de|
|00000420| 65 6d 65 64 20 73 61 66 | 65 3b 20 79 6f 75 0a 63 |emed saf|e; you.c|
|00000430| 61 6e 20 73 75 62 63 6c | 61 73 73 20 52 45 78 65 |an subcl|ass RExe|
|00000440| 63 20 74 6f 20 61 64 64 | 20 6f 72 20 72 65 6d 6f |c to add| or remo|
|00000450| 76 65 20 63 61 70 61 62 | 69 6c 69 74 69 65 73 20 |ve capab|ilities |
|00000460| 61 73 20 64 65 73 69 72 | 65 64 2e 0a 0a 3c 50 3e |as desir|ed...<P>|
|00000470| 0a 3c 49 3e 4e 6f 74 65 | 3a 3c 2f 49 3e 20 54 68 |.<I>Note|:</I> Th|
|00000480| 65 20 52 45 78 65 63 20 | 63 6c 61 73 73 20 63 61 |e RExec |class ca|
|00000490| 6e 20 70 72 65 76 65 6e | 74 20 63 6f 64 65 20 66 |n preven|t code f|
|000004a0| 72 6f 6d 20 70 65 72 66 | 6f 72 6d 69 6e 67 0a 75 |rom perf|orming.u|
|000004b0| 6e 73 61 66 65 20 6f 70 | 65 72 61 74 69 6f 6e 73 |nsafe op|erations|
|000004c0| 20 6c 69 6b 65 20 72 65 | 61 64 69 6e 67 20 6f 72 | like re|ading or|
|000004d0| 20 77 72 69 74 69 6e 67 | 20 64 69 73 6b 20 66 69 | writing| disk fi|
|000004e0| 6c 65 73 2c 20 6f 72 20 | 75 73 69 6e 67 20 54 43 |les, or |using TC|
|000004f0| 50 2f 49 50 0a 73 6f 63 | 6b 65 74 73 2e 20 20 48 |P/IP.soc|kets. H|
|00000500| 6f 77 65 76 65 72 2c 20 | 69 74 20 64 6f 65 73 20 |owever, |it does |
|00000510| 6e 6f 74 20 70 72 6f 74 | 65 63 74 20 61 67 61 69 |not prot|ect agai|
|00000520| 6e 73 74 20 63 6f 64 65 | 20 75 73 69 6e 67 20 65 |nst code| using e|
|00000530| 78 74 72 65 6d 65 6c 79 | 0a 6c 61 72 67 65 20 61 |xtremely|.large a|
|00000540| 6d 6f 75 6e 74 73 20 6f | 66 20 6d 65 6d 6f 72 79 |mounts o|f memory|
|00000550| 20 6f 72 20 43 50 55 20 | 74 69 6d 65 2e 20 20 0a | or CPU |time. .|
|00000560| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00000570| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000580| 31 39 36 2e 32 35 65 78 | 3b 20 76 65 72 74 69 63 |196.25ex|; vertic|
|00000590| 61 6c 2d 61 6c 69 67 6e | 3a 20 2d 30 2e 37 30 65 |al-align|: -0.70e|
|000005a0| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 31 2e 70 |x; " SRC|="img1.p|
|000005b0| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|000005c0| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 52 45 78 65 63 |{funcdes|c}{RExec|
|000005d0| 7d 7b 5c 6f 70 74 69 6f | 6e 61 6c 7b 68 6f 6f 6b |}{\optio|nal{hook|
|000005e0| 73 5c 6f 70 74 69 6f 6e | 61 6c 7b 5c 2c 20 76 65 |s\option|al{\, ve|
|000005f0| 72 62 6f 73 65 7d 7d 7d | 0a 52 65 74 75 72 6e 73 |rbose}}}|.Returns|
|00000600| 20 61 6e 20 69 6e 73 74 | 61 6e 2e 2e 2e 0a 2e 2e | an inst|an......|
|00000610| 2e 74 72 75 65 2c 20 61 | 64 64 69 74 69 6f 6e 61 |.true, a|dditiona|
|00000620| 6c 20 64 65 62 75 67 67 | 69 6e 67 20 6f 75 74 70 |l debugg|ing outp|
|00000630| 75 74 20 6d 61 79 20 62 | 65 20 73 65 6e 74 20 74 |ut may b|e sent t|
|00000640| 6f 0a 73 74 61 6e 64 61 | 72 64 20 6f 75 74 70 75 |o.standa|rd outpu|
|00000650| 74 2e 0a 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |t..\end{|funcdesc|
|00000660| 7d 22 3e 0a 3c 42 52 3e | 0a 0a 3c 50 3e 0a 54 68 |}">.<BR>|..<P>.Th|
|00000670| 65 20 52 45 78 65 63 20 | 63 6c 61 73 73 20 68 61 |e RExec |class ha|
|00000680| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing |
|00000690| 63 6c 61 73 73 20 61 74 | 74 72 69 62 75 74 65 73 |class at|tributes|
|000006a0| 2c 20 77 68 69 63 68 20 | 61 72 65 20 75 73 65 64 |, which |are used|
|000006b0| 20 62 79 20 74 68 65 0a | 5f 5f 69 6e 69 74 5f 5f | by the.|__init__|
|000006c0| 20 6d 65 74 68 6f 64 2e | 20 20 43 68 61 6e 67 69 | method.| Changi|
|000006d0| 6e 67 20 74 68 65 6d 20 | 6f 6e 20 61 6e 20 65 78 |ng them |on an ex|
|000006e0| 69 73 74 69 6e 67 20 69 | 6e 73 74 61 6e 63 65 20 |isting i|nstance |
|000006f0| 77 6f 6e 27 74 0a 68 61 | 76 65 20 61 6e 79 20 65 |won't.ha|ve any e|
|00000700| 66 66 65 63 74 3b 20 69 | 6e 73 74 65 61 64 2c 20 |ffect; i|nstead, |
|00000710| 63 72 65 61 74 65 20 61 | 20 73 75 62 63 6c 61 73 |create a| subclas|
|00000720| 73 20 6f 66 20 52 45 78 | 65 63 20 61 6e 64 20 61 |s of REx|ec and a|
|00000730| 73 73 69 67 6e 0a 74 68 | 65 6d 20 6e 65 77 20 76 |ssign.th|em new v|
|00000740| 61 6c 75 65 73 20 69 6e | 20 74 68 65 20 63 6c 61 |alues in| the cla|
|00000750| 73 73 20 64 65 66 69 6e | 69 74 69 6f 6e 2e 20 20 |ss defin|ition. |
|00000760| 49 6e 73 74 61 6e 63 65 | 73 20 6f 66 20 74 68 65 |Instance|s of the|
|00000770| 20 6e 65 77 20 63 6c 61 | 73 73 0a 77 69 6c 6c 20 | new cla|ss.will |
|00000780| 74 68 65 6e 20 75 73 65 | 20 74 68 6f 73 65 20 6e |then use| those n|
|00000790| 65 77 20 76 61 6c 75 65 | 73 2e 20 20 41 6c 6c 20 |ew value|s. All |
|000007a0| 74 68 65 73 65 20 61 74 | 74 72 69 62 75 74 65 73 |these at|tributes|
|000007b0| 20 61 72 65 20 74 75 70 | 6c 65 73 20 6f 66 0a 73 | are tup|les of.s|
|000007c0| 74 72 69 6e 67 73 2e 0a | 0a 3c 50 3e 0a 0a 3c 42 |trings..|.<P>..<B|
|000007d0| 52 3e 0a 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |R>.<IMG.| STYLE=|
|000007e0| 22 68 65 69 67 68 74 3a | 20 31 2e 37 35 65 78 3b |"height:| 1.75ex;|
|000007f0| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|00000800| 20 31 37 35 2e 36 35 65 | 78 3b 20 22 20 53 52 43 | 175.65e|x; " SRC|
|00000810| 3d 22 69 6d 67 32 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img2.p|ng". ALT|
|00000820| 3d 22 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |="\begin|{datades|
|00000830| 63 7d 7b 6e 6f 6b 5f 62 | 75 69 6c 74 69 6e 5f 6e |c}{nok_b|uiltin_n|
|00000840| 61 6d 65 73 7d 0a 43 6f | 6e 74 61 69 6e 73 20 74 |ames}.Co|ntains t|
|00000850| 68 65 20 6e 61 6d 65 73 | 20 6f 66 20 62 75 69 6c |he names| of buil|
|00000860| 74 2d 69 6e 20 66 75 6e | 63 74 69 6f 6e 73 20 77 |t-in fun|ctions w|
|00000870| 68 69 2e 2e 2e 0a 2e 2e | 2e 6f 6e 73 20 61 72 65 |hi......|.ons are|
|00000880| 20 61 64 64 65 64 20 74 | 6f 20 50 79 74 68 6f 6e | added t|o Python|
|00000890| 2c 20 74 68 65 79 20 77 | 69 6c 6c 20 61 6c 73 6f |, they w|ill also|
|000008a0| 20 62 65 0a 61 64 64 65 | 64 20 74 6f 20 74 68 69 | be.adde|d to thi|
|000008b0| 73 20 6d 6f 64 75 6c 65 | 2e 29 0a 5c 65 6e 64 7b |s module|.).\end{|
|000008c0| 64 61 74 61 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |datadesc|}">.<BR>|
|000008d0| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|000008e0| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|000008f0| 20 32 2e 31 37 65 78 3b | 20 76 65 72 74 69 63 61 | 2.17ex;| vertica|
|00000900| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 34 31 65 |l-align:| 176.41e|
|00000910| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 33 2e 70 |x; " SRC|="img3.p|
|00000920| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00000930| 7b 64 61 74 61 64 65 73 | 63 7d 7b 6f 6b 5f 62 75 |{datades|c}{ok_bu|
|00000940| 69 6c 74 69 6e 5f 6d 6f | 64 75 6c 65 73 7d 0a 43 |iltin_mo|dules}.C|
|00000950| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 6e 61 6d 65 |ontains |the name|
|00000960| 73 20 6f 66 20 62 75 69 | 6c 74 2d 69 6e 20 6d 6f |s of bui|lt-in mo|
|00000970| 64 75 6c 65 73 20 77 68 | 69 63 2e 2e 2e 0a 2e 2e |dules wh|ic......|
|00000980| 2e 70 70 6c 69 65 73 20 | 2d 2d 2d 20 75 73 65 20 |.pplies |--- use |
|00000990| 74 68 65 20 76 61 6c 75 | 65 20 66 72 6f 6d 20 74 |the valu|e from t|
|000009a0| 68 65 20 62 61 73 65 0a | 63 6c 61 73 73 20 61 73 |he base.|class as|
|000009b0| 20 61 20 73 74 61 72 74 | 69 6e 67 20 70 6f 69 6e | a start|ing poin|
|000009c0| 74 2e 0a 5c 65 6e 64 7b | 64 61 74 61 64 65 73 63 |t..\end{|datadesc|
|000009d0| 7d 22 3e 0a 3c 42 52 3e | 0a 0a 3c 50 3e 0a 3c 42 |}">.<BR>|..<P>.<B|
|000009e0| 52 3e 0a 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |R>.<IMG.| STYLE=|
|000009f0| 22 68 65 69 67 68 74 3a | 20 32 2e 33 38 65 78 3b |"height:| 2.38ex;|
|00000a00| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|00000a10| 20 31 37 36 2e 31 39 65 | 78 3b 20 22 20 53 52 43 | 176.19e|x; " SRC|
|00000a20| 3d 22 69 6d 67 34 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img4.p|ng". ALT|
|00000a30| 3d 22 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |="\begin|{datades|
|00000a40| 63 7d 7b 6f 6b 5f 70 61 | 74 68 7d 0a 43 6f 6e 74 |c}{ok_pa|th}.Cont|
|00000a50| 61 69 6e 73 20 74 68 65 | 20 64 69 72 65 63 74 6f |ains the| directo|
|00000a60| 72 69 65 73 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |ries whi|ch will |
|00000a70| 62 65 20 73 65 61 72 63 | 68 65 64 20 77 68 65 6e |be searc|hed when|
|00000a80| 20 61 2e 2e 2e 0a 2e 2e | 2e 73 2e 70 61 74 68 7d | a......|.s.path}|
|00000a90| 20 28 61 74 20 74 68 65 | 20 74 69 6d 65 0a 74 68 | (at the| time.th|
|00000aa0| 65 20 6d 6f 64 75 6c 65 | 20 69 73 20 6c 6f 61 64 |e module| is load|
|00000ab0| 65 64 29 20 66 6f 72 20 | 75 6e 72 65 73 74 72 69 |ed) for |unrestri|
|00000ac0| 63 74 65 64 20 63 6f 64 | 65 2e 0a 5c 65 6e 64 7b |cted cod|e..\end{|
|00000ad0| 64 61 74 61 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |datadesc|}">.<BR>|
|00000ae0| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|00000af0| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|00000b00| 20 32 2e 33 38 65 78 3b | 20 76 65 72 74 69 63 61 | 2.38ex;| vertica|
|00000b10| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 31 32 65 |l-align:| 176.12e|
|00000b20| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 35 2e 70 |x; " SRC|="img5.p|
|00000b30| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00000b40| 7b 64 61 74 61 64 65 73 | 63 7d 7b 6f 6b 5f 70 6f |{datades|c}{ok_po|
|00000b50| 73 69 78 5f 6e 61 6d 65 | 73 7d 0a 43 6f 6e 74 61 |six_name|s}.Conta|
|00000b60| 69 6e 73 20 74 68 65 20 | 6e 61 6d 65 73 20 6f 66 |ins the |names of|
|00000b70| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 73 20 69 | the fun|ctions i|
|00000b80| 6e 20 74 68 65 20 5c 63 | 6f 64 2e 2e 2e 0a 2e 2e |n the \c|od......|
|00000b90| 2e 7b 27 67 65 74 75 69 | 64 27 2c 7d 20 5c 63 6f |.{'getui|d',} \co|
|00000ba0| 64 65 7b 27 67 65 74 67 | 69 64 27 2c 7d 20 5c 63 |de{'getg|id',} \c|
|00000bb0| 6f 64 65 7b 27 67 65 74 | 65 75 69 64 27 2c 7d 0a |ode{'get|euid',}.|
|00000bc0| 5c 63 6f 64 65 7b 27 67 | 65 74 65 67 69 64 27 29 |\code{'g|etegid')|
|00000bd0| 7d 2e 0a 5c 65 6e 64 7b | 64 61 74 61 64 65 73 63 |}..\end{|datadesc|
|00000be0| 7d 22 3e 0a 3c 42 52 3e | 0a 0a 3c 50 3e 0a 3c 42 |}">.<BR>|..<P>.<B|
|00000bf0| 52 3e 0a 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |R>.<IMG.| STYLE=|
|00000c00| 22 68 65 69 67 68 74 3a | 20 32 2e 33 38 65 78 3b |"height:| 2.38ex;|
|00000c10| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|00000c20| 20 31 37 36 2e 32 30 65 | 78 3b 20 22 20 53 52 43 | 176.20e|x; " SRC|
|00000c30| 3d 22 69 6d 67 36 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img6.p|ng". ALT|
|00000c40| 3d 22 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |="\begin|{datades|
|00000c50| 63 7d 7b 6f 6b 5f 73 79 | 73 5f 6e 61 6d 65 73 7d |c}{ok_sy|s_names}|
|00000c60| 0a 43 6f 6e 74 61 69 6e | 73 20 74 68 65 20 6e 61 |.Contain|s the na|
|00000c70| 6d 65 73 20 6f 66 20 74 | 68 65 20 66 75 6e 63 74 |mes of t|he funct|
|00000c80| 69 6f 6e 73 20 61 6e 64 | 20 76 61 72 69 61 62 6c |ions and| variabl|
|00000c90| 65 73 2e 2e 2e 0a 2e 2e | 2e 65 7b 27 76 65 72 73 |es......|.e{'vers|
|00000ca0| 69 6f 6e 27 2c 7d 20 5c | 63 6f 64 65 7b 27 70 6c |ion',} \|code{'pl|
|00000cb0| 61 74 66 6f 72 6d 27 2c | 7d 0a 5c 63 6f 64 65 7b |atform',|}.\code{|
|00000cc0| 27 65 78 69 74 27 2c 7d | 20 5c 63 6f 64 65 7b 27 |'exit',}| \code{'|
|00000cd0| 6d 61 78 69 6e 74 27 29 | 7d 2e 0a 5c 65 6e 64 7b |maxint')|}..\end{|
|00000ce0| 64 61 74 61 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |datadesc|}">.<BR>|
|00000cf0| 0a 0a 3c 50 3e 0a 52 45 | 78 65 63 20 69 6e 73 74 |..<P>.RE|xec inst|
|00000d00| 61 6e 63 65 73 20 73 75 | 70 70 6f 72 74 20 74 68 |ances su|pport th|
|00000d10| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 65 74 68 |e follow|ing meth|
|00000d20| 6f 64 73 3a 0a 0a 3c 50 | 3e 0a 3c 42 52 3e 0a 3c |ods:..<P|>.<BR>.<|
|00000d30| 49 4d 47 0a 20 20 53 54 | 59 4c 45 3d 22 68 65 69 |IMG. ST|YLE="hei|
|00000d40| 67 68 74 3a 20 32 2e 31 | 37 65 78 3b 20 76 65 72 |ght: 2.1|7ex; ver|
|00000d50| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 31 37 36 |tical-al|ign: 176|
|00000d60| 2e 31 37 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.17ex; "| SRC="im|
|00000d70| 67 37 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |g7.png".| ALT="\b|
|00000d80| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 72 |egin{fun|cdesc}{r|
|00000d90| 5f 65 76 61 6c 7d 7b 63 | 6f 64 65 7d 0a 5c 76 61 |_eval}{c|ode}.\va|
|00000da0| 72 7b 63 6f 64 65 7d 20 | 6d 75 73 74 20 65 69 74 |r{code} |must eit|
|00000db0| 68 65 72 20 62 65 20 61 | 20 73 74 72 69 6e 67 20 |her be a| string |
|00000dc0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 61 20 50 2e 2e |containi|ng a P..|
|00000dd0| 2e 0a 2e 2e 2e 75 6c 65 | 2e 20 54 68 65 20 76 61 |.....ule|. The va|
|00000de0| 6c 75 65 20 6f 66 20 74 | 68 65 20 65 78 70 72 65 |lue of t|he expre|
|00000df0| 73 73 69 6f 6e 20 6f 72 | 0a 63 6f 64 65 20 6f 62 |ssion or|.code ob|
|00000e00| 6a 65 63 74 20 77 69 6c | 6c 20 62 65 20 72 65 74 |ject wil|l be ret|
|00000e10| 75 72 6e 65 64 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |urned..\|end{func|
|00000e20| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00000e30| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|00000e40| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 32 2e 31 |YLE="hei|ght: 2.1|
|00000e50| 30 65 78 3b 20 76 65 72 | 74 69 63 61 6c 2d 61 6c |0ex; ver|tical-al|
|00000e60| 69 67 6e 3a 20 31 37 36 | 2e 31 37 65 78 3b 20 22 |ign: 176|.17ex; "|
|00000e70| 20 53 52 43 3d 22 69 6d | 67 38 2e 70 6e 67 22 0a | SRC="im|g8.png".|
|00000e80| 20 41 4c 54 3d 22 5c 62 | 65 67 69 6e 7b 66 75 6e | ALT="\b|egin{fun|
|00000e90| 63 64 65 73 63 7d 7b 72 | 5f 65 78 65 63 7d 7b 63 |cdesc}{r|_exec}{c|
|00000ea0| 6f 64 65 7d 0a 5c 76 61 | 72 7b 63 6f 64 65 7d 20 |ode}.\va|r{code} |
|00000eb0| 6d 75 73 74 20 65 69 74 | 68 65 72 20 62 65 20 61 |must eit|her be a|
|00000ec0| 20 73 74 72 69 6e 67 20 | 63 6f 6e 74 61 69 6e 69 | string |containi|
|00000ed0| 6e 67 20 6f 6e 65 2e 2e | 2e 0a 2e 2e 2e 20 65 78 |ng one..|..... ex|
|00000ee0| 65 63 75 74 65 64 20 69 | 6e 20 74 68 65 0a 72 65 |ecuted i|n the.re|
|00000ef0| 73 74 72 69 63 74 65 64 | 20 65 6e 76 69 72 6f 6e |stricted| environ|
|00000f00| 6d 65 6e 74 27 73 20 5c | 63 6f 64 65 7b 5f 5f 6d |ment's \|code{__m|
|00000f10| 61 69 6e 5f 5f 7d 20 6d | 6f 64 75 6c 65 2e 0a 5c |ain__} m|odule..\|
|00000f20| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 22 3e 0a |end{func|desc}">.|
|00000f30| 3c 42 52 3e 0a 0a 3c 50 | 3e 0a 3c 42 52 3e 0a 3c |<BR>..<P|>.<BR>.<|
|00000f40| 49 4d 47 0a 20 20 53 54 | 59 4c 45 3d 22 68 65 69 |IMG. ST|YLE="hei|
|00000f50| 67 68 74 3a 20 32 2e 31 | 37 65 78 3b 20 76 65 72 |ght: 2.1|7ex; ver|
|00000f60| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 31 37 36 |tical-al|ign: 176|
|00000f70| 2e 31 37 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.17ex; "| SRC="im|
|00000f80| 67 39 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |g9.png".| ALT="\b|
|00000f90| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 72 |egin{fun|cdesc}{r|
|00000fa0| 5f 65 78 65 63 66 69 6c | 65 7d 7b 66 69 6c 65 6e |_execfil|e}{filen|
|00000fb0| 61 6d 65 7d 0a 45 78 65 | 63 75 74 65 20 74 68 65 |ame}.Exe|cute the|
|00000fc0| 20 50 79 74 68 6f 6e 20 | 63 6f 64 65 20 63 6f 6e | Python |code con|
|00000fd0| 74 61 69 6e 65 64 20 69 | 6e 20 74 68 65 20 2e 2e |tained i|n the ..|
|00000fe0| 2e 0a 2e 2e 2e 66 69 6c | 65 6e 61 6d 65 7d 20 69 |.....fil|ename} i|
|00000ff0| 6e 20 74 68 65 0a 72 65 | 73 74 72 69 63 74 65 64 |n the.re|stricted|
|00001000| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 27 73 20 5c | environ|ment's \|
|00001010| 63 6f 64 65 7b 5f 5f 6d | 61 69 6e 5f 5f 7d 20 6d |code{__m|ain__} m|
|00001020| 6f 64 75 6c 65 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |odule..\|end{func|
|00001030| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00001040| 3e 0a 4d 65 74 68 6f 64 | 73 20 77 68 6f 73 65 20 |>.Method|s whose |
|00001050| 6e 61 6d 65 73 20 62 65 | 67 69 6e 20 77 69 74 68 |names be|gin with|
|00001060| 20 73 5f 20 61 72 65 20 | 73 69 6d 69 6c 61 72 20 | s_ are |similar |
|00001070| 74 6f 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 73 |to the f|unctions|
|00001080| 0a 62 65 67 69 6e 6e 69 | 6e 67 20 77 69 74 68 20 |.beginni|ng with |
|00001090| 72 5f 2c 20 62 75 74 20 | 74 68 65 20 63 6f 64 65 |r_, but |the code|
|000010a0| 20 77 69 6c 6c 20 62 65 | 20 67 72 61 6e 74 65 64 | will be| granted|
|000010b0| 20 61 63 63 65 73 73 20 | 74 6f 0a 72 65 73 74 72 | access |to.restr|
|000010c0| 69 63 74 65 64 20 76 65 | 72 73 69 6f 6e 73 20 6f |icted ve|rsions o|
|000010d0| 66 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 49 |f the st|andard I|
|000010e0| 2f 4f 20 73 74 72 65 61 | 6e 73 20 73 79 73 2e 73 |/O strea|ns sys.s|
|000010f0| 74 64 69 6e 2c 0a 73 79 | 73 2e 73 74 64 65 72 72 |tdin,.sy|s.stderr|
|00001100| 2c 20 61 6e 64 20 73 79 | 73 2e 73 74 64 6f 75 74 |, and sy|s.stdout|
|00001110| 2e 20 20 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |. ..<P>|.<BR>.<I|
|00001120| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00001130| 68 74 3a 20 32 2e 33 38 | 65 78 3b 20 76 65 72 74 |ht: 2.38|ex; vert|
|00001140| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00001150| 34 30 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |40ex; " |SRC="img|
|00001160| 31 30 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |10.png".| ALT="\b|
|00001170| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 73 |egin{fun|cdesc}{s|
|00001180| 5f 65 76 61 6c 7d 7b 63 | 6f 64 65 7d 0a 5c 76 61 |_eval}{c|ode}.\va|
|00001190| 72 7b 63 6f 64 65 7d 20 | 6d 75 73 74 20 62 65 20 |r{code} |must be |
|000011a0| 61 20 73 74 72 69 6e 67 | 20 63 6f 6e 74 61 69 6e |a string| contain|
|000011b0| 69 6e 67 20 61 20 50 79 | 74 68 6f 6e 20 65 78 70 |ing a Py|thon exp|
|000011c0| 72 65 73 73 69 6f 6e 2c | 20 77 68 69 63 68 20 77 |ression,| which w|
|000011d0| 69 6c 6c 0a 62 65 20 65 | 76 61 6c 75 61 74 65 64 |ill.be e|valuated|
|000011e0| 20 69 6e 20 74 68 65 20 | 72 65 73 74 72 69 63 74 | in the |restrict|
|000011f0| 65 64 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2e 0a |ed envir|onment..|
|00001200| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 22 3e |\end{fun|cdesc}">|
|00001210| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|00001220| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00001230| 69 67 68 74 3a 20 32 2e | 31 30 65 78 3b 20 76 65 |ight: 2.|10ex; ve|
|00001240| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|00001250| 36 2e 36 38 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.68ex; |" SRC="i|
|00001260| 6d 67 31 31 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |mg11.png|". ALT="|
|00001270| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00001280| 7b 73 5f 65 78 65 63 7d | 7b 63 6f 64 65 7d 0a 5c |{s_exec}|{code}.\|
|00001290| 76 61 72 7b 63 6f 64 65 | 7d 20 6d 75 73 74 20 62 |var{code|} must b|
|000012a0| 65 20 61 20 73 74 72 69 | 6e 67 20 63 6f 6e 74 61 |e a stri|ng conta|
|000012b0| 69 6e 69 6e 67 20 6f 6e | 65 20 6f 72 20 6d 6f 72 |ining on|e or mor|
|000012c0| 2e 2e 2e 0a 2e 2e 2e 74 | 68 6f 6e 20 63 6f 64 65 |.......t|hon code|
|000012d0| 2c 0a 77 68 69 63 68 20 | 77 69 6c 6c 20 62 65 20 |,.which |will be |
|000012e0| 65 78 65 63 75 74 65 64 | 20 69 6e 20 74 68 65 20 |executed| in the |
|000012f0| 72 65 73 74 72 69 63 74 | 65 64 20 65 6e 76 69 72 |restrict|ed envir|
|00001300| 6f 6e 6d 65 6e 74 2e 0a | 5c 65 6e 64 7b 66 75 6e |onment..|\end{fun|
|00001310| 63 64 65 73 63 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |cdesc}">|.<BR>..<|
|00001320| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 20 53 |P>.<BR>.|<IMG. S|
|00001330| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|00001340| 31 37 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |17ex; ve|rtical-a|
|00001350| 6c 69 67 6e 3a 20 31 37 | 36 2e 36 38 65 78 3b 20 |lign: 17|6.68ex; |
|00001360| 22 20 53 52 43 3d 22 69 | 6d 67 31 32 2e 70 6e 67 |" SRC="i|mg12.png|
|00001370| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|00001380| 75 6e 63 64 65 73 63 7d | 7b 73 5f 65 78 65 63 66 |uncdesc}|{s_execf|
|00001390| 69 6c 65 7d 7b 63 6f 64 | 65 7d 0a 45 78 65 63 75 |ile}{cod|e}.Execu|
|000013a0| 74 65 20 74 68 65 20 50 | 79 74 68 6f 6e 20 63 6f |te the P|ython co|
|000013b0| 64 65 20 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 20 |de conta|ined in |
|000013c0| 74 68 65 20 66 69 6c 65 | 20 5c 76 61 72 7b 66 69 |the file| \var{fi|
|000013d0| 6c 65 6e 61 6d 65 7d 20 | 69 6e 20 74 68 65 0a 72 |lename} |in the.r|
|000013e0| 65 73 74 72 69 63 74 65 | 64 20 65 6e 76 69 72 6f |estricte|d enviro|
|000013f0| 6e 6d 65 6e 74 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |nment..\|end{func|
|00001400| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00001410| 3e 0a 52 45 78 65 63 20 | 6f 62 6a 65 63 74 73 20 |>.RExec |objects |
|00001420| 6d 75 73 74 20 61 6c 73 | 6f 20 73 75 70 70 6f 72 |must als|o suppor|
|00001430| 74 20 76 61 72 69 6f 75 | 73 20 6d 65 74 68 6f 64 |t variou|s method|
|00001440| 73 20 77 68 69 63 68 20 | 77 69 6c 6c 20 62 65 0a |s which |will be.|
|00001450| 69 6d 70 6c 69 63 69 74 | 6c 79 20 63 61 6c 6c 65 |implicit|ly calle|
|00001460| 64 20 62 79 20 63 6f 64 | 65 20 65 78 65 63 75 74 |d by cod|e execut|
|00001470| 69 6e 67 20 69 6e 20 74 | 68 65 20 72 65 73 74 72 |ing in t|he restr|
|00001480| 69 63 74 65 64 20 65 6e | 76 69 72 6f 6e 6d 65 6e |icted en|vironmen|
|00001490| 74 2e 0a 4f 76 65 72 72 | 69 64 69 6e 67 20 74 68 |t..Overr|iding th|
|000014a0| 65 73 65 20 6d 65 74 68 | 6f 64 73 20 69 6e 20 61 |ese meth|ods in a|
|000014b0| 20 73 75 62 63 6c 61 73 | 73 20 69 73 20 75 73 65 | subclas|s is use|
|000014c0| 64 20 74 6f 20 63 68 61 | 6e 67 65 20 74 68 65 20 |d to cha|nge the |
|000014d0| 70 6f 6c 69 63 69 65 73 | 0a 65 6e 66 6f 72 63 65 |policies|.enforce|
|000014e0| 64 20 62 79 20 61 20 72 | 65 73 74 72 69 63 74 65 |d by a r|estricte|
|000014f0| 64 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 0a 0a |d enviro|nment...|
|00001500| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00001510| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 32 |STYLE="h|eight: 2|
|00001520| 2e 31 37 65 78 3b 20 76 | 65 72 74 69 63 61 6c 2d |.17ex; v|ertical-|
|00001530| 61 6c 69 67 6e 3a 20 31 | 37 36 2e 36 38 65 78 3b |align: 1|76.68ex;|
|00001540| 20 22 20 53 52 43 3d 22 | 69 6d 67 31 33 2e 70 6e | " SRC="|img13.pn|
|00001550| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00001560| 66 75 6e 63 64 65 73 63 | 7d 7b 72 5f 69 6d 70 6f |funcdesc|}{r_impo|
|00001570| 72 74 7d 7b 6d 6f 64 75 | 6c 65 6e 61 6d 65 5c 6f |rt}{modu|lename\o|
|00001580| 70 74 69 6f 6e 61 6c 7b | 5c 2c 20 67 6c 6f 62 61 |ptional{|\, globa|
|00001590| 6c 73 5c 2c 20 6c 6f 63 | 61 6c 73 5c 2c 20 66 72 |ls\, loc|als\, fr|
|000015a0| 6f 6d 6c 69 73 74 7d 7d | 0a 2e 2e 2e 0a 2e 2e 2e |omlist}}|........|
|000015b0| 20 5c 63 6f 64 65 7b 49 | 6d 70 6f 72 74 45 72 72 | \code{I|mportErr|
|000015c0| 6f 72 7d 0a 65 78 63 65 | 70 74 69 6f 6e 20 69 66 |or}.exce|ption if|
|000015d0| 20 74 68 65 20 6d 6f 64 | 75 6c 65 20 69 73 20 63 | the mod|ule is c|
|000015e0| 6f 6e 73 69 64 65 72 65 | 64 20 75 6e 73 61 66 65 |onsidere|d unsafe|
|000015f0| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00001600| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 3c 42 52 |">.<BR>.|.<P>.<BR|
|00001610| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00001620| 68 65 69 67 68 74 3a 20 | 32 2e 31 37 65 78 3b 20 |height: |2.17ex; |
|00001630| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00001640| 31 37 36 2e 35 35 65 78 | 3b 20 22 20 53 52 43 3d |176.55ex|; " SRC=|
|00001650| 22 69 6d 67 31 34 2e 70 | 6e 67 22 0a 20 41 4c 54 |"img14.p|ng". ALT|
|00001660| 3d 22 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |="\begin|{funcdes|
|00001670| 63 7d 7b 72 5f 6f 70 65 | 6e 7d 7b 66 69 6c 65 6e |c}{r_ope|n}{filen|
|00001680| 61 6d 65 5c 6f 70 74 69 | 6f 6e 61 6c 7b 5c 2c 20 |ame\opti|onal{\, |
|00001690| 6d 6f 64 65 5c 6f 70 74 | 69 6f 6e 61 6c 7b 5c 2c |mode\opt|ional{\,|
|000016a0| 20 62 75 66 73 69 7a 65 | 7d 7d 7d 0a 4d 65 74 68 | bufsize|}}}.Meth|
|000016b0| 6f 64 2e 2e 2e 0a 2e 2e | 2e 65 6c 6f 77 20 66 6f |od......|.elow fo|
|000016c0| 72 20 61 6e 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |r an imp|lementat|
|000016d0| 69 6f 6e 20 6f 66 20 61 | 20 6c 65 73 73 20 72 65 |ion of a| less re|
|000016e0| 73 74 72 69 63 74 69 76 | 65 0a 5c 63 6f 64 65 7b |strictiv|e.\code{|
|000016f0| 72 5f 6f 70 65 6e 28 29 | 7d 2e 0a 5c 65 6e 64 7b |r_open()|}..\end{|
|00001700| 66 75 6e 63 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |funcdesc|}">.<BR>|
|00001710| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|00001720| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|00001730| 20 32 2e 33 38 65 78 3b | 20 76 65 72 74 69 63 61 | 2.38ex;| vertica|
|00001740| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 32 36 65 |l-align:| 176.26e|
|00001750| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 31 35 2e |x; " SRC|="img15.|
|00001760| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|00001770| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 72 5f 72 65 |n{funcde|sc}{r_re|
|00001780| 6c 6f 61 64 7d 7b 6d 6f | 64 75 6c 65 7d 0a 52 65 |load}{mo|dule}.Re|
|00001790| 6c 6f 61 64 20 74 68 65 | 20 6d 6f 64 75 6c 65 20 |load the| module |
|000017a0| 6f 62 6a 65 63 74 20 5c | 76 61 72 7b 6d 6f 64 75 |object \|var{modu|
|000017b0| 6c 65 7d 2c 20 72 65 2d | 70 61 72 73 69 6e 67 20 |le}, re-|parsing |
|000017c0| 61 6e 64 20 72 65 2d 69 | 6e 69 74 69 61 6c 69 7a |and re-i|nitializ|
|000017d0| 69 6e 67 20 69 74 2e 0a | 5c 65 6e 64 7b 66 75 6e |ing it..|\end{fun|
|000017e0| 63 64 65 73 63 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |cdesc}">|.<BR>..<|
|000017f0| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 20 53 |P>.<BR>.|<IMG. S|
|00001800| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|00001810| 31 30 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |10ex; ve|rtical-a|
|00001820| 6c 69 67 6e 3a 20 31 37 | 36 2e 35 35 65 78 3b 20 |lign: 17|6.55ex; |
|00001830| 22 20 53 52 43 3d 22 69 | 6d 67 31 36 2e 70 6e 67 |" SRC="i|mg16.png|
|00001840| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|00001850| 75 6e 63 64 65 73 63 7d | 7b 72 5f 75 6e 6c 6f 61 |uncdesc}|{r_unloa|
|00001860| 64 7d 7b 6d 6f 64 75 6c | 65 7d 0a 55 6e 6c 6f 61 |d}{modul|e}.Unloa|
|00001870| 64 20 74 68 65 20 6d 6f | 64 75 6c 65 20 6f 62 6a |d the mo|dule obj|
|00001880| 65 63 74 20 5c 76 61 72 | 7b 6d 6f 64 75 6c 65 7d |ect \var|{module}|
|00001890| 20 28 69 2e 65 2e 2c 20 | 2e 2e 2e 0a 2e 2e 2e 66 | (i.e., |.......f|
|000018a0| 72 6f 6d 20 74 68 65 0a | 72 65 73 74 72 69 63 74 |rom the.|restrict|
|000018b0| 65 64 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 27 73 |ed envir|onment's|
|000018c0| 20 5c 63 6f 64 65 7b 73 | 79 73 2e 6d 6f 64 75 6c | \code{s|ys.modul|
|000018d0| 65 73 7d 20 64 69 63 74 | 69 6f 6e 61 72 79 29 2e |es} dict|ionary).|
|000018e0| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 22 |.\end{fu|ncdesc}"|
|000018f0| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 41 6e 64 20 |>.<BR>..|<P>.And |
|00001900| 74 68 65 69 72 20 65 71 | 75 69 76 61 6c 65 6e 74 |their eq|uivalent|
|00001910| 73 20 77 69 74 68 20 61 | 63 63 65 73 73 20 74 6f |s with a|ccess to|
|00001920| 20 72 65 73 74 72 69 63 | 74 65 64 20 73 74 61 6e | restric|ted stan|
|00001930| 64 61 72 64 20 49 2f 4f | 20 73 74 72 65 61 6d 73 |dard I/O| streams|
|00001940| 3a 0a 0a 3c 50 3e 0a 3c | 42 52 3e 0a 3c 49 4d 47 |:..<P>.<|BR>.<IMG|
|00001950| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|00001960| 3a 20 32 2e 33 38 65 78 | 3b 20 76 65 72 74 69 63 |: 2.38ex|; vertic|
|00001970| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 36 2e 34 30 |al-align|: 176.40|
|00001980| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 31 37 |ex; " SR|C="img17|
|00001990| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|000019a0| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 73 5f 69 |in{funcd|esc}{s_i|
|000019b0| 6d 70 6f 72 74 7d 7b 6d | 6f 64 75 6c 65 6e 61 6d |mport}{m|odulenam|
|000019c0| 65 5c 6f 70 74 69 6f 6e | 61 6c 7b 5c 2c 20 67 6c |e\option|al{\, gl|
|000019d0| 6f 62 61 6c 73 2c 20 6c | 6f 63 61 6c 73 2c 20 66 |obals, l|ocals, f|
|000019e0| 72 6f 6d 6c 69 73 74 7d | 7d 0a 49 6d 2e 2e 2e 0a |romlist}|}.Im....|
|000019f0| 2e 2e 2e 20 5c 63 6f 64 | 65 7b 49 6d 70 6f 72 74 |... \cod|e{Import|
|00001a00| 45 72 72 6f 72 7d 0a 65 | 78 63 65 70 74 69 6f 6e |Error}.e|xception|
|00001a10| 20 69 66 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 69 | if the |module i|
|00001a20| 73 20 63 6f 6e 73 69 64 | 65 72 65 64 20 75 6e 73 |s consid|ered uns|
|00001a30| 61 66 65 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |afe..\en|d{funcde|
|00001a40| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|00001a50| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|00001a60| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 31 37 65 |E="heigh|t: 2.17e|
|00001a70| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|00001a80| 6e 3a 20 31 37 36 2e 36 | 38 65 78 3b 20 22 20 53 |n: 176.6|8ex; " S|
|00001a90| 52 43 3d 22 69 6d 67 31 | 38 2e 70 6e 67 22 0a 20 |RC="img1|8.png". |
|00001aa0| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|00001ab0| 64 65 73 63 7d 7b 73 5f | 72 65 6c 6f 61 64 7d 7b |desc}{s_|reload}{|
|00001ac0| 6d 6f 64 75 6c 65 7d 0a | 52 65 6c 6f 61 64 20 74 |module}.|Reload t|
|00001ad0| 68 65 20 6d 6f 64 75 6c | 65 20 6f 62 6a 65 63 74 |he modul|e object|
|00001ae0| 20 5c 76 61 72 7b 6d 6f | 64 75 6c 65 7d 2c 20 72 | \var{mo|dule}, r|
|00001af0| 65 2d 70 61 72 73 69 6e | 67 20 61 6e 64 20 72 65 |e-parsin|g and re|
|00001b00| 2d 69 6e 69 74 69 61 6c | 69 7a 69 6e 67 20 69 74 |-initial|izing it|
|00001b10| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00001b20| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 3c 42 52 |">.<BR>.|.<P>.<BR|
|00001b30| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00001b40| 68 65 69 67 68 74 3a 20 | 32 2e 31 30 65 78 3b 20 |height: |2.10ex; |
|00001b50| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00001b60| 31 37 36 2e 36 38 65 78 | 3b 20 22 20 53 52 43 3d |176.68ex|; " SRC=|
|00001b70| 22 69 6d 67 31 39 2e 70 | 6e 67 22 0a 20 41 4c 54 |"img19.p|ng". ALT|
|00001b80| 3d 22 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |="\begin|{funcdes|
|00001b90| 63 7d 7b 73 5f 75 6e 6c | 6f 61 64 7d 7b 6d 6f 64 |c}{s_unl|oad}{mod|
|00001ba0| 75 6c 65 7d 0a 55 6e 6c | 6f 61 64 20 74 68 65 20 |ule}.Unl|oad the |
|00001bb0| 6d 6f 64 75 6c 65 20 6f | 62 6a 65 63 74 20 5c 76 |module o|bject \v|
|00001bc0| 61 72 7b 6d 6f 64 75 6c | 65 7d 2e 0a 5c 65 6e 64 |ar{modul|e}..\end|
|00001bd0| 7b 66 75 6e 63 64 65 73 | 63 7d 22 3e 0a 3c 42 52 |{funcdes|c}">.<BR|
|00001be0| 3e 0a 0a 3c 50 3e 0a 3c | 42 52 3e 3c 48 52 3e 0a |>..<P>.<|BR><HR>.|
|00001bf0| 3c 21 2d 2d 54 61 62 6c | 65 20 6f 66 20 43 68 69 |<!--Tabl|e of Chi|
|00001c00| 6c 64 2d 4c 69 6e 6b 73 | 2d 2d 3e 0a 3c 41 20 49 |ld-Links|-->.<A I|
|00001c10| 44 3d 22 43 48 49 4c 44 | 5f 4c 49 4e 4b 53 22 3e |D="CHILD|_LINKS">|
|00001c20| 3c 53 54 52 4f 4e 47 3e | 53 75 62 73 65 63 74 69 |<STRONG>|Subsecti|
|00001c30| 6f 6e 73 3c 2f 53 54 52 | 4f 4e 47 3e 3c 2f 41 3e |ons</STR|ONG></A>|
|00001c40| 0a 0a 3c 55 4c 3e 0a 3c | 4c 49 3e 3c 41 20 4e 41 |..<UL>.<|LI><A NA|
|00001c50| 4d 45 3d 22 74 65 78 32 | 68 74 6d 6c 33 22 20 48 |ME="tex2|html3" H|
|00001c60| 52 45 46 3d 22 6e 6f 64 | 65 32 5f 63 74 2e 68 74 |REF="nod|e2_ct.ht|
|00001c70| 6d 6c 22 20 54 41 52 47 | 45 54 3d 22 63 6f 6e 74 |ml" TARG|ET="cont|
|00001c80| 65 6e 74 73 22 3e 3c 53 | 4d 41 4c 4c 3e 41 6e 20 |ents"><S|MALL>An |
|00001c90| 65 78 61 6d 70 6c 65 3c | 2f 53 4d 41 4c 4c 3e 3c |example<|/SMALL><|
|00001ca0| 2f 41 3e 0a 3c 2f 55 4c | 3e 0a 3c 21 2d 2d 45 6e |/A>.</UL|>.<!--En|
|00001cb0| 64 20 6f 66 20 54 61 62 | 6c 65 20 6f 66 20 43 68 |d of Tab|le of Ch|
|00001cc0| 69 6c 64 2d 4c 69 6e 6b | 73 2d 2d 3e 0a 0a 3c 48 |ild-Link|s-->..<H|
|00001cd0| 52 3e 0a 0a 3c 2f 42 4f | 44 59 3e 0a 3c 2f 48 54 |R>..</BO|DY>.</HT|
|00001ce0| 4d 4c 3e 0a | |ML>. | |
+--------+-------------------------+-------------------------+--------+--------+