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

def IPython::kernel::multiengineclient::InteractiveMultiEngineClient::__getitem__ (   self,
  key 
)

Add a dictionary interface for pushing/pulling.

This functions as a shorthand to `pull`.

:Parameters:
 - `key`: A string representing the key.

Definition at line 289 of file multiengineclient.py.

00289                               :
        """Add a dictionary interface for pushing/pulling.
        
        This functions as a shorthand to `pull`.
        
        :Parameters:
         - `key`: A string representing the key.
        """
        if isinstance(key, str):
            targets, block = self._findTargetsAndBlock()
            return self.pull(key, targets=targets, block=block)
        else:
            raise TypeError("__getitem__ only takes strs")
            
    def __len__(self):


Generated by  Doxygen 1.6.0   Back to index