A new Python header
Kirk McDonald
kirklin.mcdonald at gmail.com
Wed Jun 21 12:24:05 PDT 2006
Brad Anderson wrote:
> Kirk McDonald wrote:
>
>>Durrrr, that's not the right URL. It's this:
>>
>>http://216.190.88.10:8087/media/python.d
>
>
>
> Kirk,
>
> Do you need a place to host this project of yours? Might I offer up
> dsource.org for you? I would need a project name (hopefully more exciting
> than Dython, but if that's all you got...) and a short description to get you
> set up.
>
> It seems as if it's gone beyond just being a binding, but if not, and you
> don't want a full-blown project, you can always use the Bindings project to
> get SVN source control on your files.
>
> http://www.dsource.org/projects/bindings
>
> Cheers,
> Brad
I've been calling it "Pyd" (pronounced "pied"), but I am open to
suggestions. :-)
I would certainly enjoy some dsource space. My webserver is just my poor
little Linux box. (Although my logs show only 10 people have grabbed
that file so far, so I think it's been up to the task.) :-)
The long-term goal is something analagous to Boost.Python. At the
moment, all I have is a nifty function wrapper and a class that manages
a PyObject*, overloading very nearly every single overloadable operator,
passing them along to various Python API functions. (The class,
DPyObject, is largely working, but I need to clean up the opCall
overload somewhat.) I also have a couple functions that can convert
values to and from arbitrary Python objects, which support both the
function wrapper and the DPyObject class. Some next steps include better
support for lists, tuples, and dicts. (An array or AA of a convertable
type can easily be converted to a Python list or dict. A Python list or
dict can easily be converted to an array or AA of DPyObjects. It would
also be nice to have a Boost.Python-style make_tuple function.)
So! A short description might be: "An object-oriented wrapper around the
Python API."
-Kirk McDonald
More information about the Digitalmars-d
mailing list