On Fri, Jul 20, 2007 at 02:53:42PM -0700, Christopher Barker wrote:
> Paul Kienzle wrote:
> > On Fri, Jul 20, 2007 at 12:34:44PM -0700, Christopher Barker wrote:
> >> Out of 491 names in the numpy namespace, I found 26 that would commonly 
> >> be found in math expressions. 
> 
> > The C99 math/complex headers define a number of symbols.
> 
> Sure, but you don't need all of those. My idea was thus:
> 
> "Namespaces are one honking great idea"
> 
> but they are kind of ugly inside math expressions. But:
> 
> "Practicality beats purity"
> 
> so I think it does make sense to bring the common names that show up in 
> math expressions into the main namespace. Not all the handy little names 
> ( like isnan, zeros, linspace, etc.) only the ones that show up in the 
> depths of nested math expressions, so that we can write code that looks 
> like math. That's how I came up with my personal list of 26.
> 
> This is probably best just done by each individual according to his/her 
> taste.

That's what I'm trying to get away from.  I want to be able to write
the contains() function in patch.py and just use the normal math where
it makes sense to use normal math.

I suppose one approach is to go through all of mpl, find what is being
imported with what frequency, and build the list based on that.

Maybe I will get a chance this weekend.  Right now I have to go back to 
the "matplotlib svn doesn't build on windows" problem.

        - Paul

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to