Re: python modules
2007/7/13, Mathieu Prevot <mprevot@freebsd.org>:
> I learn that modules loaded with import fall into 4 general categories:
> - code written in Python (.py)
> - C or C++ extensions that have been compiled into shared libraries (or DLLs)
> - Packages containing collection of modules
> - Built-in modles writen in C and linked into the Python interpreter
>
> Why don't we use directly the libpmc library in C instead of rewritting
> things in python ?
I copied libpmc.so and tryed 'import libpmc'. I have:
ImportError: dynamic module does not define init function (initlibpmc)
Are we really far from having a libpmc module ?
Mathieu
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
討論串 (同標題文章)