This is a static archive of the Python wiki, which was retired in February 2026 due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

Programmatic presentation systems (see DataRepresentation) use Python program units to produce output for Web application "screens" and other purposes. The simplest form of such systems is the traditional "print to standard output" technique used in the earliest days of the Web and probably in numerous CGI (Common Gateway Interface) programs to this day:

print "<table>"
for item in items:
    print "<tr>"
    print "<th>Name</th>"
    print "<td>%s</td>" % item.name
    print "</tr>"
print "</table>"

More recent programmatic presentation systems are very likely to employ more sophisticated approaches including the direct inclusion of HTML text within the Python code - a technique reminiscent of various SQL-based environments which embed SQL statements in other programming languages to supposedly reduce the complexity of the resulting source code.


2026-02-14 16:12