[Tutor] OT, Tcl & Python
ralobao at gmail.com
Mon Jul 18 02:14:30 CEST 2005
Why do not do this entirely in Python ?
Em Seg, 2005-07-18 às 02:00 +0200, Andreas Kostyrka escreveu:
> Am Samstag, den 16.07.2005, 01:19 -0700 schrieb Luis N:
> > Hi,
> > I was wondering if someone knowledgeable of both Tcl and Python could
> > suggest whether it would be a good or a bad idea to write a Python/Tk
> > application, with the motive to rewrite the application in Tcl/Tk once
> > completed. My reason for considering this route is that I have never
> > written a single line of Tcl code nor coded a Tk application in the
> > past. My motivation is the greater ease of deployment across systems
> > that Tcl seems to offer, with Starkits and Starpacks,
> > http://www.equi4.com/starkit.html Tcl also appears useful to learn,
> > for writing scripts in tclsh, etc.
> Well, Tcl isn't really a "language". Or if it is, it's so "trivial" that
> it is usually explained without a BNF grammar.
> tclsh is basically a shell (like /bin/sh), which has been designed to be
> easily extendable with C functions. Tcl had only a string data type for
> most of it's life. (Other data types like integer where added only in
> the last years ;) )
> Tcl is quite "cool" as a glue language, but implementing anything beyond
> 100-lines scripts is painful.
> OTOH it's certainly a good idea to learn Tcl (and it's C API).
> > I've experimented with py2exe in the past, which seems fine for
> > Windows, although I have never tried py2app, and this approach seems
> > cumbersome. A typical GUI app is approximately 5 MB in python,
> > distributed as a collection of files in a folder, whereas a Tcl
> > Starpack is a compact 1 MB, distributed as a single file executable.
> > Sincerely,
> > Luis
> > _______________________________________________
> > Tutor maillist - Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> Tutor maillist - Tutor at python.org
ralobao at ubuntu -> python
>>> print "http://ralobao.blogspot.com"
>>> import sys; sys.exit(0)
More information about the Tutor