Re: [Numpy-discussion] [OT] Why Python 'fits your brain'

2006-11-10 Thread Thomas Heller
Steven H. Rogers schrieb: > Lisp has minimal syntax, as does APL, which does make them easy to learn if > you have no preconceptions about what a programming language should be. > They're rarely, if ever the first language people learn, so the strange > appearance is a barrier that offsets the b

Re: [Numpy-discussion] Cannot build numpy svn on Windows

2006-07-18 Thread Thomas Heller
Albert Strasheim schrieb: > Hello all > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:numpy- >> [EMAIL PROTECTED] On Behalf Of Keith Goodman >> Sent: 18 July 2006 15:55 >> To: Thomas Heller >> Cc: numpy-discussion@lists.sourceforge.net

[Numpy-discussion] Cannot build numpy svn on Windows

2006-07-18 Thread Thomas Heller
Building numpy from svn on Windows with Python 2.4.3 fails: c:\svn\numpy\numpy\core\include\numpy\arrayobject.h(986) : fatal error C1017: invalid integer constant expression When I change this line in the generated config.h file: #define NPY_ALLOW_THREADS WITH_THREAD to this one: #define NPY_

Re: [Numpy-discussion] Numpy array from ctypes pointer object?

2006-07-12 Thread Thomas Heller
Mark Heslep schrieb: > Travis Oliphant wrote: >> Mark Heslep wrote: >>> I don't see a clean way to create a numpy array from a ctypes pointer >>> object. Is the __array_interface_ in ctypes the thing thats missing >>> needed to make this happen? I've followed Albert's Scipy cookbook >>> on cty

Re: [Numpy-discussion] Array interface and builtin array.array example

2006-07-12 Thread Thomas Heller
Karol Langner schrieb: > On Wednesday 12 July 2006 13:29, Thomas Heller wrote: >> Sasha schrieb: >> > I had similar hopes when I submited the array interface patch >> > <https://sourceforge.net/tracker/index.php?func=detail&aid=1452906&group_ >> >id=5

Re: [Numpy-discussion] Array interface and builtin array.array example

2006-07-12 Thread Thomas Heller
Sasha schrieb: > I had similar hopes when I submited the array interface patch > > and announced it on python-dev > . > > I am still waiti

Re: [Numpy-discussion] Ctypes support in NumPy

2006-07-04 Thread Thomas Heller
Albert Strasheim schrieb: > Hey Thomas > > Thomas Heller wrote: >> Thomas Heller schrieb: >> > I've also played a little, and I think one important limitation in >> ctypes >> > is that items in the argtypes list have to be ctypes types. >> &g

Re: [Numpy-discussion] Ctypes support in NumPy

2006-07-04 Thread Thomas Heller
Thomas Heller schrieb: > I've also played a little, and I think one important limitation in ctypes > is that items in the argtypes list have to be ctypes types. Thi swas misleading: I mean that this limitation should probably be removed, because it prevents a lot of things one could

Re: [Numpy-discussion] Ctypes support in NumPy

2006-07-04 Thread Thomas Heller
Travis Oliphant schrieb: > I've been playing a bit with ctypes and realized that with a little > help, it could be made much easier to interface with NumPy arrays. > Thus, I added a ctypes attribute to the NumPy array. If ctypes is > installed, this attribute returns a "conversion" object othe

Re: [Numpy-discussion] Array interface updated to Version 3

2006-06-20 Thread Thomas Heller
Travis Oliphant schrieb: > I just updated the array interface page to emphasize we now have version > 3. NumPy still supports objects that expose (the C-side) of version 2 > of the array interface, though. > > The new interface is basically the same except (mostly) for asthetics: > The diff

Re: [Numpy-discussion] Array Interface

2006-06-16 Thread Thomas Heller
Travis Oliphant wrote: > Thanks for the continuing discussion on the array interface. > > I'm thinking about this right now, because I just spent several hours > trying to figure out if it is possible to add additional > "object-behavior" pointers to a type by creating a metatype that > sub-typ

Re: [Numpy-discussion] Array Protocol change for Python 2.6

2006-06-16 Thread Thomas Heller
Robert Kern wrote: > Francesc Altet wrote: >> A Divendres 09 Juny 2006 11:54, Albert Strasheim va escriure: >> >>>Just out of curiosity: >>> >>>In [1]: x = N.array([]) >>> >>>In [2]: x.__array_data__ >>>Out[2]: ('0x01C23EE0', False) >>> >>>Is there a reason why the __array_data__ tuple stores the