home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Doc / librexec.tex / node1_ct.html < prev    next >
LaTeX Document  |  1997-01-17  |  7.2 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 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 6c 69 62 72 65 78 65 | 63 2e 63 73 73 22 3e 0a |"librexe|c.css">.|
|000001b0| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 70 72 65 76 |.<LINK R|EL="prev|
|000001c0| 69 6f 75 73 22 20 48 52 | 45 46 3d 22 6c 69 62 72 |ious" HR|EF="libr|
|000001d0| 65 78 65 63 5f 6d 6e 2e | 68 74 6d 6c 22 3e 0a 3c |exec_mn.|html">.<|
|000001e0| 4c 49 4e 4b 20 52 45 4c | 3d 22 75 70 22 20 48 52 |LINK REL|="up" HR|
|000001f0| 45 46 3d 22 6c 69 62 72 | 65 78 65 63 5f 6d 6e 2e |EF="libr|exec_mn.|
|00000200| 68 74 6d 6c 22 3e 0a 3c | 4c 49 4e 4b 20 52 45 4c |html">.<|LINK REL|
|00000210| 3d 22 6e 65 78 74 22 20 | 48 52 45 46 3d 22 6e 6f |="next" |HREF="no|
|00000220| 64 65 32 5f 6d 6e 2e 68 | 74 6d 6c 22 3e 0a 3c 2f |de2_mn.h|tml">.</|
|00000230| 48 45 41 44 3e 0a 20 0a | 3c 42 4f 44 59 20 62 67 |HEAD>. .|<BODY bg|
|00000240| 63 6f 6c 6f 72 3d 22 23 | 66 66 66 66 66 66 22 20 |color="#|ffffff" |
|00000250| 74 65 78 74 3d 22 23 30 | 30 30 30 30 30 22 20 6c |text="#0|00000" l|
|00000260| 69 6e 6b 3d 22 23 39 39 | 34 34 45 45 22 20 76 6c |ink="#99|44EE" vl|
|00000270| 69 6e 6b 3d 22 23 30 30 | 30 30 66 66 22 20 61 6c |ink="#00|00ff" al|
|00000280| 69 6e 6b 3d 22 23 30 30 | 66 66 30 30 22 3e 0a 0a |ink="#00|ff00">..|
|00000290| 3c 48 31 3e 3c 41 20 49 | 44 3d 22 53 45 43 54 49 |<H1><A I|D="SECTI|
|000002a0| 4f 4e 30 30 30 31 30 30 | 30 30 30 30 30 30 30 30 |ON000100|00000000|
|000002b0| 30 30 30 30 30 30 22 3e | 0a 53 74 61 6e 64 61 72 |000000">|.Standar|
|000002c0| 64 20 4d 6f 64 75 6c 65 | 20 72 65 78 65 63 3c 2f |d Module| rexec</|
|000002d0| 41 3e 0a 3c 2f 48 31 3e | 0a 72 65 78 65 63 0a 0a |A>.</H1>|.rexec..|
|000002e0| 3c 50 3e 0a 54 68 69 73 | 20 6d 6f 64 75 6c 65 20 |<P>.This| module |
|000002f0| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 52 45 78 |contains| the REx|
|00000300| 65 63 20 63 6c 61 73 73 | 2c 20 77 68 69 63 68 20 |ec class|, which |
|00000310| 73 75 70 70 6f 72 74 73 | 0a 72 5f 65 78 65 63 28 |supports|.r_exec(|
|00000320| 29 2c 20 72 5f 65 76 61 | 6c 28 29 2c 20 72 5f 65 |), r_eva|l(), r_e|
|00000330| 78 65 63 66 69 6c 65 28 | 29 2c 20 61 6e 64 0a 72 |xecfile(|), and.r|
|00000340| 5f 69 6d 70 6f 72 74 28 | 29 20 6d 65 74 68 6f 64 |_import(|) method|
|00000350| 73 2c 20 77 68 69 63 68 | 20 61 72 65 20 72 65 73 |s, which| are res|
|00000360| 74 72 69 63 74 65 64 20 | 76 65 72 73 69 6f 6e 73 |tricted |versions|
|00000370| 20 6f 66 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | of the |standard|
|00000380| 0a 50 79 74 68 6f 6e 20 | 66 75 6e 63 74 69 6f 6e |.Python |function|
|00000390| 73 20 65 78 65 63 28 29 | 2c 20 65 76 61 6c 28 29 |s exec()|, eval()|
|000003a0| 2c 20 65 78 65 63 66 69 | 6c 65 28 29 2c 20 61 6e |, execfi|le(), an|
|000003b0| 64 0a 74 68 65 20 69 6d | 70 6f 72 74 20 73 74 61 |d.the im|port sta|
|000003c0| 74 65 6d 65 6e 74 2e 0a | 43 6f 64 65 20 65 78 65 |tement..|Code exe|
|000003d0| 63 75 74 65 64 20 69 6e | 20 74 68 69 73 20 72 65 |cuted in| this re|
|000003e0| 73 74 72 69 63 74 65 64 | 20 65 6e 76 69 72 6f 6e |stricted| environ|
|000003f0| 6d 65 6e 74 20 77 69 6c | 6c 0a 6f 6e 6c 79 20 68 |ment wil|l.only h|
|00000400| 61 76 65 20 61 63 63 65 | 73 73 20 74 6f 20 6d 6f |ave acce|ss to mo|
|00000410| 64 75 6c 65 73 20 61 6e | 64 20 66 75 6e 63 74 69 |dules an|d functi|
|00000420| 6f 6e 73 20 74 68 61 74 | 20 61 72 65 20 64 65 65 |ons that| are dee|
|00000430| 6d 65 64 20 73 61 66 65 | 3b 20 79 6f 75 0a 63 61 |med safe|; you.ca|
|00000440| 6e 20 73 75 62 63 6c 61 | 73 73 20 52 45 78 65 63 |n subcla|ss RExec|
|00000450| 20 74 6f 20 61 64 64 20 | 6f 72 20 72 65 6d 6f 76 | to add |or remov|
|00000460| 65 20 63 61 70 61 62 69 | 6c 69 74 69 65 73 20 61 |e capabi|lities a|
|00000470| 73 20 64 65 73 69 72 65 | 64 2e 0a 0a 3c 50 3e 0a |s desire|d...<P>.|
|00000480| 3c 49 3e 4e 6f 74 65 3a | 3c 2f 49 3e 20 54 68 65 |<I>Note:|</I> The|
|00000490| 20 52 45 78 65 63 20 63 | 6c 61 73 73 20 63 61 6e | RExec c|lass can|
|000004a0| 20 70 72 65 76 65 6e 74 | 20 63 6f 64 65 20 66 72 | prevent| code fr|
|000004b0| 6f 6d 20 70 65 72 66 6f | 72 6d 69 6e 67 0a 75 6e |om perfo|rming.un|
|000004c0| 73 61 66 65 20 6f 70 65 | 72 61 74 69 6f 6e 73 20 |safe ope|rations |
|000004d0| 6c 69 6b 65 20 72 65 61 | 64 69 6e 67 20 6f 72 20 |like rea|ding or |
|000004e0| 77 72 69 74 69 6e 67 20 | 64 69 73 6b 20 66 69 6c |writing |disk fil|
|000004f0| 65 73 2c 20 6f 72 20 75 | 73 69 6e 67 20 54 43 50 |es, or u|sing TCP|
|00000500| 2f 49 50 0a 73 6f 63 6b | 65 74 73 2e 20 20 48 6f |/IP.sock|ets. Ho|
|00000510| 77 65 76 65 72 2c 20 69 | 74 20 64 6f 65 73 20 6e |wever, i|t does n|
|00000520| 6f 74 20 70 72 6f 74 65 | 63 74 20 61 67 61 69 6e |ot prote|ct again|
|00000530| 73 74 20 63 6f 64 65 20 | 75 73 69 6e 67 20 65 78 |st code |using ex|
|00000540| 74 72 65 6d 65 6c 79 0a | 6c 61 72 67 65 20 61 6d |tremely.|large am|
|00000550| 6f 75 6e 74 73 20 6f 66 | 20 6d 65 6d 6f 72 79 20 |ounts of| memory |
|00000560| 6f 72 20 43 50 55 20 74 | 69 6d 65 2e 20 20 0a 0a |or CPU t|ime. ..|
|00000570| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000580| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 31 |STYLE="h|eight: 1|
|00000590| 39 36 2e 32 35 65 78 3b | 20 76 65 72 74 69 63 61 |96.25ex;| vertica|
|000005a0| 6c 2d 61 6c 69 67 6e 3a | 20 2d 30 2e 37 30 65 78 |l-align:| -0.70ex|
|000005b0| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 31 2e 70 6e |; " SRC=|"img1.pn|
|000005c0| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|000005d0| 66 75 6e 63 64 65 73 63 | 7d 7b 52 45 78 65 63 7d |funcdesc|}{RExec}|
|000005e0| 7b 5c 6f 70 74 69 6f 6e | 61 6c 7b 68 6f 6f 6b 73 |{\option|al{hooks|
|000005f0| 5c 6f 70 74 69 6f 6e 61 | 6c 7b 5c 2c 20 76 65 72 |\optiona|l{\, ver|
|00000600| 62 6f 73 65 7d 7d 7d 0a | 52 65 74 75 72 6e 73 20 |bose}}}.|Returns |
|00000610| 61 6e 20 69 6e 73 74 61 | 6e 2e 2e 2e 0a 2e 2e 2e |an insta|n.......|
|00000620| 74 72 75 65 2c 20 61 64 | 64 69 74 69 6f 6e 61 6c |true, ad|ditional|
|00000630| 20 64 65 62 75 67 67 69 | 6e 67 20 6f 75 74 70 75 | debuggi|ng outpu|
|00000640| 74 20 6d 61 79 20 62 65 | 20 73 65 6e 74 20 74 6f |t may be| sent to|
|00000650| 0a 73 74 61 6e 64 61 72 | 64 20 6f 75 74 70 75 74 |.standar|d output|
|00000660| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00000670| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 54 68 65 |">.<BR>.|.<P>.The|
|00000680| 20 52 45 78 65 63 20 63 | 6c 61 73 73 20 68 61 73 | RExec c|lass has|
|00000690| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|000006a0| 6c 61 73 73 20 61 74 74 | 72 69 62 75 74 65 73 2c |lass att|ributes,|
|000006b0| 20 77 68 69 63 68 20 61 | 72 65 20 75 73 65 64 20 | which a|re used |
|000006c0| 62 79 20 74 68 65 0a 5f | 5f 69 6e 69 74 5f 5f 20 |by the._|_init__ |
|000006d0| 6d 65 74 68 6f 64 2e 20 | 20 43 68 61 6e 67 69 6e |method. | Changin|
|000006e0| 67 20 74 68 65 6d 20 6f | 6e 20 61 6e 20 65 78 69 |g them o|n an exi|
|000006f0| 73 74 69 6e 67 20 69 6e | 73 74 61 6e 63 65 20 77 |sting in|stance w|
|00000700| 6f 6e 27 74 0a 68 61 76 | 65 20 61 6e 79 20 65 66 |on't.hav|e any ef|
|00000710| 66 65 63 74 3b 20 69 6e | 73 74 65 61 64 2c 20 63 |fect; in|stead, c|
|00000720| 72 65 61 74 65 20 61 20 | 73 75 62 63 6c 61 73 73 |reate a |subclass|
|00000730| 20 6f 66 20 52 45 78 65 | 63 20 61 6e 64 20 61 73 | of RExe|c and as|
|00000740| 73 69 67 6e 0a 74 68 65 | 6d 20 6e 65 77 20 76 61 |sign.the|m new va|
|00000750| 6c 75 65 73 20 69 6e 20 | 74 68 65 20 63 6c 61 73 |lues in |the clas|
|00000760| 73 20 64 65 66 69 6e 69 | 74 69 6f 6e 2e 20 20 49 |s defini|tion. I|
|00000770| 6e 73 74 61 6e 63 65 73 | 20 6f 66 20 74 68 65 20 |nstances| of the |
|00000780| 6e 65 77 20 63 6c 61 73 | 73 0a 77 69 6c 6c 20 74 |new clas|s.will t|
|00000790| 68 65 6e 20 75 73 65 20 | 74 68 6f 73 65 20 6e 65 |hen use |those ne|
|000007a0| 77 20 76 61 6c 75 65 73 | 2e 20 20 41 6c 6c 20 74 |w values|. All t|
|000007b0| 68 65 73 65 20 61 74 74 | 72 69 62 75 74 65 73 20 |hese att|ributes |
|000007c0| 61 72 65 20 74 75 70 6c | 65 73 20 6f 66 0a 73 74 |are tupl|es of.st|
|000007d0| 72 69 6e 67 73 2e 0a 0a | 3c 50 3e 0a 0a 3c 42 52 |rings...|<P>..<BR|
|000007e0| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|000007f0| 68 65 69 67 68 74 3a 20 | 31 2e 37 35 65 78 3b 20 |height: |1.75ex; |
|00000800| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00000810| 31 37 35 2e 36 35 65 78 | 3b 20 22 20 53 52 43 3d |175.65ex|; " SRC=|
|00000820| 22 69 6d 67 32 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img2.pn|g". ALT=|
|00000830| 22 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |"\begin{|datadesc|
|00000840| 7d 7b 6e 6f 6b 5f 62 75 | 69 6c 74 69 6e 5f 6e 61 |}{nok_bu|iltin_na|
|00000850| 6d 65 73 7d 0a 43 6f 6e | 74 61 69 6e 73 20 74 68 |mes}.Con|tains th|
|00000860| 65 20 6e 61 6d 65 73 20 | 6f 66 20 62 75 69 6c 74 |e names |of built|
|00000870| 2d 69 6e 20 66 75 6e 63 | 74 69 6f 6e 73 20 77 68 |-in func|tions wh|
|00000880| 69 2e 2e 2e 0a 2e 2e 2e | 6f 6e 73 20 61 72 65 20 |i.......|ons are |
|00000890| 61 64 64 65 64 20 74 6f | 20 50 79 74 68 6f 6e 2c |added to| Python,|
|000008a0| 20 74 68 65 79 20 77 69 | 6c 6c 20 61 6c 73 6f 20 | they wi|ll also |
|000008b0| 62 65 0a 61 64 64 65 64 | 20 74 6f 20 74 68 69 73 |be.added| to this|
|000008c0| 20 6d 6f 64 75 6c 65 2e | 29 0a 5c 65 6e 64 7b 64 | module.|).\end{d|
|000008d0| 61 74 61 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |atadesc}|">.<BR>.|
|000008e0| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|000008f0| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000900| 32 2e 31 37 65 78 3b 20 | 76 65 72 74 69 63 61 6c |2.17ex; |vertical|
|00000910| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 34 31 65 78 |-align: |176.41ex|
|00000920| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 33 2e 70 6e |; " SRC=|"img3.pn|
|00000930| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00000940| 64 61 74 61 64 65 73 63 | 7d 7b 6f 6b 5f 62 75 69 |datadesc|}{ok_bui|
|00000950| 6c 74 69 6e 5f 6d 6f 64 | 75 6c 65 73 7d 0a 43 6f |ltin_mod|ules}.Co|
|00000960| 6e 74 61 69 6e 73 20 74 | 68 65 20 6e 61 6d 65 73 |ntains t|he names|
|00000970| 20 6f 66 20 62 75 69 6c | 74 2d 69 6e 20 6d 6f 64 | of buil|t-in mod|
|00000980| 75 6c 65 73 20 77 68 69 | 63 2e 2e 2e 0a 2e 2e 2e |ules whi|c.......|
|00000990| 70 70 6c 69 65 73 20 2d | 2d 2d 20 75 73 65 20 74 |pplies -|-- use t|
|000009a0| 68 65 20 76 61 6c 75 65 | 20 66 72 6f 6d 20 74 68 |he value| from th|
|000009b0| 65 20 62 61 73 65 0a 63 | 6c 61 73 73 20 61 73 20 |e base.c|lass as |
|000009c0| 61 20 73 74 61 72 74 69 | 6e 67 20 70 6f 69 6e 74 |a starti|ng point|
|000009d0| 2e 0a 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|000009e0| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 3c 42 52 |">.<BR>.|.<P>.<BR|
|000009f0| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00000a00| 68 65 69 67 68 74 3a 20 | 32 2e 33 38 65 78 3b 20 |height: |2.38ex; |
|00000a10| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00000a20| 31 37 36 2e 31 39 65 78 | 3b 20 22 20 53 52 43 3d |176.19ex|; " SRC=|
|00000a30| 22 69 6d 67 34 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img4.pn|g". ALT=|
|00000a40| 22 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |"\begin{|datadesc|
|00000a50| 7d 7b 6f 6b 5f 70 61 74 | 68 7d 0a 43 6f 6e 74 61 |}{ok_pat|h}.Conta|
|00000a60| 69 6e 73 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 |ins the |director|
|00000a70| 69 65 73 20 77 68 69 63 | 68 20 77 69 6c 6c 20 62 |ies whic|h will b|
|00000a80| 65 20 73 65 61 72 63 68 | 65 64 20 77 68 65 6e 20 |e search|ed when |
|00000a90| 61 2e 2e 2e 0a 2e 2e 2e | 73 2e 70 61 74 68 7d 20 |a.......|s.path} |
|00000aa0| 28 61 74 20 74 68 65 20 | 74 69 6d 65 0a 74 68 65 |(at the |time.the|
|00000ab0| 20 6d 6f 64 75 6c 65 20 | 69 73 20 6c 6f 61 64 65 | module |is loade|
|00000ac0| 64 29 20 66 6f 72 20 75 | 6e 72 65 73 74 72 69 63 |d) for u|nrestric|
|00000ad0| 74 65 64 20 63 6f 64 65 | 2e 0a 5c 65 6e 64 7b 64 |ted code|..\end{d|
|00000ae0| 61 74 61 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |atadesc}|">.<BR>.|
|00000af0| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00000b00| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000b10| 32 2e 33 38 65 78 3b 20 | 76 65 72 74 69 63 61 6c |2.38ex; |vertical|
|00000b20| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 31 32 65 78 |-align: |176.12ex|
|00000b30| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 35 2e 70 6e |; " SRC=|"img5.pn|
|00000b40| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00000b50| 64 61 74 61 64 65 73 63 | 7d 7b 6f 6b 5f 70 6f 73 |datadesc|}{ok_pos|
|00000b60| 69 78 5f 6e 61 6d 65 73 | 7d 0a 43 6f 6e 74 61 69 |ix_names|}.Contai|
|00000b70| 6e 73 20 74 68 65 20 6e | 61 6d 65 73 20 6f 66 20 |ns the n|ames of |
|00000b80| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 69 6e |the func|tions in|
|00000b90| 20 74 68 65 20 5c 63 6f | 64 2e 2e 2e 0a 2e 2e 2e | the \co|d.......|
|00000ba0| 7b 27 67 65 74 75 69 64 | 27 2c 7d 20 5c 63 6f 64 |{'getuid|',} \cod|
|00000bb0| 65 7b 27 67 65 74 67 69 | 64 27 2c 7d 20 5c 63 6f |e{'getgi|d',} \co|
|00000bc0| 64 65 7b 27 67 65 74 65 | 75 69 64 27 2c 7d 0a 5c |de{'gete|uid',}.\|
|00000bd0| 63 6f 64 65 7b 27 67 65 | 74 65 67 69 64 27 29 7d |code{'ge|tegid')}|
|00000be0| 2e 0a 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|00000bf0| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 3c 42 52 |">.<BR>.|.<P>.<BR|
|00000c00| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00000c10| 68 65 69 67 68 74 3a 20 | 32 2e 33 38 65 78 3b 20 |height: |2.38ex; |
|00000c20| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00000c30| 31 37 36 2e 32 30 65 78 | 3b 20 22 20 53 52 43 3d |176.20ex|; " SRC=|
|00000c40| 22 69 6d 67 36 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img6.pn|g". ALT=|
|00000c50| 22 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |"\begin{|datadesc|
|00000c60| 7d 7b 6f 6b 5f 73 79 73 | 5f 6e 61 6d 65 73 7d 0a |}{ok_sys|_names}.|
|00000c70| 43 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6e 61 6d |Contains| the nam|
|00000c80| 65 73 20 6f 66 20 74 68 | 65 20 66 75 6e 63 74 69 |es of th|e functi|
|00000c90| 6f 6e 73 20 61 6e 64 20 | 76 61 72 69 61 62 6c 65 |ons and |variable|
|00000ca0| 73 2e 2e 2e 0a 2e 2e 2e | 65 7b 27 76 65 72 73 69 |s.......|e{'versi|
|00000cb0| 6f 6e 27 2c 7d 20 5c 63 | 6f 64 65 7b 27 70 6c 61 |on',} \c|ode{'pla|
|00000cc0| 74 66 6f 72 6d 27 2c 7d | 0a 5c 63 6f 64 65 7b 27 |tform',}|.\code{'|
|00000cd0| 65 78 69 74 27 2c 7d 20 | 5c 63 6f 64 65 7b 27 6d |exit',} |\code{'m|
|00000ce0| 61 78 69 6e 74 27 29 7d | 2e 0a 5c 65 6e 64 7b 64 |axint')}|..\end{d|
|00000cf0| 61 74 61 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |atadesc}|">.<BR>.|
|00000d00| 0a 3c 50 3e 0a 52 45 78 | 65 63 20 69 6e 73 74 61 |.<P>.REx|ec insta|
|00000d10| 6e 63 65 73 20 73 75 70 | 70 6f 72 74 20 74 68 65 |nces sup|port the|
|00000d20| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 74 68 6f | followi|ng metho|
|00000d30| 64 73 3a 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |ds:..<P>|.<BR>.<I|
|00000d40| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00000d50| 68 74 3a 20 32 2e 31 37 | 65 78 3b 20 76 65 72 74 |ht: 2.17|ex; vert|
|00000d60| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00000d70| 31 37 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |17ex; " |SRC="img|
|00000d80| 37 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |7.png". |ALT="\be|
|00000d90| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 72 5f |gin{func|desc}{r_|
|00000da0| 65 76 61 6c 7d 7b 63 6f | 64 65 7d 0a 5c 76 61 72 |eval}{co|de}.\var|
|00000db0| 7b 63 6f 64 65 7d 20 6d | 75 73 74 20 65 69 74 68 |{code} m|ust eith|
|00000dc0| 65 72 20 62 65 20 61 20 | 73 74 72 69 6e 67 20 63 |er be a |string c|
|00000dd0| 6f 6e 74 61 69 6e 69 6e | 67 20 61 20 50 2e 2e 2e |ontainin|g a P...|
|00000de0| 0a 2e 2e 2e 75 6c 65 2e | 20 54 68 65 20 76 61 6c |....ule.| The val|
|00000df0| 75 65 20 6f 66 20 74 68 | 65 20 65 78 70 72 65 73 |ue of th|e expres|
|00000e00| 73 69 6f 6e 20 6f 72 0a | 63 6f 64 65 20 6f 62 6a |sion or.|code obj|
|00000e10| 65 63 74 20 77 69 6c 6c | 20 62 65 20 72 65 74 75 |ect will| be retu|
|00000e20| 72 6e 65 64 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |rned..\e|nd{funcd|
|00000e30| 65 73 63 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |esc}">.<|BR>..<P>|
|00000e40| 0a 3c 42 52 3e 0a 3c 49 | 4d 47 0a 20 20 53 54 59 |.<BR>.<I|MG. STY|
|00000e50| 4c 45 3d 22 68 65 69 67 | 68 74 3a 20 32 2e 31 30 |LE="heig|ht: 2.10|
|00000e60| 65 78 3b 20 76 65 72 74 | 69 63 61 6c 2d 61 6c 69 |ex; vert|ical-ali|
|00000e70| 67 6e 3a 20 31 37 36 2e | 31 37 65 78 3b 20 22 20 |gn: 176.|17ex; " |
|00000e80| 53 52 43 3d 22 69 6d 67 | 38 2e 70 6e 67 22 0a 20 |SRC="img|8.png". |
|00000e90| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|00000ea0| 64 65 73 63 7d 7b 72 5f | 65 78 65 63 7d 7b 63 6f |desc}{r_|exec}{co|
|00000eb0| 64 65 7d 0a 5c 76 61 72 | 7b 63 6f 64 65 7d 20 6d |de}.\var|{code} m|
|00000ec0| 75 73 74 20 65 69 74 68 | 65 72 20 62 65 20 61 20 |ust eith|er be a |
|00000ed0| 73 74 72 69 6e 67 20 63 | 6f 6e 74 61 69 6e 69 6e |string c|ontainin|
|00000ee0| 67 20 6f 6e 65 2e 2e 2e | 0a 2e 2e 2e 20 65 78 65 |g one...|.... exe|
|00000ef0| 63 75 74 65 64 20 69 6e | 20 74 68 65 0a 72 65 73 |cuted in| the.res|
|00000f00| 74 72 69 63 74 65 64 20 | 65 6e 76 69 72 6f 6e 6d |tricted |environm|
|00000f10| 65 6e 74 27 73 20 5c 63 | 6f 64 65 7b 5f 5f 6d 61 |ent's \c|ode{__ma|
|00000f20| 69 6e 5f 5f 7d 20 6d 6f | 64 75 6c 65 2e 0a 5c 65 |in__} mo|dule..\e|
|00000f30| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 22 3e 0a 3c |nd{funcd|esc}">.<|
|00000f40| 42 52 3e 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |BR>..<P>|.<BR>.<I|
|00000f50| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00000f60| 68 74 3a 20 32 2e 31 37 | 65 78 3b 20 76 65 72 74 |ht: 2.17|ex; vert|
|00000f70| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00000f80| 31 37 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |17ex; " |SRC="img|
|00000f90| 39 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |9.png". |ALT="\be|
|00000fa0| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 72 5f |gin{func|desc}{r_|
|00000fb0| 65 78 65 63 66 69 6c 65 | 7d 7b 66 69 6c 65 6e 61 |execfile|}{filena|
|00000fc0| 6d 65 7d 0a 45 78 65 63 | 75 74 65 20 74 68 65 20 |me}.Exec|ute the |
|00000fd0| 50 79 74 68 6f 6e 20 63 | 6f 64 65 20 63 6f 6e 74 |Python c|ode cont|
|00000fe0| 61 69 6e 65 64 20 69 6e | 20 74 68 65 20 2e 2e 2e |ained in| the ...|
|00000ff0| 0a 2e 2e 2e 66 69 6c 65 | 6e 61 6d 65 7d 20 69 6e |....file|name} in|
|00001000| 20 74 68 65 0a 72 65 73 | 74 72 69 63 74 65 64 20 | the.res|tricted |
|00001010| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 27 73 20 5c 63 |environm|ent's \c|
|00001020| 6f 64 65 7b 5f 5f 6d 61 | 69 6e 5f 5f 7d 20 6d 6f |ode{__ma|in__} mo|
|00001030| 64 75 6c 65 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |dule..\e|nd{funcd|
|00001040| 65 73 63 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |esc}">.<|BR>..<P>|
|00001050| 0a 4d 65 74 68 6f 64 73 | 20 77 68 6f 73 65 20 6e |.Methods| whose n|
|00001060| 61 6d 65 73 20 62 65 67 | 69 6e 20 77 69 74 68 20 |ames beg|in with |
|00001070| 73 5f 20 61 72 65 20 73 | 69 6d 69 6c 61 72 20 74 |s_ are s|imilar t|
|00001080| 6f 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 73 0a |o the fu|nctions.|
|00001090| 62 65 67 69 6e 6e 69 6e | 67 20 77 69 74 68 20 72 |beginnin|g with r|
|000010a0| 5f 2c 20 62 75 74 20 74 | 68 65 20 63 6f 64 65 20 |_, but t|he code |
|000010b0| 77 69 6c 6c 20 62 65 20 | 67 72 61 6e 74 65 64 20 |will be |granted |
|000010c0| 61 63 63 65 73 73 20 74 | 6f 0a 72 65 73 74 72 69 |access t|o.restri|
|000010d0| 63 74 65 64 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |cted ver|sions of|
|000010e0| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 49 2f | the sta|ndard I/|
|000010f0| 4f 20 73 74 72 65 61 6e | 73 20 73 79 73 2e 73 74 |O strean|s sys.st|
|00001100| 64 69 6e 2c 0a 73 79 73 | 2e 73 74 64 65 72 72 2c |din,.sys|.stderr,|
|00001110| 20 61 6e 64 20 73 79 73 | 2e 73 74 64 6f 75 74 2e | and sys|.stdout.|
|00001120| 20 20 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d | ..<P>.|<BR>.<IM|
|00001130| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|00001140| 74 3a 20 32 2e 33 38 65 | 78 3b 20 76 65 72 74 69 |t: 2.38e|x; verti|
|00001150| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 34 |cal-alig|n: 176.4|
|00001160| 30 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 31 |0ex; " S|RC="img1|
|00001170| 30 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |0.png". |ALT="\be|
|00001180| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 73 5f |gin{func|desc}{s_|
|00001190| 65 76 61 6c 7d 7b 63 6f | 64 65 7d 0a 5c 76 61 72 |eval}{co|de}.\var|
|000011a0| 7b 63 6f 64 65 7d 20 6d | 75 73 74 20 62 65 20 61 |{code} m|ust be a|
|000011b0| 20 73 74 72 69 6e 67 20 | 63 6f 6e 74 61 69 6e 69 | string |containi|
|000011c0| 6e 67 20 61 20 50 79 74 | 68 6f 6e 20 65 78 70 72 |ng a Pyt|hon expr|
|000011d0| 65 73 73 69 6f 6e 2c 20 | 77 68 69 63 68 20 77 69 |ession, |which wi|
|000011e0| 6c 6c 0a 62 65 20 65 76 | 61 6c 75 61 74 65 64 20 |ll.be ev|aluated |
|000011f0| 69 6e 20 74 68 65 20 72 | 65 73 74 72 69 63 74 65 |in the r|estricte|
|00001200| 64 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 0a 5c |d enviro|nment..\|
|00001210| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 22 3e 0a |end{func|desc}">.|
|00001220| 3c 42 52 3e 0a 0a 3c 50 | 3e 0a 3c 42 52 3e 0a 3c |<BR>..<P|>.<BR>.<|
|00001230| 49 4d 47 0a 20 20 53 54 | 59 4c 45 3d 22 68 65 69 |IMG. ST|YLE="hei|
|00001240| 67 68 74 3a 20 32 2e 31 | 30 65 78 3b 20 76 65 72 |ght: 2.1|0ex; ver|
|00001250| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 31 37 36 |tical-al|ign: 176|
|00001260| 2e 36 38 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.68ex; "| SRC="im|
|00001270| 67 31 31 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |g11.png"|. ALT="\|
|00001280| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00001290| 73 5f 65 78 65 63 7d 7b | 63 6f 64 65 7d 0a 5c 76 |s_exec}{|code}.\v|
|000012a0| 61 72 7b 63 6f 64 65 7d | 20 6d 75 73 74 20 62 65 |ar{code}| must be|
|000012b0| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|000012c0| 6e 69 6e 67 20 6f 6e 65 | 20 6f 72 20 6d 6f 72 2e |ning one| or mor.|
|000012d0| 2e 2e 0a 2e 2e 2e 74 68 | 6f 6e 20 63 6f 64 65 2c |......th|on code,|
|000012e0| 0a 77 68 69 63 68 20 77 | 69 6c 6c 20 62 65 20 65 |.which w|ill be e|
|000012f0| 78 65 63 75 74 65 64 20 | 69 6e 20 74 68 65 20 72 |xecuted |in the r|
|00001300| 65 73 74 72 69 63 74 65 | 64 20 65 6e 76 69 72 6f |estricte|d enviro|
|00001310| 6e 6d 65 6e 74 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |nment..\|end{func|
|00001320| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00001330| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|00001340| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 32 2e 31 |YLE="hei|ght: 2.1|
|00001350| 37 65 78 3b 20 76 65 72 | 74 69 63 61 6c 2d 61 6c |7ex; ver|tical-al|
|00001360| 69 67 6e 3a 20 31 37 36 | 2e 36 38 65 78 3b 20 22 |ign: 176|.68ex; "|
|00001370| 20 53 52 43 3d 22 69 6d | 67 31 32 2e 70 6e 67 22 | SRC="im|g12.png"|
|00001380| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 66 75 |. ALT="\|begin{fu|
|00001390| 6e 63 64 65 73 63 7d 7b | 73 5f 65 78 65 63 66 69 |ncdesc}{|s_execfi|
|000013a0| 6c 65 7d 7b 63 6f 64 65 | 7d 0a 45 78 65 63 75 74 |le}{code|}.Execut|
|000013b0| 65 20 74 68 65 20 50 79 | 74 68 6f 6e 20 63 6f 64 |e the Py|thon cod|
|000013c0| 65 20 63 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 74 |e contai|ned in t|
|000013d0| 68 65 20 66 69 6c 65 20 | 5c 76 61 72 7b 66 69 6c |he file |\var{fil|
|000013e0| 65 6e 61 6d 65 7d 20 69 | 6e 20 74 68 65 0a 72 65 |ename} i|n the.re|
|000013f0| 73 74 72 69 63 74 65 64 | 20 65 6e 76 69 72 6f 6e |stricted| environ|
|00001400| 6d 65 6e 74 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |ment..\e|nd{funcd|
|00001410| 65 73 63 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |esc}">.<|BR>..<P>|
|00001420| 0a 52 45 78 65 63 20 6f | 62 6a 65 63 74 73 20 6d |.RExec o|bjects m|
|00001430| 75 73 74 20 61 6c 73 6f | 20 73 75 70 70 6f 72 74 |ust also| support|
|00001440| 20 76 61 72 69 6f 75 73 | 20 6d 65 74 68 6f 64 73 | various| methods|
|00001450| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 62 65 0a 69 | which w|ill be.i|
|00001460| 6d 70 6c 69 63 69 74 6c | 79 20 63 61 6c 6c 65 64 |mplicitl|y called|
|00001470| 20 62 79 20 63 6f 64 65 | 20 65 78 65 63 75 74 69 | by code| executi|
|00001480| 6e 67 20 69 6e 20 74 68 | 65 20 72 65 73 74 72 69 |ng in th|e restri|
|00001490| 63 74 65 64 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |cted env|ironment|
|000014a0| 2e 0a 4f 76 65 72 72 69 | 64 69 6e 67 20 74 68 65 |..Overri|ding the|
|000014b0| 73 65 20 6d 65 74 68 6f | 64 73 20 69 6e 20 61 20 |se metho|ds in a |
|000014c0| 73 75 62 63 6c 61 73 73 | 20 69 73 20 75 73 65 64 |subclass| is used|
|000014d0| 20 74 6f 20 63 68 61 6e | 67 65 20 74 68 65 20 70 | to chan|ge the p|
|000014e0| 6f 6c 69 63 69 65 73 0a | 65 6e 66 6f 72 63 65 64 |olicies.|enforced|
|000014f0| 20 62 79 20 61 20 72 65 | 73 74 72 69 63 74 65 64 | by a re|stricted|
|00001500| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2e 0a 0a 3c | environ|ment...<|
|00001510| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 20 53 |P>.<BR>.|<IMG. S|
|00001520| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|00001530| 31 37 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |17ex; ve|rtical-a|
|00001540| 6c 69 67 6e 3a 20 31 37 | 36 2e 36 38 65 78 3b 20 |lign: 17|6.68ex; |
|00001550| 22 20 53 52 43 3d 22 69 | 6d 67 31 33 2e 70 6e 67 |" SRC="i|mg13.png|
|00001560| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|00001570| 75 6e 63 64 65 73 63 7d | 7b 72 5f 69 6d 70 6f 72 |uncdesc}|{r_impor|
|00001580| 74 7d 7b 6d 6f 64 75 6c | 65 6e 61 6d 65 5c 6f 70 |t}{modul|ename\op|
|00001590| 74 69 6f 6e 61 6c 7b 5c | 2c 20 67 6c 6f 62 61 6c |tional{\|, global|
|000015a0| 73 5c 2c 20 6c 6f 63 61 | 6c 73 5c 2c 20 66 72 6f |s\, loca|ls\, fro|
|000015b0| 6d 6c 69 73 74 7d 7d 0a | 2e 2e 2e 0a 2e 2e 2e 20 |mlist}}.|....... |
|000015c0| 5c 63 6f 64 65 7b 49 6d | 70 6f 72 74 45 72 72 6f |\code{Im|portErro|
|000015d0| 72 7d 0a 65 78 63 65 70 | 74 69 6f 6e 20 69 66 20 |r}.excep|tion if |
|000015e0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 69 73 20 63 6f |the modu|le is co|
|000015f0| 6e 73 69 64 65 72 65 64 | 20 75 6e 73 61 66 65 2e |nsidered| unsafe.|
|00001600| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 22 |.\end{fu|ncdesc}"|
|00001610| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 3c 42 52 3e |>.<BR>..|<P>.<BR>|
|00001620| 0a 3c 49 4d 47 0a 20 20 | 53 54 59 4c 45 3d 22 68 |.<IMG. |STYLE="h|
|00001630| 65 69 67 68 74 3a 20 32 | 2e 31 37 65 78 3b 20 76 |eight: 2|.17ex; v|
|00001640| 65 72 74 69 63 61 6c 2d | 61 6c 69 67 6e 3a 20 31 |ertical-|align: 1|
|00001650| 37 36 2e 35 35 65 78 3b | 20 22 20 53 52 43 3d 22 |76.55ex;| " SRC="|
|00001660| 69 6d 67 31 34 2e 70 6e | 67 22 0a 20 41 4c 54 3d |img14.pn|g". ALT=|
|00001670| 22 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |"\begin{|funcdesc|
|00001680| 7d 7b 72 5f 6f 70 65 6e | 7d 7b 66 69 6c 65 6e 61 |}{r_open|}{filena|
|00001690| 6d 65 5c 6f 70 74 69 6f | 6e 61 6c 7b 5c 2c 20 6d |me\optio|nal{\, m|
|000016a0| 6f 64 65 5c 6f 70 74 69 | 6f 6e 61 6c 7b 5c 2c 20 |ode\opti|onal{\, |
|000016b0| 62 75 66 73 69 7a 65 7d | 7d 7d 0a 4d 65 74 68 6f |bufsize}|}}.Metho|
|000016c0| 64 2e 2e 2e 0a 2e 2e 2e | 65 6c 6f 77 20 66 6f 72 |d.......|elow for|
|000016d0| 20 61 6e 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 | an impl|ementati|
|000016e0| 6f 6e 20 6f 66 20 61 20 | 6c 65 73 73 20 72 65 73 |on of a |less res|
|000016f0| 74 72 69 63 74 69 76 65 | 0a 5c 63 6f 64 65 7b 72 |trictive|.\code{r|
|00001700| 5f 6f 70 65 6e 28 29 7d | 2e 0a 5c 65 6e 64 7b 66 |_open()}|..\end{f|
|00001710| 75 6e 63 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |uncdesc}|">.<BR>.|
|00001720| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00001730| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00001740| 32 2e 33 38 65 78 3b 20 | 76 65 72 74 69 63 61 6c |2.38ex; |vertical|
|00001750| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 32 36 65 78 |-align: |176.26ex|
|00001760| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 31 35 2e 70 |; " SRC=|"img15.p|
|00001770| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00001780| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 72 5f 72 65 6c |{funcdes|c}{r_rel|
|00001790| 6f 61 64 7d 7b 6d 6f 64 | 75 6c 65 7d 0a 52 65 6c |oad}{mod|ule}.Rel|
|000017a0| 6f 61 64 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 6f |oad the |module o|
|000017b0| 62 6a 65 63 74 20 5c 76 | 61 72 7b 6d 6f 64 75 6c |bject \v|ar{modul|
|000017c0| 65 7d 2c 20 72 65 2d 70 | 61 72 73 69 6e 67 20 61 |e}, re-p|arsing a|
|000017d0| 6e 64 20 72 65 2d 69 6e | 69 74 69 61 6c 69 7a 69 |nd re-in|itializi|
|000017e0| 6e 67 20 69 74 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |ng it..\|end{func|
|000017f0| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00001800| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|00001810| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 32 2e 31 |YLE="hei|ght: 2.1|
|00001820| 30 65 78 3b 20 76 65 72 | 74 69 63 61 6c 2d 61 6c |0ex; ver|tical-al|
|00001830| 69 67 6e 3a 20 31 37 36 | 2e 35 35 65 78 3b 20 22 |ign: 176|.55ex; "|
|00001840| 20 53 52 43 3d 22 69 6d | 67 31 36 2e 70 6e 67 22 | SRC="im|g16.png"|
|00001850| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 66 75 |. ALT="\|begin{fu|
|00001860| 6e 63 64 65 73 63 7d 7b | 72 5f 75 6e 6c 6f 61 64 |ncdesc}{|r_unload|
|00001870| 7d 7b 6d 6f 64 75 6c 65 | 7d 0a 55 6e 6c 6f 61 64 |}{module|}.Unload|
|00001880| 20 74 68 65 20 6d 6f 64 | 75 6c 65 20 6f 62 6a 65 | the mod|ule obje|
|00001890| 63 74 20 5c 76 61 72 7b | 6d 6f 64 75 6c 65 7d 20 |ct \var{|module} |
|000018a0| 28 69 2e 65 2e 2c 20 2e | 2e 2e 0a 2e 2e 2e 66 72 |(i.e., .|......fr|
|000018b0| 6f 6d 20 74 68 65 0a 72 | 65 73 74 72 69 63 74 65 |om the.r|estricte|
|000018c0| 64 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 27 73 20 |d enviro|nment's |
|000018d0| 5c 63 6f 64 65 7b 73 79 | 73 2e 6d 6f 64 75 6c 65 |\code{sy|s.module|
|000018e0| 73 7d 20 64 69 63 74 69 | 6f 6e 61 72 79 29 2e 0a |s} dicti|onary)..|
|000018f0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 22 3e |\end{fun|cdesc}">|
|00001900| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 41 6e 64 20 74 |.<BR>..<|P>.And t|
|00001910| 68 65 69 72 20 65 71 75 | 69 76 61 6c 65 6e 74 73 |heir equ|ivalents|
|00001920| 20 77 69 74 68 20 61 63 | 63 65 73 73 20 74 6f 20 | with ac|cess to |
|00001930| 72 65 73 74 72 69 63 74 | 65 64 20 73 74 61 6e 64 |restrict|ed stand|
|00001940| 61 72 64 20 49 2f 4f 20 | 73 74 72 65 61 6d 73 3a |ard I/O |streams:|
|00001950| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|00001960| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|00001970| 20 32 2e 33 38 65 78 3b | 20 76 65 72 74 69 63 61 | 2.38ex;| vertica|
|00001980| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 34 30 65 |l-align:| 176.40e|
|00001990| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 31 37 2e |x; " SRC|="img17.|
|000019a0| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|000019b0| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 73 5f 69 6d |n{funcde|sc}{s_im|
|000019c0| 70 6f 72 74 7d 7b 6d 6f | 64 75 6c 65 6e 61 6d 65 |port}{mo|dulename|
|000019d0| 5c 6f 70 74 69 6f 6e 61 | 6c 7b 5c 2c 20 67 6c 6f |\optiona|l{\, glo|
|000019e0| 62 61 6c 73 2c 20 6c 6f | 63 61 6c 73 2c 20 66 72 |bals, lo|cals, fr|
|000019f0| 6f 6d 6c 69 73 74 7d 7d | 0a 49 6d 2e 2e 2e 0a 2e |omlist}}|.Im.....|
|00001a00| 2e 2e 20 5c 63 6f 64 65 | 7b 49 6d 70 6f 72 74 45 |.. \code|{ImportE|
|00001a10| 72 72 6f 72 7d 0a 65 78 | 63 65 70 74 69 6f 6e 20 |rror}.ex|ception |
|00001a20| 69 66 20 74 68 65 20 6d | 6f 64 75 6c 65 20 69 73 |if the m|odule is|
|00001a30| 20 63 6f 6e 73 69 64 65 | 72 65 64 20 75 6e 73 61 | conside|red unsa|
|00001a40| 66 65 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |fe..\end|{funcdes|
|00001a50| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 3c |c}">.<BR|>..<P>.<|
|00001a60| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|00001a70| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 31 37 65 78 |="height|: 2.17ex|
|00001a80| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|00001a90| 3a 20 31 37 36 2e 36 38 | 65 78 3b 20 22 20 53 52 |: 176.68|ex; " SR|
|00001aa0| 43 3d 22 69 6d 67 31 38 | 2e 70 6e 67 22 0a 20 41 |C="img18|.png". A|
|00001ab0| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|00001ac0| 65 73 63 7d 7b 73 5f 72 | 65 6c 6f 61 64 7d 7b 6d |esc}{s_r|eload}{m|
|00001ad0| 6f 64 75 6c 65 7d 0a 52 | 65 6c 6f 61 64 20 74 68 |odule}.R|eload th|
|00001ae0| 65 20 6d 6f 64 75 6c 65 | 20 6f 62 6a 65 63 74 20 |e module| object |
|00001af0| 5c 76 61 72 7b 6d 6f 64 | 75 6c 65 7d 2c 20 72 65 |\var{mod|ule}, re|
|00001b00| 2d 70 61 72 73 69 6e 67 | 20 61 6e 64 20 72 65 2d |-parsing| and re-|
|00001b10| 69 6e 69 74 69 61 6c 69 | 7a 69 6e 67 20 69 74 2e |initiali|zing it.|
|00001b20| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 22 |.\end{fu|ncdesc}"|
|00001b30| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 3c 42 52 3e |>.<BR>..|<P>.<BR>|
|00001b40| 0a 3c 49 4d 47 0a 20 20 | 53 54 59 4c 45 3d 22 68 |.<IMG. |STYLE="h|
|00001b50| 65 69 67 68 74 3a 20 32 | 2e 31 30 65 78 3b 20 76 |eight: 2|.10ex; v|
|00001b60| 65 72 74 69 63 61 6c 2d | 61 6c 69 67 6e 3a 20 31 |ertical-|align: 1|
|00001b70| 37 36 2e 36 38 65 78 3b | 20 22 20 53 52 43 3d 22 |76.68ex;| " SRC="|
|00001b80| 69 6d 67 31 39 2e 70 6e | 67 22 0a 20 41 4c 54 3d |img19.pn|g". ALT=|
|00001b90| 22 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |"\begin{|funcdesc|
|00001ba0| 7d 7b 73 5f 75 6e 6c 6f | 61 64 7d 7b 6d 6f 64 75 |}{s_unlo|ad}{modu|
|00001bb0| 6c 65 7d 0a 55 6e 6c 6f | 61 64 20 74 68 65 20 6d |le}.Unlo|ad the m|
|00001bc0| 6f 64 75 6c 65 20 6f 62 | 6a 65 63 74 20 5c 76 61 |odule ob|ject \va|
|00001bd0| 72 7b 6d 6f 64 75 6c 65 | 7d 2e 0a 5c 65 6e 64 7b |r{module|}..\end{|
|00001be0| 66 75 6e 63 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |funcdesc|}">.<BR>|
|00001bf0| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 3c 48 52 3e 0a 3c |..<P>.<B|R><HR>.<|
|00001c00| 21 2d 2d 54 61 62 6c 65 | 20 6f 66 20 43 68 69 6c |!--Table| of Chil|
|00001c10| 64 2d 4c 69 6e 6b 73 2d | 2d 3e 0a 3c 41 20 49 44 |d-Links-|->.<A ID|
|00001c20| 3d 22 43 48 49 4c 44 5f | 4c 49 4e 4b 53 22 3e 3c |="CHILD_|LINKS"><|
|00001c30| 53 54 52 4f 4e 47 3e 53 | 75 62 73 65 63 74 69 6f |STRONG>S|ubsectio|
|00001c40| 6e 73 3c 2f 53 54 52 4f | 4e 47 3e 3c 2f 41 3e 0a |ns</STRO|NG></A>.|
|00001c50| 0a 3c 55 4c 3e 0a 3c 4c | 49 3e 3c 41 20 4e 41 4d |.<UL>.<L|I><A NAM|
|00001c60| 45 3d 22 74 65 78 32 68 | 74 6d 6c 33 22 20 48 52 |E="tex2h|tml3" HR|
|00001c70| 45 46 3d 22 6e 6f 64 65 | 32 5f 63 74 2e 68 74 6d |EF="node|2_ct.htm|
|00001c80| 6c 22 20 54 41 52 47 45 | 54 3d 22 63 6f 6e 74 65 |l" TARGE|T="conte|
|00001c90| 6e 74 73 22 3e 3c 53 4d | 41 4c 4c 3e 41 6e 20 65 |nts"><SM|ALL>An e|
|00001ca0| 78 61 6d 70 6c 65 3c 2f | 53 4d 41 4c 4c 3e 3c 2f |xample</|SMALL></|
|00001cb0| 41 3e 0a 3c 2f 55 4c 3e | 0a 3c 21 2d 2d 45 6e 64 |A>.</UL>|.<!--End|
|00001cc0| 20 6f 66 20 54 61 62 6c | 65 20 6f 66 20 43 68 69 | of Tabl|e of Chi|
|00001cd0| 6c 64 2d 4c 69 6e 6b 73 | 2d 2d 3e 0a 0a 3c 48 52 |ld-Links|-->..<HR|
|00001ce0| 3e 0a 0a 3c 2f 42 4f 44 | 59 3e 0a 3c 2f 48 54 4d |>..</BOD|Y>.</HTM|
|00001cf0| 4c 3e 0a | |L>. | |
+--------+-------------------------+-------------------------+--------+--------+