[Tutor] Why not to use include?

Dotan Cohen dotancohen at gmail.com
Sun Jun 8 12:46:37 CEST 2008


I am moving a website from php to python gradually. The first step is
replacing the page headers and footers. Currently, each page begins
with <?php include "header.php"; ?> which contains the <head> porton
of the html and the html code to present the website name and logo.
Each page ends with <?php include"footer.php"; ?> which includes a
footer note and the closing body and html tags. Of course this is a
generalization, but the point is that I need to do something similar
in Python. Python discourages the use of includes, and I would like to
know why so that I can either rethink my page strategy, or decide to
go against the 'recommended practices'. Please enlighten me. Thanks.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


More information about the Tutor mailing list