shared memory module bugs?
Alex Martelli
aleax at aleax.it
Tue Oct 8 18:10:18 EDT 2002
More information about the Python-list mailing list
Tue Oct 8 18:10:18 EDT 2002
- Previous message (by thread): shared memory module bugs?
- Next message (by thread): shared memory module bugs?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
?????? ?. wrote:
...
> add the option of creating new objects in the shared memory pool.
>
> Is this possible with python? The last time I was looking you couldn't
> replace Python's memory manager in runtime.
No, but you can define a type's tp_alloc so that it gets memory for
instances of the type however it likes best. I believe this only works
for types defined in C (i.e., that is option is not given for Python-coded
types), at least currently.
Alex
- Previous message (by thread): shared memory module bugs?
- Next message (by thread): shared memory module bugs?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list