I fear Mark didn't see your mail because of spam filtering (I just saw
it today in my monthly spam-check).
2009/10/10 Cadix <046...@gmail.com>:
What I found the easiest to do is to add support for additional python
modules from the standard library ; you just have to create the
corresponding <moduleName>.py in the lib/ directory and add to it the
methods prototypes, with enough code to allow static type inference --
what the code actually does is of no importance (have a look at the
existing modules to get an idea).
Then, you've to write the actual C++ code in <moduleName>.{hpp,cpp},
again in the lib/ directory (the code must be in the __<moduleName>__
namespace ; functions have the same name as in Python ; useful base
classes are in lib/builtin.hpp). That's all. This is rather easy,
because there is very few to know about shedskin to get something that
works.
Btw, I'm working on the itertools module, so don't take that one ;-)
Then you have the compiler code, in Python ; but I didn't have
sufficient knowledge on this part to help you.
@ Mark : what about changing the google group messages policy to one
that requires prior moderation for first-time posters ? It could help
to distinguish between spam and non-spam. I'm ready to help you to
manage this, if you want.
Best regards,
--
Jérémie Roquet - Arkanosis
Programming artist
Developer in natural language processing - Exalead