Python

back

Home = http://www.python.org/ ...

A simple definition - taken out of the setup.py file, in the dist folder ...

SUMMARY = """
Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.

Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac, MFC). New built-in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface.

The Python implementation is portable: it runs on many brands of UNIX, on Windows, DOS, OS/2, Mac, Amiga... If your favorite system isn't listed here, it may still be supported, if there's a C compiler for it. Ask around on comp.lang.python -- or just try compiling Python yourself.
"""

The head of that file give a good example of the declarative nature of Python ...

# Autodetecting setup.py script for building the Python extensions
#

__version__ = "$Revision: 1.213 $"

import sys, os, imp, re, optparse

from distutils import log
from distutils import sysconfig
from distutils import text_file
from distutils.errors import *
from distutils.core import Extension, setup
from distutils.command.build_ext import build_ext
from distutils.command.install import install
from distutils.command.install_lib import install_lib

# This global variable is used to hold the list of modules to be disabled.
disabled_module_list = []

def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (at the front) if
1) 'dir' is not already in 'dirlist'
2) 'dir' actually exists, and is a directory."""
if dir is not None and os.path.isdir(dir) and dir not in dirlist:
dirlist.insert(0, dir)

... lots left out ...

# --install-platlib
if __name__ == '__main__':
   main()

One can see this is an 'application' that starts by calling the main() function ...

The python 'org' site has a good list of editors - http://www.python.org/moin/PythonEditors ... it divides them into categories ... a sample is -
Alphatk - http://www.santafe.edu/~vince/alphatk/about.html - about US$40
codeEditor - http://wiki.wxpython.org/index.cgi/PythonCardEditor - Open Source
Crimson - http://www.crimsoneditor.com/ - Freeware, Donation (dls=1.2MB)
Editplus - http://www.editplus.com/ - about US$30 (dls=1MB) - under test April 2005