Wrapping Python objects as Variants in currently implemented with Delphi custom
variants.
Formerly this was done using the PythonAtom unit which used the COM disp
interface (IDispatch) mechanism.
The adavantage of the PythonAtom way is that you can pass on the wrapped Python
objects via COM, even out of process, because COM is taking care of marshalling
etc.
With VarPath-wrapped objects this is not possible.
Event in-process things go wrong as soon as you assign the variant to an
OleVariant. The Custom Variant-mechanis casts the VarPyth instance
automatically into an OleString.
I still need the PythonAtom implementiation as i'm using the wrapped python
objects via COM. I just copied PythonAtom.pas and AtomPythonEngine.pas from an
older version of PythonForDelphi and it works.
Please bring back these units into the trunk.
Cheers
Samuel
Original issue reported on code.google.com by samuel.i...@gmail.com on 14 Jul 2011 at 3:29
Original issue reported on code.google.com by
samuel.i...@gmail.com
on 14 Jul 2011 at 3:29