grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026+ ÅbLÚÿ²Î>ãó€€Rt^RIt^RIt^RIt^RIHtHt.ROt!RR4t!RR]4t !RR4t RR lt ] R 8Xdy^RI t ] P!R R 7t]P!R RRR7]P#4t]P&'g]P(P*'dRtMRt] !]4R#R#)z?Utilities needed to emulate Python's interactive interpreter. N)ÚCommandCompilerÚcompile_commandÚInteractiveInterpreterÚInteractiveConsolecó`a€]tRt^toRtR RltR RltRtR RltRt Rt R t R t R t VtR#)rzçBase class for InteractiveConsole. This class deals with parsing and interpreter state (the user's namespace); it doesn't deal with input buffering or prompting or input file naming (the filename is always passed in explicitly). Nc óD€VfRRRR/pWn\4VnR#)zìConstructor. The optional 'locals' argument specifies a mapping to use as the namespace in which code will be executed; it defaults to a newly created dictionary with key "__name__" set to "__console__" and key "__doc__" set to None. NÚ__name__Ú __console__Ú__doc__)ÚlocalsrÚcompile)Úselfr s&&Ú+/opt/alt/python314/lib64/python3.14/code.pyÚ__init__ÚInteractiveInterpreter.__init__s&€ð Š>Ø  -°¸DÐAˆFØŒ Ü&Ó(ˆŽ óc ó¸€VPWV4pTfR#TP T4R# \\\3dTP Y!R7R#i;i)aCompile and run some source in the interpreter. Arguments are as for compile_command(). One of several things can happen: 1) The input is incorrect; compile_command() raised an exception (SyntaxError or OverflowError). A syntax traceback will be printed by calling the showsyntaxerror() method. 2) The input is incomplete, and more input is required; compile_command() returned None. Nothing happens. 3) The input is complete; compile_command() returned a code object. The code is executed by calling self.runcode() (which also handles run-time exceptions, except for SystemExit). The return value is True in case 2, False in the other cases (unless an exception is raised). The return value can be used to decide whether to use sys.ps1 or sys.ps2 to prompt the next line. )ÚsourceFT)r Ú OverflowErrorÚ SyntaxErrorÚ ValueErrorÚshowsyntaxerrorÚruncode)r rÚfilenameÚsymbolÚcodes&&&& rÚ runsourceÚ InteractiveInterpreter.runsource's^€ð0 Ø—<‘< °&Ó9ˆDð Š<áð � ‰ �TÔÙøôœ{¬JÐ7ô à × Ñ  Ð Ô 9Úð ús‚-­(AÁAc óx€\WP4R# \dhTP4R#;i)aKExecute a code object. When an exception occurs, self.showtraceback() is called to display a traceback. All exceptions are caught except SystemExit, which is reraised. A note about KeyboardInterrupt: this exception may occur elsewhere in this code, and may not always be caught. The caller should be prepared to deal with it. N)Úexecr Ú SystemExitÚ showtraceback©r rs&&rrÚInteractiveInterpreter.runcodeNs1€ð !Ü �—{‘{Ö #øÜô Ø ð !Ø × Ñ × ús‚™9c óè€\P!4wr4pV'd\V\4'dWnVP RR4pVP W4RV4R;p;rER# R;p;rEi;i)a@Display the syntax error that just occurred. This doesn't display a stack trace because there isn't one. If a filename is given, it is stuffed in the exception instead of what was there before (because Python's parser always uses "" when reading from a string). The output is written by self.write(), below. rÚN)ÚsysÚexc_infoÚ issubclassrrÚpopÚ_showtraceback)r rÚkwargsÚtypÚvalueÚtbrs&&, rrÚ&InteractiveInterpreter.showsyntaxerrorask€ð $Ü Ÿ\š\›^‰NˆC˜ßœJ s¬K×8Ò8Ø!)”Ø—Z‘Z ¨"Ó-ˆFØ × Ñ  ¨D°&Ô 9à#Ð #ˆCÐ #�%™"ø˜tÐ #ˆCÐ #�%˜"ús ‚A!A*Á*A1c ó�€\P!4wrpVPWVPR4R;p;r#R# R;p;r#i;i)z–Display the exception that just occurred. We remove the first stack item because it is our own code. The output is written by self.write(), below. r%N)r&r'r*Útb_next)r r,r-r.s& rr!Ú$InteractiveInterpreter.showtracebackvsK€ð $Ü Ÿ\š\›^‰NˆC˜Ø × Ñ  ¨B¯J©J¸Ô ;à#Ð #ˆCÐ #�%™"ø˜tÐ #ˆCÐ #�%˜"ús ‚5>¾AcóÒ€V\nV\nVPV4pVP 4pV'dcV\ JdYVP 'gGVPe9\V4VP8¼dWRP^, ,VnV;\n \n \P\PJdVPWV4R#\P!WV4R# \dh\dÉpRTnTPTP"P$4p\'R\P(R7\P!\+T4YfP"4\'\P(R7\'R\P(R7\P!YT4Rp?R#Rp?ii;i)NzError in sys.excepthook:)ÚfilezOriginal exception was:)r&Ú last_typeÚlast_tracebackÚwith_tracebackÚ splitlinesrÚtextÚlinenoÚlenÚlast_excÚ last_valueÚ excepthookÚ__excepthook__Ú _excepthookr Ú BaseExceptionÚ __context__Ú __traceback__r1ÚprintÚstderrÚtype)r r,r-r.rÚlinesÚes&&&&& rr*Ú%InteractiveInterpreter._showtraceback„sB€ØŒŒ ØŒÔØ×$Ñ$ RÓ(ˆà×!Ñ!Ó#ˆß �sœkÓ)ØŸ Ÿ ˜  u§|¡|Ò'?ܘ“J %§,¡,Ô.ØŸ|™|¨aÕ/Õ0ˆEŒJØ(-Ð-ŒŒ ”s”~Ü �>‰>œS×/Ñ/Ó /Ø × Ñ ˜S¨Ö ,ð 3Ü—’˜s¨2Ö.øÜô ØÜ ô 3Ø $�” Ø×$Ñ$ Q§_¡_×%<Ñ%<Ó=�ÜÐ0´s·z±zÕBÜ×"Ò"¤4¨£7¨A¯©Ô?Üœ3Ÿ:™:Õ&ÜÐ/´c·j±jÕAÜ×"Ò" 3¨r×2Ò2ûð 3úsÃ/DÄG&ÄG&ÄB=G!Ç!G&cót€\P!WV4pVPRPV44R#)r%N)Ú tracebackÚformat_exceptionÚwriteÚjoin)r r,r-r.rGs&&&& rr@Ú"InteractiveInterpreter._excepthook¡s*€ô×*Ò*¨3°rÓ:ˆØ � ‰ �2—7‘7˜5“>Ö"rc óD€\PPV4R#)z}Write a string. The base implementation writes to sys.stderr; a subclass may replace this with a different implementation. N)r&rErM)r Údatas&&rrMÚInteractiveInterpreter.write§s€ô � ‰ ×јÖr)r r ©N)zÚsingle)rÚ __module__Ú __qualname__Ú__firstlineno__r rrrrr!r*r@rMÚ__static_attributes__Ú__classdictcell__©Ú __classdict__s@rrrs8ø‡€ñô )ô%òN!ô&$ò* $ò3ò:#÷ ðrcóZa€]tRt^±toRtR RR/RlltRtR RltR RltRR lt R t Vt R#)rzÂClosely emulate the behavior of the interactive Python interpreter. This class builds on InteractiveInterpreter and adds prompting using the familiar sys.ps1 and sys.ps2, and input buffering. NÚ local_exitFc óh€\PW4W nW0nVP 4R#)z×Constructor. The optional locals argument will be passed to the InteractiveInterpreter base class. The optional filename argument should specify the (file)name of the input stream; it will show up in tracebacks. N)rrrr]Ú resetbuffer)r r rr]s&&&$rrÚInteractiveConsole.__init__¹s(€ô ×'Ñ'¨Ô5Ø Œ Ø$ŒØ ×ÑÖrc ó€.VnR#)zReset the input buffer.N)Úbuffer©r s&rr_ÚInteractiveConsole.resetbufferÈs €àˆŽ rc  óä€\PRp\PpRpRpVfTVP R\P : R\P : R V: R VPP: R 2 4M)V'd"VP R \V4,4^pRpRp VP'du\\R 4'd%\Pp\R 4\n \\R4'd%\Pp \R4\nV'd\Pp M\Pp VP!V 4p VP#V 4pKP \dR\nRpEL�i;i \dR\nRpEL™i;i \$dTP R 4Mqi;i \&d(TP R4TP)4^pKá\*d0p TP'dTP R 4Rp ? M T hRp ? ii;iTe T\n T e T \nT'd\=T'd\=Tf/TP RTPP,4R#TR8wdTP R T,4R#R# Te T\n T e T \nT'd\=T'd\=Tf.TP RTPP,4iTR8wdTP R T,4ii;i)a0Closely emulate the interactive Python console. The optional banner argument specifies the banner to print before the first interaction; by default it prints a banner similar to the one printed by the real Python interpreter, followed by the current class name in parentheses (so as not to confuse this with the real interpreter -- since it's so close!). The optional exitmsg argument specifies the exit message printed when exiting. Pass the empty string to suppress printing an exit message. If exitmsg is not given or None, a default message is printed. Fz>>> Tz... zFType "help", "copyright", "credits" or "license" for more information.NzPython z on Ú z (z) z%s ÚexitÚquitz KeyboardInterrupt znow exiting %s... r%)r&Úps1ÚAttributeErrorÚps2rMÚversionÚplatformÚ __class__rÚstrr]ÚhasattrÚbuiltinsrgÚQuitterrhÚ raw_inputÚpushÚEOFErrorÚKeyboardInterruptr_r ) r ÚbannerÚexitmsgÚdelete_ps1_afterÚ_ps2Údelete_ps2_afterÚcprtÚmoreÚ_exitÚ_quitÚpromptÚlinerHs &&& rÚinteractÚInteractiveConsole.interactÌs¢€ð  $Ü �GŠGØ$Ð ð $Ü—7‘7ˆDØ$Ð ð XˆØ Š>Ø �JŠJÜŸ œ ¤S§\¤\³4ØŸ™×/Ô/ð1õ 2÷Ø �J‰J�v¤ F£ Õ+Ô ,ØˆðˆØˆà �?�?ˆ?Ü”x ×(Ò(Ü Ÿ ™ �Ü '¨£”” ä”x ×(Ò(Ü Ÿ ™ �Ü '¨£”” ð) -Øð ßÜ!$§¡™ä!$§¡˜ð/Ø#Ÿ~™~¨fÓ5˜ð $Ÿy™y¨›šøôkô $ØŒCŒGØ#Ó ð $ûô ô $ØŒCŒGØ#Ó ð $ûôV$ôØŸ ™  4Ô(Ùðûô )ôØ—J‘JÐ6Ô7Ø×$Ñ$Ô&Ø“DÜ!ô Ø——�ØŸ ™  4Ô(Üà˜ûð  úðÒ Ø %”” àÒ Ø %”” çÜ�GçÜ�GàŠØ— ‘ Ð0°4·>±>×3JÑ3JÕJÖKؘB”Ø— ‘ ˜6 GÕ+Ö,ñøðÒ Ø %”” àÒ Ø %”” çÜ�GçÜ�GàŠØ— ‘ Ð0°4·>±>×3JÑ3JÕJÕKؘB”Ø— ‘ ˜6 GÕ+Õ,ðús­‚F•F%Ä6K"Ä8G&Å!G&Å"GÅ3G&ÆK"ÆF"Æ!F"Æ%GÇGÇG#Ç G&Ç!K"Ç"G#Ç#G&Ç&.IÈK"ÈIÈ IÈ!#I ÉK"É I É IÉK"Ë"&M/Ì M/ÌAM/c óè€VPPV4RPVP4pVf VPpVP WBVR7pV'gVP 4V#)a/Push a line to the interpreter. The line should not have a trailing newline; it may have internal newlines. The line is appended to a buffer and the interpreter's runsource() method is called with the concatenated contents of the buffer as source. If this indicates that the command was executed or invalid, the buffer is reset; otherwise, the command is incomplete, and the buffer is left as it was after the line was appended. The return value is 1 if more input is required, 0 if the line was dealt with in some way (this is the same as runsource()). rf)r)rbÚappendrNrrr_)r r�rÚ_symbolrr}s&&&& rrtÚInteractiveConsole.push2s]€ð � ‰ ×ј4Ô Ø—‘˜4Ÿ;™;Ó'ˆØ Ò Ø—}‘}ˆHØ�~‰~˜f°wˆ~Ó?ˆßØ × Ñ Ô Øˆ rc ó€\V4#)aWrite a prompt and read a line. The returned line does not include the trailing newline. When the user enters the EOF key sequence, EOFError is raised. The base implementation uses the built-in function input(); a subclass may replace this with a different implementation. )Úinput)r r€s&&rrsÚInteractiveConsole.raw_inputIs€ô�V‹}Ðr)rbrr])Nz )NN)NrT)r%) rrUrVrWr rr_r‚rtrsrXrYrZs@rrr±s1ø‡€ññ Èõ òôd-ôL÷. ò rcó6a€]tRtRtoRtRtRRltRtVtR#)rriWcó\€Wn\PR8Xd RVnR#RVnR#)Úwin32zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)N)Únamer&rmÚeof)r rŽs&&rrÚQuitter.__init__Xs!€ØŒ Ü �<‰<˜7Ô "Ø+ˆDŽHà*ˆDŽHrcó<€RVP RVP R2#)zUse z or z to exit)rŽr�rcs&rÚ__repr__ÚQuitter.__repr___s€Ø�d—i‘i�[  T§X¡X J¨hÐ7Ð7rNcó€\V4hrS)r r"s&&rÚ__call__ÚQuitter.__call__bs €Ü˜ÓÐr)r�rŽrS) rrUrVrWrr’r•rXrYrZs@rrrrrWsø‡€ò+ò8÷òrrrcó‚€\W$R7pVeWnM^RIpVP W4R# \dL i;i)a8Closely emulate the interactive Python interpreter. This is a backwards compatible interface to the InteractiveConsole class. When readfunc is not specified, it attempts to import the readline module to enable GNU readline if it is available. Arguments (all optional, all default to None): banner -- passed to InteractiveConsole.interact() readfunc -- if not None, replaces InteractiveConsole.raw_input() local -- passed to InteractiveInterpreter.__init__() exitmsg -- passed to InteractiveConsole.interact() local_exit -- passed to InteractiveConsole.__init__() )r]N)rrsÚreadlineÚ ImportErrorr‚)rwÚreadfuncÚlocalrxr]Úconsoler˜s&&&&& rr‚r‚fsF€ô ! Ô>€GØÒØ$Õð Û ð ×Ñ�VÖ%øôô Ù ð ús ™0° >½>Ú__main__T)Úcolorz-qÚ store_truez*don't print version and copyright messages)ÚactionÚhelpr%)rrr‚r)NNNNF)r rqr&rKÚcodeoprrÚ__all__rrrrr‚rÚargparseÚArgumentParserÚparserÚ add_argumentÚ parse_argsÚargsÚqÚflagsÚquietrw©rrÚr®s½ðñóÛ Ûß3ò €÷^ñ^ôBcÐ/ôc÷L ñ ô&ð6 ˆzÔÛà × $Ò $¨4Ô 0€FØ ×ј \ØHðôJà × Ñ Ó €DØ ‡v‡v€v�—‘——�؉àˆÙ ˆVÖñr