From: Kent Johnson <kent37@td...> - 2005-08-26 13:38:55
Ken Beesley wrote:
> I see references claiming that jython does not
> work well with "Python packages written in C".
> What does this mean? and how can one tell
> if a particular package (e.g. re) is written in C?
Jython does not work at all with Python packages written in C. This is mostly a problem with third-party packages you want to use with Jython. You can tell if the package has a C component by looking for .pyd files and libraries such as .dll or .so. Often you can find an equivalent Java package to do the same thing and use that from Jython.
Many of the standard library modules are available in Jython including some which have C components in CPython. For Jython, typically the C components have been re-written in Java or Python using the Java standard library as a base. In particular re is available in Jython. The easiest way to find out if a standard library module is available in Jython is just to try to import it and use it.