summaryrefslogtreecommitdiff
path: root/lib/python2.7/compiler/__init__.pyc
blob: b7ad5e367d2ccef471da94bcfeff4892b087438d (plain)
ofshex dumpascii
0000 03 f3 0d 0a 30 5c fc 55 63 00 00 00 00 00 00 00 00 05 00 00 00 40 00 00 00 73 68 00 00 00 64 00 ....0\.Uc............@...sh...d.
0020 00 5a 00 00 64 01 00 64 02 00 6c 01 00 5a 01 00 65 01 00 6a 02 00 64 03 00 65 03 00 64 04 00 64 .Z..d..d..l..Z..e..j..d..e..d..d
0040 05 00 83 02 01 01 64 01 00 64 06 00 6c 04 00 6d 05 00 5a 05 00 6d 06 00 5a 06 00 01 64 01 00 64 ......d..d..l..m..Z..m..Z...d..d
0060 07 00 6c 07 00 6d 08 00 5a 08 00 01 64 01 00 64 08 00 6c 09 00 6d 0a 00 5a 0a 00 6d 0b 00 5a 0b ..l..m..Z...d..d..l..m..Z..m..Z.
0080 00 01 64 02 00 53 28 09 00 00 00 73 de 02 00 00 50 61 63 6b 61 67 65 20 66 6f 72 20 70 61 72 73 ..d..S(....s....Package.for.pars
00a0 69 6e 67 20 61 6e 64 20 63 6f 6d 70 69 6c 69 6e 67 20 50 79 74 68 6f 6e 20 73 6f 75 72 63 65 20 ing.and.compiling.Python.source.
00c0 63 6f 64 65 0a 0a 54 68 65 72 65 20 61 72 65 20 73 65 76 65 72 61 6c 20 66 75 6e 63 74 69 6f 6e code..There.are.several.function
00e0 73 20 64 65 66 69 6e 65 64 20 61 74 20 74 68 65 20 74 6f 70 20 6c 65 76 65 6c 20 74 68 61 74 20 s.defined.at.the.top.level.that.
0100 61 72 65 20 69 6d 70 6f 72 74 65 64 0a 66 72 6f 6d 20 6d 6f 64 75 6c 65 73 20 63 6f 6e 74 61 69 are.imported.from.modules.contai
0120 6e 65 64 20 69 6e 20 74 68 65 20 70 61 63 6b 61 67 65 2e 0a 0a 70 61 72 73 65 28 62 75 66 2c 20 ned.in.the.package...parse(buf,.
0140 6d 6f 64 65 3d 22 65 78 65 63 22 29 20 2d 3e 20 41 53 54 0a 20 20 20 20 43 6f 6e 76 65 72 74 73 mode="exec").->.AST.....Converts
0160 20 61 20 73 74 72 69 6e 67 20 63 6f 6e 74 61 69 6e 69 6e 67 20 50 79 74 68 6f 6e 20 73 6f 75 72 .a.string.containing.Python.sour
0180 63 65 20 63 6f 64 65 20 74 6f 20 61 6e 20 61 62 73 74 72 61 63 74 0a 20 20 20 20 73 79 6e 74 61 ce.code.to.an.abstract.....synta
01a0 78 20 74 72 65 65 20 28 41 53 54 29 2e 20 20 54 68 65 20 41 53 54 20 69 73 20 64 65 66 69 6e 65 x.tree.(AST)...The.AST.is.define
01c0 64 20 69 6e 20 63 6f 6d 70 69 6c 65 72 2e 61 73 74 2e 0a 0a 70 61 72 73 65 46 69 6c 65 28 70 61 d.in.compiler.ast...parseFile(pa
01e0 74 68 29 20 2d 3e 20 41 53 54 0a 20 20 20 20 54 68 65 20 73 61 6d 65 20 61 73 20 70 61 72 73 65 th).->.AST.....The.same.as.parse
0200 28 6f 70 65 6e 28 70 61 74 68 29 29 0a 0a 77 61 6c 6b 28 61 73 74 2c 20 76 69 73 69 74 6f 72 2c (open(path))..walk(ast,.visitor,
0220 20 76 65 72 62 6f 73 65 3d 4e 6f 6e 65 29 0a 20 20 20 20 44 6f 65 73 20 61 20 70 72 65 2d 6f 72 .verbose=None).....Does.a.pre-or
0240 64 65 72 20 77 61 6c 6b 20 6f 76 65 72 20 74 68 65 20 61 73 74 20 75 73 69 6e 67 20 74 68 65 20 der.walk.over.the.ast.using.the.
0260 76 69 73 69 74 6f 72 20 69 6e 73 74 61 6e 63 65 2e 0a 20 20 20 20 53 65 65 20 63 6f 6d 70 69 6c visitor.instance......See.compil
0280 65 72 2e 76 69 73 69 74 6f 72 20 66 6f 72 20 64 65 74 61 69 6c 73 2e 0a 0a 63 6f 6d 70 69 6c 65 er.visitor.for.details...compile
02a0 28 73 6f 75 72 63 65 2c 20 66 69 6c 65 6e 61 6d 65 2c 20 6d 6f 64 65 2c 20 66 6c 61 67 73 3d 4e (source,.filename,.mode,.flags=N
02c0 6f 6e 65 2c 20 64 6f 6e 74 5f 69 6e 68 65 72 69 74 3d 4e 6f 6e 65 29 0a 20 20 20 20 52 65 74 75 one,.dont_inherit=None).....Retu
02e0 72 6e 73 20 61 20 63 6f 64 65 20 6f 62 6a 65 63 74 2e 20 20 41 20 72 65 70 6c 61 63 65 6d 65 6e rns.a.code.object...A.replacemen
0300 74 20 66 6f 72 20 74 68 65 20 62 75 69 6c 74 69 6e 20 63 6f 6d 70 69 6c 65 28 29 20 66 75 6e 63 t.for.the.builtin.compile().func
0320 74 69 6f 6e 2e 0a 0a 63 6f 6d 70 69 6c 65 46 69 6c 65 28 66 69 6c 65 6e 61 6d 65 29 0a 20 20 20 tion...compileFile(filename)....
0340 20 47 65 6e 65 72 61 74 65 73 20 61 20 2e 70 79 63 20 66 69 6c 65 20 62 79 20 63 6f 6d 70 69 6c .Generates.a..pyc.file.by.compil
0360 69 6e 67 20 66 69 6c 65 6e 61 6d 65 2e 0a 69 ff ff ff ff 4e 73 3d 00 00 00 54 68 65 20 63 6f 6d ing.filename..i....Ns=...The.com
0380 70 69 6c 65 72 20 70 61 63 6b 61 67 65 20 69 73 20 64 65 70 72 65 63 61 74 65 64 20 61 6e 64 20 piler.package.is.deprecated.and.
03a0 72 65 6d 6f 76 65 64 20 69 6e 20 50 79 74 68 6f 6e 20 33 2e 78 2e 74 0a 00 00 00 73 74 61 63 6b removed.in.Python.3.x.t....stack
03c0 6c 65 76 65 6c 69 02 00 00 00 28 02 00 00 00 74 05 00 00 00 70 61 72 73 65 74 09 00 00 00 70 61 leveli....(....t....parset....pa
03e0 72 73 65 46 69 6c 65 28 01 00 00 00 74 04 00 00 00 77 61 6c 6b 28 02 00 00 00 74 07 00 00 00 63 rseFile(....t....walk(....t....c
0400 6f 6d 70 69 6c 65 74 0b 00 00 00 63 6f 6d 70 69 6c 65 46 69 6c 65 28 0c 00 00 00 74 07 00 00 00 ompilet....compileFile(....t....
0420 5f 5f 64 6f 63 5f 5f 74 08 00 00 00 77 61 72 6e 69 6e 67 73 74 04 00 00 00 77 61 72 6e 74 12 00 __doc__t....warningst....warnt..
0440 00 00 44 65 70 72 65 63 61 74 69 6f 6e 57 61 72 6e 69 6e 67 74 14 00 00 00 63 6f 6d 70 69 6c 65 ..DeprecationWarningt....compile
0460 72 2e 74 72 61 6e 73 66 6f 72 6d 65 72 52 01 00 00 00 52 02 00 00 00 74 10 00 00 00 63 6f 6d 70 r.transformerR....R....t....comp
0480 69 6c 65 72 2e 76 69 73 69 74 6f 72 52 03 00 00 00 74 12 00 00 00 63 6f 6d 70 69 6c 65 72 2e 70 iler.visitorR....t....compiler.p
04a0 79 63 6f 64 65 67 65 6e 52 04 00 00 00 52 05 00 00 00 28 00 00 00 00 28 00 00 00 00 28 00 00 00 ycodegenR....R....(....(....(...
04c0 00 73 58 00 00 00 2f 62 75 69 6c 64 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e .sX.../buildbot/tmp/buildhost/in
04e0 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f stall/prebuilt/linux-x86_64/lib/
0500 70 79 74 68 6f 6e 32 2e 37 2f 63 6f 6d 70 69 6c 65 72 2f 5f 5f 69 6e 69 74 5f 5f 2e 70 79 74 08 python2.7/compiler/__init__.pyt.
0520 00 00 00 3c 6d 6f 64 75 6c 65 3e 16 00 00 00 73 0c 00 00 00 06 02 0c 02 09 01 0d 02 16 01 10 01 ...<module>....s................