Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-04 Thread Sasha
On 11/3/06, Torgil Svensson <[EMAIL PROTECTED]> wrote: > class struct_type(Structure): > _fields_ = [] > > ... > ... which is somewhat static in nature. How do you create "structures" > dynamically? > You can put the above in a function that takes fields as an argument, or type('struc

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-03 Thread Alexander Belopolsky
On 11/3/06, Torgil Svensson <[EMAIL PROTECTED]> wrote: > class struct_type(Structure): > _fields_ = [] > > ... > ... which is somewhat static in nature. How do you create "structures" > dynamically? > You can put the above in a function that takes fields as an argument, or type('struc

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-02 Thread Torgil Svensson
> > It seems to me that at the python level, there's not much reason to > > choose the dtypes proposal over ctypes. I disagree. I can see a point in unifying ctypes and dtypes but in my mindset they've got two different scopes. ctypes is an interface to the c language dtype is a data description

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-01 Thread Bill Baxter
On 11/2/06, A. M. Archibald <[EMAIL PROTECTED]> wrote: On 01/11/06, Travis Oliphant <[EMAIL PROTECTED]> wrote:> And it may be a good idea to also have a get_ctype method or some-such> on the ctypes attribute so that  one could get a "ctypes description" > from the NumPy data-type.It seems to me tha

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-01 Thread A. M. Archibald
On 01/11/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > And it may be a good idea to also have a get_ctype method or some-such > on the ctypes attribute so that one could get a "ctypes description" > from the NumPy data-type. It seems to me that at the python level, there's not much reason to

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-01 Thread Travis Oliphant
Alexander Belopolsky wrote: > On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > ... > >> Please understand what I meant. I meant putting effort into getting >> PyArray_DescrConverter to allow ctypes inputs and convert to the >> appropriate PyArray_Descr * structure. I already understa

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-01 Thread Lisandro Dalcin
On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > I'm recruiting more comments on python-dev regarding my two proposals > for improving Python's native ability to share ndarray-like information. > I believe there are another really important reason to support Travis's proposal. Python s

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-01 Thread Sasha
On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > No, it's not that simple. We have a headache whenever we want to do > something like I just did and separate out the concepts of what makes a > Python Object a Python object. Now, we don't just modify a simple > C-structure (PyArray_Descr

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-01 Thread Bill Baxter
Grr, I wrote something up (it was wonderfully eloquent and convincing --  trust me!), but the gmane interface seems to have lost it (I posted two things before responding to the two "authorization requested" emails, and only one of the two things ever got posted it seems.) --bbOn 11/2/06, Lisandro

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-11-01 Thread Lisandro Dalcin
On 10/31/06, Bill Baxter <[EMAIL PROTECTED]> wrote: > One thing I see with PIL and Matplotlib and PyOpenGL is that they're having > to add specific support for Numpy and numeric and numarray and PIL and > ctypes etc. This is a real problem, and a waste of developing time, because we lack a **gener

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Bill Baxter
One thing I see with PIL and Matplotlib and PyOpenGL is that they're having to add specific support for Numpy and numeric and numarray and PIL and ctypes etc.I'm also in the camp that doesn't really understand this stuff well enough to really argue in favor of it, but would the proposed extensions

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Alexander Belopolsky
On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: ... > Please understand what I meant. I meant putting effort into getting > PyArray_DescrConverter to allow ctypes inputs and convert to the > appropriate PyArray_Descr * structure. I already understand ctypes > objects. I want the dtype()

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Josh Marshall
On 11/31/06, Fernando Perez <[EMAIL PROTECTED]> wrote: > Fernando Perez wrote: > ps - one more thing. This guy: > > http://blog.vrplumber.com/ > > has been rewriting the OpenGL bindings using ctypes, and I've seen > posts from him about numpy (in his blog). He might be able to > contribute some

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Travis Oliphant
Sasha wrote: >On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > > >>Please read my posts about the Python type-object verses normal Python >>Object situation. That really is the crux of the matter. >> >> >> >I read the whole python-dev thread before replying. I may be a little >b

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Travis Oliphant
Sasha wrote: >On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > >Yes, this is the key. I think we should better understand ctypes >limitations before proposing an alternative. > I already understand it's practical limitations --- type objects as data-type instances is too bulky and

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Sasha
On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Please read my posts about the Python type-object verses normal Python > Object situation. That really is the crux of the matter. > I read the whole python-dev thread before replying. I may be a little biased because I never liked somewha

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Travis Oliphant
Sasha wrote: >On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > >>I'm recruiting more comments on python-dev regarding my two proposals >>for improving Python's native ability to share ndarray-like information. >> >> >> > >I would love to help, but I feel that I will be on the othe

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Travis Oliphant
Sasha wrote: >On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > >>I'm recruiting more comments on python-dev regarding my two proposals >>for improving Python's native ability to share ndarray-like information. >> >> >> > >I would love to help, but I feel that I will be on the othe

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Alan G Isaac
On Tue, 31 Oct 2006, Sasha apparently wrote: > I think we should attempt to implement a ctypes approach You are probably aware that Travis has addressed this at some length on comp.python.devel (for example http://article.gmane.org/gmane.comp.python.devel/84661 http://article.gmane.org/gmane.co

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Sasha
On 10/31/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > I'm recruiting more comments on python-dev regarding my two proposals > for improving Python's native ability to share ndarray-like information. > I would love to help, but I feel that I will be on the other side of the disagreement. (Th

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread David L Goldsmith
Perhaps you could please elaborate on what you regard as "the issue(s)" and "what's at stake"? I'm still comparatively new (been using python and numpy circa 8-9 months), but so far I haven't encountered any problems I'd attribute to "Python's ... [in]ability to share ndarray-like information"

Re: [Numpy-discussion] Need more comments from scientific community on python-dev

2006-10-31 Thread Alan Isaac
On Tue, 31 Oct 2006, Travis Oliphant wrote: > Please, please. If you want Python to grow support for > the array interface (or something like it), then please > speak up on python-dev. The easiest access to this discussion for me was http://news.gmane.org/group/gmane.comp.python.devel/ I cann