Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::background_jobs::BackgroundJobExpr::__init__ (   self,
  expression,
  glob = None,
  loc = None 
)

Create a new job from a string which can be fed to eval().

global/locals dicts can be provided, which will be passed to the eval
call.

Definition at line 404 of file background_jobs.py.

00404                                                     :
        """Create a new job from a string which can be fed to eval().

        global/locals dicts can be provided, which will be passed to the eval
        call."""

        # fail immediately if the given expression can't be compiled
        self.code = compile(expression,'<BackgroundJob compilation>','eval')
                
        if glob is None:
            glob = {}
        if loc is None:
            loc = {}
            
        self.expression = self.strform = expression
        self.glob = glob
        self.loc = loc
        self._init()
        
    def call(self):


Generated by  Doxygen 1.6.0   Back to index