"incr Tcl offers a more complete and much-cleaner object-oriented support than Python". Too bad Frank didn't stick around for TclOO! "I prefer Python because its standard library is a gold mine."
The popularity of Zope (Z Object Publishing Environment), an open-source Web application server and portal tool kit written in Python, has increased interest in the programming language.
Elmer allows developers to write code in Python and execute it in Tcl. The resulting Tcl interface to the Python code generated by Elmer is transparent to the Tcl user... Python calls appear as Tcl calls ( "foo( 1, "a" )" in Python appears as "foo 1 a" in Tcl, for example) and Python and Tcl data types are automatically mapped (Tcl lists are converted to Python lists, Python dictionaries are returned as Tcl associative arrays, etc.). Elmer also supports Python's "freeze" module, allowing a Python developer to deliver a single library consisting of several Python files "frozen" in to the Tcl application... no need to set PYTHONPATH or have Python source files accompanying the Tcl application.
a Tcl extension to call Python from inside Tcl. The intention is to take the good parts of Elmer and tclpython and combine them to let you get going as fast as possible.
Description
Python includes a standard facility for object-oriented programming.
Tcl is bundled into Python in order to make Tk available as the Python module, Tkinter. Beginning at version v1.5.2, includes IDLE, an integrated development environment for Python that requires Tkinter. Python 2.4 not only supports Tk on Unix, but Tk on Windows and Macintosh platforms as well.
An example of converting a Tcl list to a Python tuple:
AMG: Does anyone have Tcl code to read Python pickle [L2 ] data? Tcl pickle, heh. Maybe someday I might develop it, if no one else has already done so.
"a Python script can be expected to work for two to three years, but not for five or more. Older scripts will either crash, which is a nuisance, or produce different results, which is much worse because the problem may well go unnoticed." [L3 ]
What exactly is the difference between / and // in Python? I could imagine what is going on in the first few examples, but "1//0.2" resulting in "4" really makes me wonder ...
In theory (see PEP 238 ) the operator // realizes a flooring division and a // b could be equivalent to math.floor(a / b). But it seems there are hairy corners behind the scenes and this is not equivalent (Python 3.4.1):
However after the division operator was "improved" people seem to have great fun to figure out how division actually behaves for their packages and Python version. Tcl...