[Python.NET] Python for .NET advantages

Simunic,Kresimir Kresimir.Simunic at Reicofil.com
Tue Oct 18 11:05:36 EDT 2016


Hello all,

I have Python script that basically has 3 functions, two of them I am calling only once in beginning, and one function I call regularly let's say every second.

All functions are of type to have some parameters and give back result without some state being saved between call.

I realized this calls using Python for .NET.

But, now I ask myself if I have any real advantage comparing scenario in which I would call python interpreter from C# program directly, then python program would store result in txt file and I would read it from C# program.

Can someone tell me what would be disadvantage of such approach ?

Ok, I can imagine parameter transfer is more complicated, exception handling probably also, maybe python also would need more time to perform this functions because of some initialization methods that it would have to repeat each time python interpreter is called ?

Thanks,

Regards.

Kresimir Simunic.

--






[cid:k2016_email_footer_200x78.jpg]



Reifenh?user Reicofil GmbH & Co. KG
Spicher Stra?e 46, 53844 Troisdorf, Germany
Registergericht Siegburg, Reg.Nr. HR A 4534
USt-IdNr. DE 814359351, Steuer-Nr. 5220/5760/0426
Reifenh?user Reicofil Verwaltungs-GmbH
Registergericht Siegburg, Reg.Nr. HR B 788
Gesch?ftsf?hrer: Dr.-Ing. Bernd Kunze

Please note: This message may contain information which is privileged, confidential and proprietary.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20161018/c4f39600/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: k2016_email_footer_200x78.jpg
Type: application/octet-stream
Size: 23808 bytes
Desc: k2016_email_footer_200x78.jpg
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20161018/c4f39600/attachment-0001.obj>


More information about the PythonDotNet mailing list