|
Re: pyrexembed: How to make a method which returns a struct: msg#00029python.pyrex
On 22 May, Martin Dobiasch wrote: > Hi! > > I want to write a class with memberfunctions which returns structures Who is calling these member functions? A C-struct is not an intrinsic data type in Python. Python uses dictionaries to store the data of a class instance. So, even if you could return such a beast you couldn't do anything with it. If you just want to hand an address around use a cObject http://docs.python.org/dev/api/cObjects.html -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Pyrex v Psyco: 00029, John Machin |
|---|---|
| Next by Date: | Re: using C char array problem: 00029, Helmut Jarausch |
| Previous by Thread: | Pyrex v Psycoi: 00029, Philip Smith |
| Next by Thread: | Re: using C char array problem: 00029, Helmut Jarausch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |