[Numpy-discussion] Warnings in numpy.ma.test()

Ryan May rmay31@gmail....
Wed Mar 17 09:11:27 CDT 2010


On Wed, Mar 17, 2010 at 7:19 AM, Darren Dale <dsdale24@gmail.com> wrote:
> Is this general enough for your use case? I haven't tried to think
> about how to change some global state at one point and change it back
> at another, that seems like a bad idea and difficult to support.

Sounds like the textbook use case for the python 2.5/2.6 context
manager.   Pity we can't use it yet... (and I'm not sure it'd be easy
to wrap around the calls here.)

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma


More information about the NumPy-Discussion mailing list