Re: [Numpy-discussion] Anyone have a well-tested SWIG-based C++ STL valarray = numpy.array typemap to share?

2007-09-07 Thread David M. Cooke
Christopher Barker [EMAIL PROTECTED] writes: Joris De Ridder wrote: A related question, just out of curiosity: is there a technical reason why Numpy has been coded in C rather than C++? There was a fair bit of discussion about this back when the numarray project started, which was a

Re: [Numpy-discussion] Anyone have a well-tested SWIG-based C++ STL valarray = numpy.array typemap to share?

2007-09-07 Thread David M. Cooke
Bill Spotz [EMAIL PROTECTED] writes: On Sep 5, 2007, at 11:38 AM, Christopher Barker wrote: Of course, it should be possible to write C++ wrappers around the core ND-array object, if anyone wants to take that on! boost::python has done this for Numeric, but last I checked, they have not

[Numpy-discussion] Importing data from html tables

2007-09-07 Thread ale
Hi, I'm trying to import into array the data contained in a html table. I use BeautifulSoup as html parser html = open('T0015.html','r') bs = BeautifulSoup(html) for tr in bs.findAll('tr')[1:]: table.append([td.p.string for td in tr.findAll('td')]) and I get this: print table

Re: [Numpy-discussion] Importing data from html tables

2007-09-07 Thread Robert Kern
ale wrote: Hi, I'm trying to import into array the data contained in a html table. I use BeautifulSoup as html parser html = open('T0015.html','r') bs = BeautifulSoup(html) for tr in bs.findAll('tr')[1:]: table.append([td.p.string for td in tr.findAll('td')]) and I get this:

[Numpy-discussion] why system_info.check_libs does not look for dll on windows ?

2007-09-07 Thread David Cournapeau
Hi, I would like to know if there is a reason why system_info does not look for dll on windows ? I think it would make sense to look for dll when you want to use an external lib through ctypes, for example. cheers, David ___

Re: [Numpy-discussion] Anyone have a well-tested SWIG-based C++ STL valarray = numpy.array typemap to share?

2007-09-07 Thread Lisandro Dalcin
David, I'll try to show you what I do for a custom C++ class, of course this does not solve the issue resizing (my class does not actually support resizing, so this is fine for me): My custom class is a templatized one called DTable (is like a 2d contiguous array), but currently I only

Re: [Numpy-discussion] Anyone have a well-tested SWIG-based C++ STL valarray = numpy.array typemap to share?

2007-09-07 Thread David Goldsmith
Thanks! DG Lisandro Dalcin wrote: David, I'll try to show you what I do for a custom C++ class, of course this does not solve the issue resizing (my class does not actually support resizing, so this is fine for me): My custom class is a templatized one called DTable (is like a 2d