Re: python modules

看板FB_hackers作者時間18年前 (2007/07/24 11:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
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"
文章代碼(AID): #16fMlU00 (FB_hackers)
文章代碼(AID): #16fMlU00 (FB_hackers)