| From | Sent On | Attachments |
|---|---|---|
| Steve Lewis | Sep 16, 2009 6:50 pm | |
| Philip Jenvey | Sep 17, 2009 11:22 am | .bz2 |
| Philip Jenvey | Sep 17, 2009 1:23 pm |
| Subject: | [Jython-dev] bz2 module | |
|---|---|---|
| From: | Steve Lewis (spir...@yahoo.com) | |
| Date: | Sep 16, 2009 6:50:04 pm | |
| List: | net.sourceforge.lists.jython-dev | |
Hey all,
I'm new to Jython, and I've started working on the bz2 module implementation.
I've looked at the PortingPythonModulesToJython wiki, and I was following that,
but I can't seem to get my bz2 module to be recognized:
Traceback (most recent call last): File "test_bz2.py", line 11, in <module> import bz2 ImportError: No module named bz2
It appears that there is more than one way to register a module, if the
"JythonModulesInJava" is still valid:
"My new approach is borrowed slightly from CPython where it's very common to write a C library, a straight wrapper and then a Pythonic wrapper."
So, is there a way I can use the new approach? It looks like (reading the
CPythonLib/csv.py) that if I create a "bz2.py" file in the CPythonLib directory,
then jython might see it? Or is there a piece of ant that copies the ... oh
there it is.
CPythonLib.includes. There it is. Thanks for the help! Steve
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf
_______________________________________________ Jython-dev mailing list Jyth...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-dev






.bz2