Is PyD working?

Kirk McDonald kirklin.mcdonald at gmail.com
Sun Aug 12 20:11:07 PDT 2007


Bill Baxter wrote:
> Kirk McDonald wrote:
> 
>> Bill Baxter wrote:
>>
>>> Anyone had any luck building the PyD examples with a recent checkout 
>>> of PyD from SVN?
>>>
>>> The 'hello' example works fine, but the samples that use wrap_class 
>>> don't.
>>>
>>> I posted on the PyD forum a few days back but no response, hence the 
>>> post here to see if anyone knows anything about the situation.
>>>
>>> --bb
>>
>>
>> Heh. I don't check that forum very often. :-)
>>
>> It compiled the last time I tried. Give me a little while, and I'll 
>> double check that I haven't broken things horribly.
>>
> 
> Thanks.  It compiles, it just generates a runtime error saying it can't 
> convert the Py class to a D class.
> 
> I spent about 30 minutes trying to debug it, but there's way too much 
> going on there in that class wrapping stuff for me to spot the problem.
> 
> FWIW, I'm on WinXP with Python 2.5, DMD 1.020
> 
> --bb

I have tracked down what I think is the precise problem: Instantiating a 
class with an Init!() specified from Python doesn't work. (The resulting 
Python object is useless.) I'm tentatively putting it down to the stuff 
I did recently to soften the symbol length issues. I'll be changing a 
bunch of that stuff back, and seeing if that fixes it.

This probably means the symbol length stuff won't get resolved until 
__traits is up to snuff (which should solve the problem entirely).

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org



More information about the Digitalmars-d mailing list