Files
952-11/env/python/dll/Python312/Lib/__pycache__/codeop.cpython-312.pyc
T

102 lines
6.8 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åfµãó¸—dZddlZddlZejD�cgc] }ee|«‘Œ
c}Zgd¢ZdZdZd„Z d„Z
dd„Z dd „Z Gd
„d «Z
Gd „d
«Zycc}w)aAUtilities 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_commandÚCompileÚCommandCompilerii@cóæ—|jd«D]}|j«}|sŒ|ddk7sŒn|dk7rd}tj«5tjdt
t f« ||||«ddd«||||d¬ «S#t$rL ||dz||«Yddd«y#t$r%}dt|«vrYd}~Yddd«yYd}~nd}~wwxYwYŒhwxYw#1swYŒmxYw)
Nú
rú#ÚevalÚpassÚignorezincomplete inputF)Úincomplete_input) ÚsplitÚstripÚwarningsÚcatch_warningsÚ simplefilterÚ
SyntaxWarningÚDeprecationWarningÚ SyntaxErrorÚstr)ÚcompilerÚsourceÚfilenameÚsymbolÚlineÚes úBc:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\codeop.pyÚ_maybe_compiler1s€à— ‘ ˜TÓ"òˆØ�z‰z‹|ˆÚ �D˜‘G˜s“NÙ ðð
�VÒ ØˆFô
× Ñ Ó "ñ
 Ü×јh¬Ô8JÐ(KÔLð Ù �V˜X vÔ .÷
 ñ �F˜H f¸uÔ EÐEøôò ð
Ù˜ $™¨°&Ô9Ø÷
 ð
 øôò
Ø%¬¨Q«Ñ/Ü÷
 ð
 ô0ûð
úÙ/ð  ú÷
 ð
 ús`Á!C'Á1
BÂ C$Â
B0Â&C'Â0 CÂ9
CÃC$Ã
C'ÃC$ÃCÃC$Ã!C'Ã#C$Ã$C'Ã'C0cóN—t|«}t|«}d|vrd|vry||k(ryy)Nzwas never closedFT)Úrepr)Úerr1Úerr2Úrep1Úrep2s rÚ_is_syntax_errorr$Ks4€Ü �‹:€DÜ �‹:€DؘTÑ!Ð&8¸DÑ&@ØØ ˆt‚|ØØ ócóJ—d}|r|tz}|tz}t||||«S)Nr)ÚPyCF_ALLOW_INCOMPLETE_INPUTÚPyCF_DONT_IMPLY_DEDENTÚcompile)rrrr Úflagss rÚ_compiler+Ts1€Ø
€EÙØ
Ô,Ñ,ˆØ
Ô'Ñ'ˆÜ �6˜8 V¨UÓ 3Ð3r%có&—tt|||«S)a‰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
"<input>"
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).
)rr+)rrrs rrr\s€ô& œ( F¨H°fÓ =Ð=r%có—eZdZdZd„Zd„Zy)rzëInstances of this class behave much like the built-in compile
function, but if one is used to compile text containing a future
statement, it "remembers" and compiles all subsequent program texts
with the statement in force.có(—ttz|_y©N)r(r'r*©Úselfs rÚ__init__zCompile.__init__vs€Ü+Ô.IÑIˆ�
r%c ó—|j}|jdd«dur|tz}|tz}t ||||d«}t
D];}|j |jzsŒ|xj|jzc_Œ=|S)Nr TF)r*Úgetr(r'r)Ú _featuresÚco_flagsÚ
compiler_flag)r1rrrÚkwargsr*ÚcodeobÚfeatures rÚ__call__zCompile.__call__ys‰€Ø—
‘
ˆØ �:‰:Ð(¨$Ó /°5Ñ 8Ø Ô,Ð,Ñ ,ˆEØ Ô1Ð1Ñ 1ˆEܘ ¨6°5¸$Ó?ˆÜ ò 4ˆGØ�‰ ×!6Ñ!6Ó6Ø—
’
˜g×3Ñ3Ñ3–
ð 4ðˆ
r%N©Ú__name__Ú
__module__Ú __qualname__Ú__doc__r2r;©r%rrrqs„ñ$òJó r%rcó—eZdZdZd„Zdd„Zy)ra(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.có"—t«|_yr/)rrr0s rr2zCommandCompiler.__init__‹s €Ü› ˆ�
r%có2—t|j|||«S)aµCompile a command and determine whether it is incomplete.
Arguments:
source -- the source string; may contain \n characters