Re: Loading C extension from memory

2010-05-19 Thread Christian Heimes
mk wrote: I wonder if there is a way to load C extension from in-memory object, not from the file on the disk? No, that's not possible since Python depends on the operating system. A lot of operating systems require a physical file to load the shared library from. Python uses dlopen() on most

Re: Loading C extension from memory

2010-05-19 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/13/2010 06:14 AM, mk wrote: > I wonder if there is a way to load C extension from in-memory object, > not from the file on the disk? > > I'm asking bc I would like to download C extensions over network and > load them into Python interpreter (wi

Re: Loading C extension from memory

2010-05-14 Thread Martin v. Loewis
> I wonder if there is a way to load C extension from in-memory object, > not from the file on the disk? > > I'm asking bc I would like to download C extensions over network and > load them into Python interpreter (without storing the C extension in > file on the disk). > > I googled for this bu