[IPython-dev] ipipe news
Walter Dörwald
walter at livinglogic.de
Mon Mar 13 09:19:23 EST 2006
Ville Vainio wrote:
> As it stands, ifilter can raise an exception and the user won't know
> what happened. It would at least be useful to know about the exception
> if the yielded sequence is empty (i.e. the filter never matched), it
> may well have been a programming error.
We could add an argument to the ifilter() constructor:
ifilter(foo, errors="raise")
or
ifilter(foo, errors="drop")
or
ifilter(foo, errors="keep")
or
ifilter(foo, errors="keeperror")
Servus,
Walter
More information about the IPython-dev
mailing list