yethum / python4delphi

Automatically exported from code.google.com/p/python4delphi
0 stars 0 forks source link

Bring back PythonAtom #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Brought them back, but please note that they will remain deprecated.

Original comment by pyscripter on 4 Dec 2011 at 12:23