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

def IPython::Extensions::ipipe::ifilter::__init__ (   self,
  expr,
  globals = None,
  errors = "raiseifallfail" 
)

Create an ``ifilter`` object. ``expr`` can be a callable or a string
containing an expression. ``globals`` will be used as the global
namespace for calling string expressions (defaulting to IPython's
user namespace). ``errors`` specifies how exception during evaluation
of ``expr`` are handled:

``"drop"``
    drop all items that have errors;

``"keep"``
    keep all items that have errors;

``"keeperror"``
    keep the exception of all items that have errors;

``"raise"``
    raise the exception;

``"raiseifallfail"``
    raise the first exception if all items have errors; otherwise drop
    those with errors (this is the default).

Definition at line 1752 of file ipipe.py.

01752                                                                    :
        """
        Create an ``ifilter`` object. ``expr`` can be a callable or a string
        containing an expression. ``globals`` will be used as the global
        namespace for calling string expressions (defaulting to IPython's
        user namespace). ``errors`` specifies how exception during evaluation
        of ``expr`` are handled:

        ``"drop"``
            drop all items that have errors;

        ``"keep"``
            keep all items that have errors;

        ``"keeperror"``
            keep the exception of all items that have errors;

        ``"raise"``
            raise the exception;

        ``"raiseifallfail"``
            raise the first exception if all items have errors; otherwise drop
            those with errors (this is the default).
        """
        self.expr = expr
        self.globals = globals
        self.errors = errors

    def __iter__(self):


Generated by  Doxygen 1.6.0   Back to index