[Dcmlib] Uncomprehensible code !!!

Benoit Regrain benoit.regrain at creatis.insa-lyon.fr
Mon Aug 29 16:16:22 CEST 2005




----- Original Message ----- 
From: "Jean-Pierre Roux" <jpr at creatis.insa-lyon.fr>
To: "Benoit Regrain" <benoit.regrain at creatis.insa-lyon.fr>
Cc: "Mailing list gdcm" <dcmlib at creatis.insa-lyon.fr>
Sent: Monday, August 29, 2005 3:56 PM
Subject: Re: [Dcmlib] Uncomprehensible code !!!


>> An other point in the same file, when wrapping in python.
>> The problem isn't the wrapping, but the python use... it warns
>> on a Runtime problem.
>>
>>    dynamic_cast< Document* > ( set )
>>
>> when set is a document... so, when set == this,
>> python can't solve this runtime dynamic_cast.
>> I have solve it.
>
> --> Something I don't understand is *why* Python cares about some C++ code 
> it doesn't see (inside a method, called thru a wrapper) ?!?
Python doesn't see the C++ code, but a dynamic_cast is dependant
to its environnement... I think that Python does anything that generates 
this
problem...
But I can't explain it more.

Benoit 




More information about the Dcmlib mailing list