[Numpy-discussion] More doctest questions

2008-07-03 Thread Alan McIntyre
Just a couple of quick questions for whomever knows:

1. Should we skip the numpy/f2py directory when looking for doctests?

2. Are the functions in numpy/lib/convdtype.py used anywhere? I can
fix the doctests so they run, but I can't find anywhere they are used,
so I wanted to see if they were intended for removal but forgotten.

Thanks,
Alan
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] More doctest questions

2008-07-03 Thread Robert Kern
On Thu, Jul 3, 2008 at 18:49, Alan McIntyre [EMAIL PROTECTED] wrote:
 Just a couple of quick questions for whomever knows:

 1. Should we skip the numpy/f2py directory when looking for doctests?

I don't see anything there that should cause problems (according to my
understanding of the collector). Are you seeing problems?

 2. Are the functions in numpy/lib/convdtype.py used anywhere? I can
 fix the doctests so they run, but I can't find anywhere they are used,
 so I wanted to see if they were intended for removal but forgotten.

I think they were intended to be used for the Numeric-numpy code
transformation. It never got used. Delete it.

-- 
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
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] More doctest questions

2008-07-03 Thread Alan McIntyre
On Thu, Jul 3, 2008 at 8:26 PM, Robert Kern [EMAIL PROTECTED] wrote:
 1. Should we skip the numpy/f2py directory when looking for doctests?

 I don't see anything there that should cause problems (according to my
 understanding of the collector). Are you seeing problems?

Actually it's a problem with the execution context restriction we
added for NumPy doctests; they no longer have access to all the stuff
in the module where they are declared.  So in f2py/lib/extgen/base.py,
the Container doctest expects the Container class to be available, but
it isn't.

 2. Are the functions in numpy/lib/convdtype.py used anywhere? I can
 fix the doctests so they run, but I can't find anywhere they are used,
 so I wanted to see if they were intended for removal but forgotten.

 I think they were intended to be used for the Numeric-numpy code
 transformation. It never got used. Delete it.

Ok.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] More doctest questions

2008-07-03 Thread Robert Kern
On Thu, Jul 3, 2008 at 19:42, Alan McIntyre [EMAIL PROTECTED] wrote:
 On Thu, Jul 3, 2008 at 8:26 PM, Robert Kern [EMAIL PROTECTED] wrote:
 1. Should we skip the numpy/f2py directory when looking for doctests?

 I don't see anything there that should cause problems (according to my
 understanding of the collector). Are you seeing problems?

 Actually it's a problem with the execution context restriction we
 added for NumPy doctests; they no longer have access to all the stuff
 in the module where they are declared.  So in f2py/lib/extgen/base.py,
 the Container doctest expects the Container class to be available, but
 it isn't.

f2py/lib is now gone as of today. It was the implementation of the
next version of f2py. The development of that has moved elsewhere.

Any other problems?

-- 
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
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion