Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/code.pyo |
³ò h”Rc @ s¸ d Z d d k Z d d k Z d d k l Z l Z d d d d g Z d „ Z d d d „ ƒ YZ d e f d „ ƒ YZ d d d d „ Z e d j o d d k Z e i d ƒ n d S( s? Utilities needed to emulate Python's interactive interpreter. iÿÿÿÿN( t CommandCompilert compile_commandt InteractiveInterpretert InteractiveConsolet interactR c C sV d } y | i } Wn t j o n Xy | | _ Wn t t f j o n X| S( Ni ( t softspacet AttributeErrort TypeError( t filet newvaluet oldvalue( ( s /usr/local/lib/python2.5/code.pyR s c B sP e Z d Z d d „ Z d d d „ Z d „ Z d d „ Z d „ Z d „ Z RS( s÷ 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). c C sB | d j o h d d <d d <} n | | _ t ƒ | _ d S( s Constructor. The optional 'locals' argument specifies the dictionary 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. t __console__t __name__t __doc__N( t Nonet localsR t compile( t selfR ( ( s /usr/local/lib/python2.5/code.pyt __init__% s s <input>t singlec C so y | i | | | ƒ } Wn- t t t f j o | i | ƒ t Sn X| d j o t Sn | i | ƒ t S( s… Compile and run some source in the interpreter. Arguments are as for compile_command(). One 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. N( R t OverflowErrort SyntaxErrort ValueErrort showsyntaxerrort FalseR t Truet runcode( R t sourcet filenamet symbolt code( ( s /usr/local/lib/python2.5/code.pyt runsource3 s c B sT y | | i UWn&