[Numpy-discussion] Scalar-ndarray arguments passed to not_equal
Robert Kern
robert.kern at gmail.com
Thu Feb 11 16:17:23 EST 2010
On Thu, Feb 11, 2010 at 15:14, Friedrich Romstedt
<friedrichromstedt at gmail.com> wrote:
>> Did you omit the @contextmanager decorator?
>
> Oh, yes! I guessed it would mean: In module contextmanager you write
> what follows after the colon? What does this decoration do?
It turns certain specifically-written generators into full context managers.
http://docs.python.org/library/contextlib#contextlib.contextmanager
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion
mailing list