[PythonCE] Python within another application
anthony.tuininga at gmail.com
Tue May 17 18:05:45 CEST 2005
Just for your information we are using the current Python 2.3.4
distribution unchanged as an embedded interpreter for a PocketBuilder
application and it is working just fine. We do the same thing for a
few of our PoweBuilder applications on standard Windows machines and
the same code works on both -- both Python and C. The only gotcha for
us was the fact that the WinCE platform is Unicode only and we were
avoiding Unicode on the Win32 platform.... :-)
On 5/17/05, mike at pcblokes.com <mike at pcblokes.com> wrote:
> Quoting James Salter <jsalter at cse.unsw.edu.au>:
> > Thanks for the prompt advice Fuzzy.
> > Getting into the guts of python may be acceptable, depending on whether its
> > going to be worth it.
> > Anyone willing to indulge me even further by mounting a case for python in
> > favour of a VBScript / Jscript host (apart from the fact that VBScript is
> > vile)?
> You should only use Python if you want a scripting language that your
> users will
> actually be able to program in. If usability isn't a concern then another
> language may be more suitable ;-)
> Seriously though, I guess there is already a Jscript implementation built into
> WindowsCE. It may be easier/more practical to leverage that.
> Building a minimum (embeddable) Python VM for the Windows CE platform
> would be a
> very cool thing of course.....
> > James
> >> -----Original Message-----
> >> From: mike at pcblokes.com [mailto:mike at pcblokes.com]
> >> Sent: Tuesday, 17 May 2005 7:18 PM
> >> To: James Salter
> >> Cc: pythonce at python.org
> >> Subject: Re: [PythonCE] Python within another application
> >> Quoting James Salter <jsalter at cse.unsw.edu.au>:
> >> > Hi all.
> >> >
> >> > A few years back I implemented Python scripting in a win32 ftp client. I
> >> > was wondering if the procedure would be similar, or possible, on a CE
> >> app.
> >> >
> >> > James
> >> The issue is whether the C API is exposed in the same way. The answer is
> >> probably *yes* - as it is just a port of the main python distribution.
> >> (I have no experience of this - so this is all conjecture of course).
> >> I think your main problem will be resource consumption on the limited
> >> platform.
> >> If you cut down the python interpreter to only include the bare
> >> essentials (get
> >> rid of some of the embedded modules etc) then it would be more viable.
> >> That may
> >> entail more work in the Python source code than you are up for though.
> >> Best Regards,
> >> Fuzzy
> >> http://www.voidspace.org.uk/python
> >> > _______________________________________________
> >> > PythonCE mailing list
> >> > PythonCE at python.org
> >> > http://mail.python.org/mailman/listinfo/pythonce
> >> >
> PythonCE mailing list
> PythonCE at python.org
More information about the PythonCE