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 6f 73 | 3c 2f 54 49 54 4c 45 3e |odule os|</TITLE>|
|000000c0| 0a 0a 3c 4d 45 54 41 20 | 48 54 54 50 2d 45 51 55 |..<META |HTTP-EQU|
|000000d0| 49 56 3d 22 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |IV="Cont|ent-Type|
|000000e0| 22 20 43 4f 4e 54 45 4e | 54 3d 22 74 65 78 74 2f |" CONTEN|T="text/|
|000000f0| 68 74 6d 6c 3b 20 63 68 | 61 72 73 65 74 3d 75 74 |html; ch|arset=ut|
|00000100| 66 2d 38 22 3e 0a 3c 4d | 45 54 41 20 4e 41 4d 45 |f-8">.<M|ETA NAME|
|00000110| 3d 22 76 69 65 77 70 6f | 72 74 22 20 43 4f 4e 54 |="viewpo|rt" CONT|
|00000120| 45 4e 54 3d 22 77 69 64 | 74 68 3d 64 65 76 69 63 |ENT="wid|th=devic|
|00000130| 65 2d 77 69 64 74 68 2c | 20 69 6e 69 74 69 61 6c |e-width,| initial|
|00000140| 2d 73 63 61 6c 65 3d 31 | 2e 30 22 3e 0a 3c 4d 45 |-scale=1|.0">.<ME|
|00000150| 54 41 20 4e 41 4d 45 3d | 22 47 65 6e 65 72 61 74 |TA NAME=|"Generat|
|00000160| 6f 72 22 20 43 4f 4e 54 | 45 4e 54 3d 22 4c 61 54 |or" CONT|ENT="LaT|
|00000170| 65 58 32 48 54 4d 4c 20 | 76 32 30 32 32 22 3e 0a |eX2HTML |v2022">.|
|00000180| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 53 54 59 4c |.<LINK R|EL="STYL|
|00000190| 45 53 48 45 45 54 22 20 | 48 52 45 46 3d 22 74 65 |ESHEET" |HREF="te|
|000001a0| 78 2e 63 73 73 22 3e 0a | 0a 3c 4c 49 4e 4b 20 52 |x.css">.|.<LINK R|
|000001b0| 45 4c 3d 22 70 72 65 76 | 69 6f 75 73 22 20 48 52 |EL="prev|ious" HR|
|000001c0| 45 46 3d 22 74 65 78 5f | 6d 6e 2e 68 74 6d 6c 22 |EF="tex_|mn.html"|
|000001d0| 3e 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 75 70 22 |>.<LINK |REL="up"|
|000001e0| 20 48 52 45 46 3d 22 74 | 65 78 5f 6d 6e 2e 68 74 | HREF="t|ex_mn.ht|
|000001f0| 6d 6c 22 3e 0a 3c 2f 48 | 45 41 44 3e 0a 20 0a 3c |ml">.</H|EAD>. .<|
|00000200| 42 4f 44 59 20 62 67 63 | 6f 6c 6f 72 3d 22 23 66 |BODY bgc|olor="#f|
|00000210| 66 66 66 66 66 22 20 74 | 65 78 74 3d 22 23 30 30 |fffff" t|ext="#00|
|00000220| 30 30 30 30 22 20 6c 69 | 6e 6b 3d 22 23 39 39 34 |0000" li|nk="#994|
|00000230| 34 45 45 22 20 76 6c 69 | 6e 6b 3d 22 23 30 30 30 |4EE" vli|nk="#000|
|00000240| 30 66 66 22 20 61 6c 69 | 6e 6b 3d 22 23 30 30 66 |0ff" ali|nk="#00f|
|00000250| 66 30 30 22 3e 0a 0a 3c | 48 31 3e 3c 41 20 49 44 |f00">..<|H1><A ID|
|00000260| 3d 22 53 45 43 54 49 4f | 4e 30 30 30 31 30 30 30 |="SECTIO|N0001000|
|00000270| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 22 3e 0a |00000000|00000">.|
|00000280| 53 74 61 6e 64 61 72 64 | 20 4d 6f 64 75 6c 65 20 |Standard| Module |
|00000290| 6f 73 3c 2f 41 3e 0a 3c | 2f 48 31 3e 0a 0a 3c 50 |os</A>.<|/H1>..<P|
|000002a0| 3e 0a 6f 73 0a 54 68 69 | 73 20 6d 6f 64 75 6c 65 |>.os.Thi|s module|
|000002b0| 20 70 72 6f 76 69 64 65 | 73 20 61 20 6d 6f 72 65 | provide|s a more|
|000002c0| 20 70 6f 72 74 61 62 6c | 65 20 77 61 79 20 6f 66 | portabl|e way of|
|000002d0| 20 75 73 69 6e 67 20 6f | 70 65 72 61 74 69 6e 67 | using o|perating|
|000002e0| 20 73 79 73 74 65 6d 0a | 28 4f 53 29 20 64 65 70 | system.|(OS) dep|
|000002f0| 65 6e 64 65 6e 74 20 66 | 75 6e 63 74 69 6f 6e 61 |endent f|unctiona|
|00000300| 6c 69 74 79 20 74 68 61 | 6e 20 69 6d 70 6f 72 74 |lity tha|n import|
|00000310| 69 6e 67 20 61 6e 20 4f | 53 20 64 65 70 65 6e 64 |ing an O|S depend|
|00000320| 65 6e 74 20 62 75 69 6c | 74 2d 69 6e 0a 6d 6f 64 |ent buil|t-in.mod|
|00000330| 75 6c 65 20 6c 69 6b 65 | 20 70 6f 73 69 78 2e 0a |ule like| posix..|
|00000340| 0a 3c 50 3e 0a 57 68 65 | 6e 20 74 68 65 20 6f 70 |.<P>.Whe|n the op|
|00000350| 74 69 6f 6e 61 6c 20 62 | 75 69 6c 74 2d 69 6e 20 |tional b|uilt-in |
|00000360| 6d 6f 64 75 6c 65 20 70 | 6f 73 69 78 20 69 73 20 |module p|osix is |
|00000370| 61 76 61 69 6c 61 62 6c | 65 2c 20 74 68 69 73 0a |availabl|e, this.|
|00000380| 6d 6f 64 75 6c 65 20 65 | 78 70 6f 72 74 73 20 74 |module e|xports t|
|00000390| 68 65 20 73 61 6d 65 20 | 66 75 6e 63 74 69 6f 6e |he same |function|
|000003a0| 73 20 61 6e 64 20 64 61 | 74 61 20 61 73 20 70 6f |s and da|ta as po|
|000003b0| 73 69 78 3b 20 6f 74 68 | 65 72 77 69 73 65 2c 0a |six; oth|erwise,.|
|000003c0| 69 74 20 73 65 61 72 63 | 68 65 73 20 66 6f 72 20 |it searc|hes for |
|000003d0| 61 6e 20 4f 53 20 64 65 | 70 65 6e 64 65 6e 74 20 |an OS de|pendent |
|000003e0| 62 75 69 6c 74 2d 69 6e | 20 6d 6f 64 75 6c 65 20 |built-in| module |
|000003f0| 6c 69 6b 65 20 6d 61 63 | 20 61 6e 64 0a 65 78 70 |like mac| and.exp|
|00000400| 6f 72 74 73 20 74 68 65 | 20 73 61 6d 65 20 66 75 |orts the| same fu|
|00000410| 6e 63 74 69 6f 6e 73 20 | 61 6e 64 20 64 61 74 61 |nctions |and data|
|00000420| 20 61 73 20 66 6f 75 6e | 64 20 74 68 65 72 65 2e | as foun|d there.|
|00000430| 20 20 54 68 65 20 64 65 | 73 69 67 6e 20 6f 66 20 | The de|sign of |
|00000440| 61 6c 6c 0a 50 79 74 68 | 6f 6e 27 73 20 62 75 69 |all.Pyth|on's bui|
|00000450| 6c 74 2d 69 6e 20 4f 53 | 20 64 65 70 65 6e 64 65 |lt-in OS| depende|
|00000460| 6e 74 20 6d 6f 64 75 6c | 65 73 20 69 73 20 73 75 |nt modul|es is su|
|00000470| 63 68 20 74 68 61 74 20 | 61 73 20 6c 6f 6e 67 20 |ch that |as long |
|00000480| 61 73 20 74 68 65 20 73 | 61 6d 65 0a 66 75 6e 63 |as the s|ame.func|
|00000490| 74 69 6f 6e 61 6c 69 74 | 79 20 69 73 20 61 76 61 |tionalit|y is ava|
|000004a0| 69 6c 61 62 6c 65 2c 20 | 69 74 20 75 73 65 73 20 |ilable, |it uses |
|000004b0| 74 68 65 20 73 61 6d 65 | 20 69 6e 74 65 72 66 61 |the same| interfa|
|000004c0| 63 65 3b 20 65 2e 67 2e | 2c 20 74 68 65 0a 66 75 |ce; e.g.|, the.fu|
|000004d0| 6e 63 74 69 6f 6e 20 6f | 73 2e 73 74 61 74 28 66 |nction o|s.stat(f|
|000004e0| 69 6c 65 29 20 72 65 74 | 75 72 6e 73 20 73 74 61 |ile) ret|urns sta|
|000004f0| 74 20 69 6e 66 6f 20 61 | 62 6f 75 74 20 61 20 66 |t info a|bout a f|
|00000500| 69 6c 65 20 69 6e 20 61 | 0a 66 6f 72 6d 61 74 20 |ile in a|.format |
|00000510| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|00000520| 74 68 65 20 50 4f 53 49 | 58 20 69 6e 74 65 72 66 |the POSI|X interf|
|00000530| 61 63 65 2e 0a 0a 3c 50 | 3e 0a 45 78 74 65 6e 73 |ace...<P|>.Extens|
|00000540| 69 6f 6e 73 20 70 65 63 | 75 6c 69 61 72 20 74 6f |ions pec|uliar to|
|00000550| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 4f 53 | a parti|cular OS|
|00000560| 20 61 72 65 20 61 6c 73 | 6f 20 61 76 61 69 6c 61 | are als|o availa|
|00000570| 62 6c 65 20 74 68 72 6f | 75 67 68 20 74 68 65 0a |ble thro|ugh the.|
|00000580| 6f 73 20 6d 6f 64 75 6c | 65 2c 20 62 75 74 20 75 |os modul|e, but u|
|00000590| 73 69 6e 67 20 74 68 65 | 6d 20 69 73 20 6f 66 20 |sing the|m is of |
|000005a0| 63 6f 75 72 73 65 20 61 | 20 74 68 72 65 61 74 20 |course a| threat |
|000005b0| 74 6f 20 70 6f 72 74 61 | 62 69 6c 69 74 79 21 0a |to porta|bility!.|
|000005c0| 0a 3c 50 3e 0a 4e 6f 74 | 65 20 74 68 61 74 20 61 |.<P>.Not|e that a|
|000005d0| 66 74 65 72 20 74 68 65 | 20 66 69 72 73 74 20 74 |fter the| first t|
|000005e0| 69 6d 65 20 6f 73 20 69 | 73 20 69 6d 70 6f 72 74 |ime os i|s import|
|000005f0| 65 64 2c 20 74 68 65 72 | 65 20 69 73 20 3c 49 3e |ed, ther|e is <I>|
|00000600| 6e 6f 3c 2f 49 3e 0a 70 | 65 72 66 6f 72 6d 61 6e |no</I>.p|erforman|
|00000610| 63 65 20 70 65 6e 61 6c | 74 79 20 69 6e 20 75 73 |ce penal|ty in us|
|00000620| 69 6e 67 20 66 75 6e 63 | 74 69 6f 6e 73 20 66 72 |ing func|tions fr|
|00000630| 6f 6d 20 6f 73 20 69 6e | 73 74 65 61 64 20 6f 66 |om os in|stead of|
|00000640| 0a 64 69 72 65 63 74 6c | 79 20 66 72 6f 6d 20 74 |.directl|y from t|
|00000650| 68 65 20 4f 53 20 64 65 | 70 65 6e 64 65 6e 74 20 |he OS de|pendent |
|00000660| 62 75 69 6c 74 2d 69 6e | 20 6d 6f 64 75 6c 65 2c |built-in| module,|
|00000670| 20 73 6f 20 74 68 65 72 | 65 20 73 68 6f 75 6c 64 | so ther|e should|
|00000680| 20 62 65 0a 3c 49 3e 6e | 6f 3c 2f 49 3e 20 72 65 | be.<I>n|o</I> re|
|00000690| 61 73 6f 6e 20 6e 6f 74 | 20 74 6f 20 75 73 65 20 |ason not| to use |
|000006a0| 6f 73 21 0a 0a 3c 50 3e | 0a 49 6e 20 61 64 64 69 |os!..<P>|.In addi|
|000006b0| 74 69 6f 6e 20 74 6f 20 | 77 68 61 74 65 76 65 72 |tion to |whatever|
|000006c0| 20 74 68 65 20 63 6f 72 | 72 65 63 74 20 4f 53 20 | the cor|rect OS |
|000006d0| 64 65 70 65 6e 64 65 6e | 74 20 6d 6f 64 75 6c 65 |dependen|t module|
|000006e0| 20 65 78 70 6f 72 74 73 | 2c 20 74 68 65 0a 66 6f | exports|, the.fo|
|000006f0| 6c 6c 6f 77 69 6e 67 20 | 76 61 72 69 61 62 6c 65 |llowing |variable|
|00000700| 73 20 61 6e 64 20 66 75 | 6e 63 74 69 6f 6e 73 20 |s and fu|nctions |
|00000710| 61 72 65 20 61 6c 77 61 | 79 73 20 65 78 70 6f 72 |are alwa|ys expor|
|00000720| 74 65 64 20 62 79 20 6f | 73 3a 0a 0a 3c 50 3e 0a |ted by o|s:..<P>.|
|00000730| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00000740| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000750| 31 39 36 2e 32 35 65 78 | 3b 20 76 65 72 74 69 63 |196.25ex|; vertic|
|00000760| 61 6c 2d 61 6c 69 67 6e | 3a 20 2d 30 2e 35 37 65 |al-align|: -0.57e|
|00000770| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 31 2e 70 |x; " SRC|="img1.p|
|00000780| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00000790| 7b 64 61 74 61 64 65 73 | 63 7d 7b 6e 61 6d 65 7d |{datades|c}{name}|
|000007a0| 0a 54 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |.The nam|e of the|
|000007b0| 20 4f 53 20 64 65 70 65 | 6e 64 65 6e 74 20 6d 6f | OS depe|ndent mo|
|000007c0| 64 75 6c 65 20 69 6d 70 | 6f 72 74 65 64 2e 20 54 |dule imp|orted. T|
|000007d0| 68 65 20 66 6f 6c 6c 6f | 77 69 2e 2e 2e 0a 2e 2e |he follo|wi......|
|000007e0| 2e 69 73 74 65 72 65 64 | 3a 20 5c 63 6f 64 65 7b |.istered|: \code{|
|000007f0| 27 70 6f 73 69 78 27 7d | 2c 20 5c 63 6f 64 65 7b |'posix'}|, \code{|
|00000800| 27 6e 74 27 7d 2c 0a 5c | 63 6f 64 65 7b 27 64 6f |'nt'},.\|code{'do|
|00000810| 73 27 7d 2c 20 5c 63 6f | 64 65 7b 27 6d 61 63 27 |s'}, \co|de{'mac'|
|00000820| 7d 2e 0a 5c 65 6e 64 7b | 64 61 74 61 64 65 73 63 |}..\end{|datadesc|
|00000830| 7d 22 3e 0a 3c 42 52 3e | 0a 0a 3c 50 3e 0a 3c 42 |}">.<BR>|..<P>.<B|
|00000840| 52 3e 0a 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |R>.<IMG.| STYLE=|
|00000850| 22 68 65 69 67 68 74 3a | 20 32 2e 31 37 65 78 3b |"height:| 2.17ex;|
|00000860| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|00000870| 20 31 37 36 2e 35 35 65 | 78 3b 20 22 20 53 52 43 | 176.55e|x; " SRC|
|00000880| 3d 22 69 6d 67 32 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img2.p|ng". ALT|
|00000890| 3d 22 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |="\begin|{datades|
|000008a0| 63 7d 7b 70 61 74 68 7d | 0a 54 68 65 20 63 6f 72 |c}{path}|.The cor|
|000008b0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 4f 53 20 64 65 |respondi|ng OS de|
|000008c0| 70 65 6e 64 65 6e 74 20 | 73 74 61 6e 64 61 72 64 |pendent |standard|
|000008d0| 20 6d 6f 64 75 6c 65 20 | 66 6f 72 20 70 61 74 68 | module |for path|
|000008e0| 6e 61 2e 2e 2e 0a 2e 2e | 2e 65 6e 74 20 74 6f 20 |na......|.ent to |
|000008f0| 62 75 74 0a 6d 6f 72 65 | 20 70 6f 72 74 61 62 6c |but.more| portabl|
|00000900| 65 20 74 68 61 6e 20 5c | 63 6f 64 65 7b 70 6f 73 |e than \|code{pos|
|00000910| 69 78 70 61 74 68 2e 73 | 70 6c 69 74 28 5c 76 61 |ixpath.s|plit(\va|
|00000920| 72 7b 66 69 6c 65 7d 29 | 7d 2e 0a 5c 65 6e 64 7b |r{file})|}..\end{|
|00000930| 64 61 74 61 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |datadesc|}">.<BR>|
|00000940| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|00000950| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|00000960| 20 32 2e 33 38 65 78 3b | 20 76 65 72 74 69 63 61 | 2.38ex;| vertica|
|00000970| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 34 30 65 |l-align:| 176.40e|
|00000980| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 33 2e 70 |x; " SRC|="img3.p|
|00000990| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|000009a0| 7b 64 61 74 61 64 65 73 | 63 7d 7b 63 75 72 64 69 |{datades|c}{curdi|
|000009b0| 72 7d 0a 54 68 65 20 63 | 6f 6e 73 74 61 6e 74 20 |r}.The c|onstant |
|000009c0| 73 74 72 69 6e 67 20 75 | 73 65 64 20 62 79 20 74 |string u|sed by t|
|000009d0| 68 65 20 4f 53 20 74 6f | 20 72 65 66 65 72 20 74 |he OS to| refer t|
|000009e0| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 69 |o the cu|rrent di|
|000009f0| 72 65 63 74 6f 72 79 2c | 0a 65 2e 67 2e 20 5c 63 |rectory,|.e.g. \c|
|00000a00| 6f 64 65 7b 27 2e 27 7d | 20 66 6f 72 20 50 4f 53 |ode{'.'}| for POS|
|00000a10| 49 58 20 6f 72 20 5c 63 | 6f 64 65 7b 27 3a 27 7d |IX or \c|ode{':'}|
|00000a20| 20 66 6f 72 20 74 68 65 | 20 4d 61 63 2e 0a 5c 65 | for the| Mac..\e|
|00000a30| 6e 64 7b 64 61 74 61 64 | 65 73 63 7d 22 3e 0a 3c |nd{datad|esc}">.<|
|00000a40| 42 52 3e 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |BR>..<P>|.<BR>.<I|
|00000a50| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00000a60| 68 74 3a 20 32 2e 31 37 | 65 78 3b 20 76 65 72 74 |ht: 2.17|ex; vert|
|00000a70| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00000a80| 36 38 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |68ex; " |SRC="img|
|00000a90| 34 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |4.png". |ALT="\be|
|00000aa0| 67 69 6e 7b 64 61 74 61 | 64 65 73 63 7d 7b 70 61 |gin{data|desc}{pa|
|00000ab0| 72 64 69 72 7d 0a 54 68 | 65 20 63 6f 6e 73 74 61 |rdir}.Th|e consta|
|00000ac0| 6e 74 20 73 74 72 69 6e | 67 20 75 73 65 64 20 62 |nt strin|g used b|
|00000ad0| 79 20 74 68 65 20 4f 53 | 20 74 6f 20 72 65 66 65 |y the OS| to refe|
|00000ae0| 72 20 74 6f 20 74 68 65 | 20 70 61 72 65 6e 74 20 |r to the| parent |
|00000af0| 64 69 72 65 63 74 6f 72 | 79 2c 0a 65 2e 67 2e 20 |director|y,.e.g. |
|00000b00| 5c 63 6f 64 65 7b 27 2e | 2e 27 7d 20 66 6f 72 20 |\code{'.|.'} for |
|00000b10| 50 4f 53 49 58 20 6f 72 | 20 5c 63 6f 64 65 7b 27 |POSIX or| \code{'|
|00000b20| 3a 3a 27 7d 20 66 6f 72 | 20 74 68 65 20 4d 61 63 |::'} for| the Mac|
|00000b30| 2e 0a 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|00000b40| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 3c 42 52 |">.<BR>.|.<P>.<BR|
|00000b50| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00000b60| 68 65 69 67 68 74 3a 20 | 32 2e 31 37 65 78 3b 20 |height: |2.17ex; |
|00000b70| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00000b80| 31 37 36 2e 35 35 65 78 | 3b 20 22 20 53 52 43 3d |176.55ex|; " SRC=|
|00000b90| 22 69 6d 67 35 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img5.pn|g". ALT=|
|00000ba0| 22 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |"\begin{|datadesc|
|00000bb0| 7d 7b 73 65 70 7d 0a 54 | 68 65 20 63 68 61 72 61 |}{sep}.T|he chara|
|00000bc0| 63 74 65 72 20 75 73 65 | 64 20 62 79 20 74 68 65 |cter use|d by the|
|00000bd0| 20 4f 53 20 74 6f 20 73 | 65 70 61 72 61 74 65 20 | OS to s|eparate |
|00000be0| 70 61 74 68 6e 61 6d 65 | 20 63 6f 6d 70 6f 6e 65 |pathname| compone|
|00000bf0| 6e 2e 2e 2e 0a 2e 2e 2e | 6c 69 74 28 29 7d 20 61 |n.......|lit()} a|
|00000c00| 6e 64 20 5c 63 6f 64 65 | 7b 6f 73 2e 70 61 74 68 |nd \code|{os.path|
|00000c10| 2e 6a 6f 69 6e 28 29 7d | 2d 2d 2d 62 75 74 20 69 |.join()}|---but i|
|00000c20| 74 20 69 73 0a 6f 63 63 | 61 73 69 6f 6e 61 6c 6c |t is.occ|asionall|
|00000c30| 79 20 75 73 65 66 75 6c | 2e 0a 5c 65 6e 64 7b 64 |y useful|..\end{d|
|00000c40| 61 74 61 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |atadesc}|">.<BR>.|
|00000c50| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00000c60| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000c70| 32 2e 33 38 65 78 3b 20 | 76 65 72 74 69 63 61 6c |2.38ex; |vertical|
|00000c80| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 32 37 65 78 |-align: |176.27ex|
|00000c90| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 36 2e 70 6e |; " SRC=|"img6.pn|
|00000ca0| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00000cb0| 64 61 74 61 64 65 73 63 | 7d 7b 70 61 74 68 73 65 |datadesc|}{pathse|
|00000cc0| 70 7d 0a 54 68 65 20 63 | 68 61 72 61 63 74 65 72 |p}.The c|haracter|
|00000cd0| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 61 6c 6c 79 20 | convent|ionally |
|00000ce0| 75 73 65 64 20 62 79 20 | 74 68 65 20 4f 53 20 74 |used by |the OS t|
|00000cf0| 6f 20 73 65 70 61 72 61 | 74 2e 2e 2e 0a 2e 2e 2e |o separa|t.......|
|00000d00| 64 65 7b 5c 24 50 41 54 | 48 7d 29 2c 20 65 2e 67 |de{\$PAT|H}), e.g|
|00000d10| 2e 5c 20 5c 63 6f 64 65 | 7b 27 3a 27 7d 20 66 6f |.\ \code|{':'} fo|
|00000d20| 72 20 50 4f 53 49 58 20 | 6f 72 0a 5c 63 6f 64 65 |r POSIX |or.\code|
|00000d30| 7b 27 3b 27 7d 20 66 6f | 72 20 4d 53 2d 44 4f 53 |{';'} fo|r MS-DOS|
|00000d40| 2e 0a 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|00000d50| 22 3e 0a 3c 42 52 3e 0a | 0a 3c 50 3e 0a 3c 42 52 |">.<BR>.|.<P>.<BR|
|00000d60| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00000d70| 68 65 69 67 68 74 3a 20 | 32 2e 33 38 65 78 3b 20 |height: |2.38ex; |
|00000d80| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00000d90| 31 37 36 2e 32 37 65 78 | 3b 20 22 20 53 52 43 3d |176.27ex|; " SRC=|
|00000da0| 22 69 6d 67 37 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img7.pn|g". ALT=|
|00000db0| 22 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |"\begin{|datadesc|
|00000dc0| 7d 7b 64 65 66 70 61 74 | 68 7d 0a 54 68 65 20 64 |}{defpat|h}.The d|
|00000dd0| 65 66 61 75 6c 74 20 73 | 65 61 72 63 68 20 70 61 |efault s|earch pa|
|00000de0| 74 68 20 75 73 65 64 20 | 62 79 20 5c 63 6f 64 65 |th used |by \code|
|00000df0| 7b 6f 73 2e 65 78 65 63 | 2a 70 2a 28 29 7d 20 69 |{os.exec|*p*()} i|
|00000e00| 66 20 74 68 65 20 65 6e | 76 69 72 6f 6e 6d 65 6e |f the en|vironmen|
|00000e10| 74 0a 64 6f 65 73 6e 27 | 74 20 68 61 76 65 20 61 |t.doesn'|t have a|
|00000e20| 20 5c 63 6f 64 65 7b 27 | 50 41 54 48 27 7d 20 6b | \code{'|PATH'} k|
|00000e30| 65 79 2e 0a 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |ey..\end|{datades|
|00000e40| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 3c |c}">.<BR|>..<P>.<|
|00000e50| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|00000e60| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 33 38 65 78 |="height|: 2.38ex|
|00000e70| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|00000e80| 3a 20 31 37 36 2e 32 37 | 65 78 3b 20 22 20 53 52 |: 176.27|ex; " SR|
|00000e90| 43 3d 22 69 6d 67 38 2e | 70 6e 67 22 0a 20 41 4c |C="img8.|png". AL|
|00000ea0| 54 3d 22 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |T="\begi|n{funcde|
|00000eb0| 73 63 7d 7b 65 78 65 63 | 6c 7d 7b 70 61 74 68 5c |sc}{exec|l}{path\|
|00000ec0| 2c 20 61 72 67 30 5c 2c | 20 61 72 67 31 5c 2c 20 |, arg0\,| arg1\, |
|00000ed0| 2e 2e 2e 7d 0a 54 68 69 | 73 20 69 73 20 65 71 75 |...}.Thi|s is equ|
|00000ee0| 69 76 61 6c 65 6e 74 20 | 74 6f 0a 5c 63 6f 64 65 |ivalent |to.\code|
|00000ef0| 7b 6f 73 2e 65 78 65 63 | 76 28 5c 76 61 72 7b 70 |{os.exec|v(\var{p|
|00000f00| 61 74 68 7d 2c 20 28 5c | 76 61 72 7b 61 72 67 30 |ath}, (\|var{arg0|
|00000f10| 7d 2c 20 5c 76 61 72 7b | 61 72 67 31 7d 2c 20 2e |}, \var{|arg1}, .|
|00000f20| 2e 2e 29 29 7d 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |..))}..\|end{func|
|00000f30| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00000f40| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|00000f50| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 32 2e 33 |YLE="hei|ght: 2.3|
|00000f60| 38 65 78 3b 20 76 65 72 | 74 69 63 61 6c 2d 61 6c |8ex; ver|tical-al|
|00000f70| 69 67 6e 3a 20 31 37 36 | 2e 32 37 65 78 3b 20 22 |ign: 176|.27ex; "|
|00000f80| 20 53 52 43 3d 22 69 6d | 67 39 2e 70 6e 67 22 0a | SRC="im|g9.png".|
|00000f90| 20 41 4c 54 3d 22 5c 62 | 65 67 69 6e 7b 66 75 6e | ALT="\b|egin{fun|
|00000fa0| 63 64 65 73 63 7d 7b 65 | 78 65 63 6c 65 7d 7b 70 |cdesc}{e|xecle}{p|
|00000fb0| 61 74 68 5c 2c 20 61 72 | 67 30 5c 2c 20 61 72 67 |ath\, ar|g0\, arg|
|00000fc0| 31 5c 2c 20 2e 2e 2e 5c | 2c 20 65 6e 76 7d 0a 54 |1\, ...\|, env}.T|
|00000fd0| 68 69 73 20 69 73 20 65 | 71 75 69 76 61 6c 65 6e |his is e|quivalen|
|00000fe0| 74 20 74 6f 0a 5c 2e 2e | 2e 0a 2e 2e 2e 6f 73 2e |t to.\..|.....os.|
|00000ff0| 65 78 65 63 76 65 28 5c | 76 61 72 7b 70 61 74 68 |execve(\|var{path|
|00001000| 7d 2c 20 28 5c 76 61 72 | 7b 61 72 67 30 7d 2c 20 |}, (\var|{arg0}, |
|00001010| 5c 76 61 72 7b 61 72 67 | 31 7d 2c 20 2e 2e 2e 29 |\var{arg|1}, ...)|
|00001020| 2c 20 5c 76 61 72 7b 65 | 6e 76 7d 29 7d 2e 0a 5c |, \var{e|nv})}..\|
|00001030| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 22 3e 0a |end{func|desc}">.|
|00001040| 3c 42 52 3e 0a 0a 3c 50 | 3e 0a 3c 42 52 3e 0a 3c |<BR>..<P|>.<BR>.<|
|00001050| 49 4d 47 0a 20 20 53 54 | 59 4c 45 3d 22 68 65 69 |IMG. ST|YLE="hei|
|00001060| 67 68 74 3a 20 32 2e 33 | 38 65 78 3b 20 76 65 72 |ght: 2.3|8ex; ver|
|00001070| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 31 37 36 |tical-al|ign: 176|
|00001080| 2e 32 37 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.27ex; "| SRC="im|
|00001090| 67 31 30 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |g10.png"|. ALT="\|
|000010a0| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|000010b0| 65 78 65 63 6c 70 7d 7b | 70 61 74 68 5c 2c 20 61 |execlp}{|path\, a|
|000010c0| 72 67 30 5c 2c 20 61 72 | 67 31 5c 2c 20 2e 2e 2e |rg0\, ar|g1\, ...|
|000010d0| 7d 0a 54 68 69 73 20 69 | 73 20 65 71 75 69 76 61 |}.This i|s equiva|
|000010e0| 6c 65 6e 74 20 74 6f 0a | 5c 63 6f 64 65 7b 6f 73 |lent to.|\code{os|
|000010f0| 2e 65 78 65 63 76 70 28 | 5c 76 61 72 7b 70 61 74 |.execvp(|\var{pat|
|00001100| 68 7d 2c 20 28 5c 76 61 | 72 7b 61 72 67 30 7d 2c |h}, (\va|r{arg0},|
|00001110| 20 5c 76 61 72 7b 61 72 | 67 31 7d 2c 20 2e 2e 2e | \var{ar|g1}, ...|
|00001120| 29 29 7d 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |))}..\en|d{funcde|
|00001130| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|00001140| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|00001150| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 33 38 65 |E="heigh|t: 2.38e|
|00001160| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|00001170| 6e 3a 20 31 37 36 2e 32 | 37 65 78 3b 20 22 20 53 |n: 176.2|7ex; " S|
|00001180| 52 43 3d 22 69 6d 67 31 | 31 2e 70 6e 67 22 0a 20 |RC="img1|1.png". |
|00001190| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|000011a0| 64 65 73 63 7d 7b 65 78 | 65 63 76 70 7d 7b 70 61 |desc}{ex|ecvp}{pa|
|000011b0| 74 68 5c 2c 20 61 72 67 | 73 7d 0a 54 68 69 73 20 |th\, arg|s}.This |
|000011c0| 69 73 20 6c 69 6b 65 20 | 5c 63 6f 64 65 7b 6f 73 |is like |\code{os|
|000011d0| 2e 65 78 65 63 76 28 5c | 76 61 72 7b 70 61 74 68 |.execv(\|var{path|
|000011e0| 7d 2c 20 5c 76 2e 2e 2e | 0a 2e 2e 2e 73 2e 20 54 |}, \v...|....s. T|
|000011f0| 68 65 20 64 69 72 65 63 | 74 6f 72 79 20 6c 69 73 |he direc|tory lis|
|00001200| 74 20 69 73 20 6f 62 74 | 61 69 6e 65 64 20 66 72 |t is obt|ained fr|
|00001210| 6f 6d 0a 5c 63 6f 64 65 | 7b 6f 73 2e 65 6e 76 69 |om.\code|{os.envi|
|00001220| 72 6f 6e 5b 27 50 41 54 | 48 27 5d 7d 2e 0a 5c 65 |ron['PAT|H']}..\e|
|00001230| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 22 3e 0a 3c |nd{funcd|esc}">.<|
|00001240| 42 52 3e 0a 0a 3c 50 3e | 0a 3c 42 52 3e 0a 3c 49 |BR>..<P>|.<BR>.<I|
|00001250| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00001260| 68 74 3a 20 32 2e 33 38 | 65 78 3b 20 76 65 72 74 |ht: 2.38|ex; vert|
|00001270| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00001280| 32 37 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |27ex; " |SRC="img|
|00001290| 31 32 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |12.png".| ALT="\b|
|000012a0| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 65 |egin{fun|cdesc}{e|
|000012b0| 78 65 63 76 70 65 7d 7b | 70 61 74 68 5c 2c 20 61 |xecvpe}{|path\, a|
|000012c0| 72 67 73 5c 2c 20 65 6e | 76 7d 0a 54 68 69 73 20 |rgs\, en|v}.This |
|000012d0| 69 73 20 61 20 63 72 6f | 73 73 20 62 65 74 77 65 |is a cro|ss betwe|
|000012e0| 65 6e 20 5c 63 6f 64 65 | 7b 6f 73 2e 65 78 2e 2e |en \code|{os.ex..|
|000012f0| 2e 0a 2e 2e 2e 29 7d 2e | 0a 54 68 65 20 64 69 72 |.....)}.|.The dir|
|00001300| 65 63 74 6f 72 79 20 6c | 69 73 74 20 69 73 20 6f |ectory l|ist is o|
|00001310| 62 74 61 69 6e 65 64 20 | 66 72 6f 6d 20 5c 63 6f |btained |from \co|
|00001320| 64 65 7b 5c 76 61 72 7b | 65 6e 76 7d 5b 27 50 41 |de{\var{|env}['PA|
|00001330| 54 48 27 5d 7d 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |TH']}..\|end{func|
|00001340| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00001350| 3e 0a 28 54 68 65 20 66 | 75 6e 63 74 69 6f 6e 73 |>.(The f|unctions|
|00001360| 20 6f 73 2e 65 78 65 63 | 76 28 29 20 61 6e 64 20 | os.exec|v() and |
|00001370| 65 78 65 63 76 65 28 29 | 20 61 72 65 20 6e 6f 74 |execve()| are not|
|00001380| 0a 64 6f 63 75 6d 65 6e | 74 65 64 20 68 65 72 65 |.documen|ted here|
|00001390| 2c 20 73 69 6e 63 65 20 | 74 68 65 79 20 61 72 65 |, since |they are|
|000013a0| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 62 79 20 | impleme|nted by |
|000013b0| 74 68 65 20 4f 53 20 64 | 65 70 65 6e 64 65 6e 74 |the OS d|ependent|
|000013c0| 0a 6d 6f 64 75 6c 65 2e | 20 20 49 66 20 74 68 65 |.module.| If the|
|000013d0| 20 4f 53 20 64 65 70 65 | 6e 64 65 6e 74 20 6d 6f | OS depe|ndent mo|
|000013e0| 64 75 6c 65 20 64 6f 65 | 73 6e 27 74 20 64 65 66 |dule doe|sn't def|
|000013f0| 69 6e 65 20 65 69 74 68 | 65 72 20 6f 66 20 74 68 |ine eith|er of th|
|00001400| 65 73 65 2c 0a 74 68 65 | 20 66 75 6e 63 74 69 6f |ese,.the| functio|
|00001410| 6e 73 20 74 68 61 74 20 | 72 65 6c 79 20 6f 6e 20 |ns that |rely on |
|00001420| 69 74 20 77 69 6c 6c 20 | 72 61 69 73 65 20 61 6e |it will |raise an|
|00001430| 20 65 78 63 65 70 74 69 | 6f 6e 2e 20 20 54 68 65 | excepti|on. The|
|00001440| 79 20 61 72 65 0a 64 6f | 63 75 6d 65 6e 74 65 64 |y are.do|cumented|
|00001450| 20 69 6e 20 74 68 65 20 | 73 65 63 74 69 6f 6e 20 | in the |section |
|00001460| 6f 6e 20 6d 6f 64 75 6c | 65 20 70 6f 73 69 78 2c |on modul|e posix,|
|00001470| 20 74 6f 67 65 74 68 65 | 72 20 77 69 74 68 20 61 | togethe|r with a|
|00001480| 6c 6c 0a 6f 74 68 65 72 | 20 66 75 6e 63 74 69 6f |ll.other| functio|
|00001490| 6e 73 20 74 68 61 74 20 | 6f 73 20 69 6d 70 6f 72 |ns that |os impor|
|000014a0| 74 73 20 66 72 6f 6d 20 | 74 68 65 20 4f 53 20 64 |ts from |the OS d|
|000014b0| 65 70 65 6e 64 65 6e 74 | 20 6d 6f 64 75 6c 65 2e |ependent| module.|
|000014c0| 29 0a 0a 3c 48 52 3e 0a | 0a 3c 2f 42 4f 44 59 3e |)..<HR>.|.</BODY>|
|000014d0| 0a 3c 2f 48 54 4d 4c 3e | 0a |.</HTML>|. |
+--------+-------------------------+-------------------------+--------+--------+