*j S r SSKrSSKr\R V s/ s H n \" \U 5 PM sn r/ SQrSrSrSr S r SS jrSS jr " S S5 r " S S 5 rgs sn f )aA Utilities to compile possibly incomplete Python source code. This module provides two interfaces, broadly similar to the builtin function compile(), which take program text, a filename and a 'mode' and: - Return code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). The two interfaces are: compile_command(source, filename, symbol): Compiles a single command in the manner described above. CommandCompiler(): Instances of this class have __call__ methods identical in signature to compile_command; the difference is that if the instance compiles program text containing a __future__ statement, the instance 'remembers' and compiles all subsequent program texts with the statement in force. The module also provides another class: Compile(): Instances of this class act like the built-in function compile, but with 'memory' in the sense described above. N)compile_commandCompileCommandCompileri i i @ c UR S5 H' nUR 5 nU( d M US S:w d M' O US:w a Sn[ R " 5 [ R " S[ [ 45 U " XU5 S S S 5 U " XUSS9$ ! [ aK U " US- X#5 S S S 5 g ! [ a n S nA S S S 5 g S nAf[ a n S nA N\S nAff = ff = f! , ( d f Nn= f) N r #evalpassignoreF)incomplete_input) splitstripwarningscatch_warningssimplefilter SyntaxWarningDeprecationWarningSyntaxError_IncompleteInputError)compilersourcefilenamesymbollinees -/opt/alt/python313/lib64/python3.13/codeop.py_maybe_compiler 2 s T"zz|4DGsN # VF "h8J(KL Vv. # FfuEE $9 # " ) # " # "sZ "C.= B C+!B7-C.7 C'C+C. C'C+ C."C''C++C.. C<c P SnU( a U[ - nU[ - n[ XX$5 $ )Nr )PyCF_ALLOW_INCOMPLETE_INPUTPyCF_DONT_IMPLY_DEDENTcompile)r r r r flagss r _compiler# M s- E ,, ''6V33 c $ [ [ XU5 $ )aU Compile a command and determine whether it is incomplete. Arguments: source -- the source string; may contain \n characters filename -- optional filename from which source was read; default "" symbol -- optional grammar start symbol; "single" (default), "exec" or "eval" Return value / exceptions raised: - Return a code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). )r r# )r r r s r r r T s &