How to perform syntax check in Python
Moshe Zadka
moshez at math.huji.ac.il
Thu Nov 11 02:52:34 EST 1999
On Wed, 10 Nov 1999, Meera wrote:
> Hello everybody,
>
> I am looking for a utility to perform syntax validation in python.
> Consider following code -
<and really wants some way to detect undeclared variables>
> When we have multi-developer and multi-platform environment - such
> feature is crucial.
Ummm....what planet are you from?
Python has no notion of declaring variables at compile time, only at
run-time. That means program flow can impact what name are "alive". This
means Python has to solve halting-problem-equivalent problems in order to
check for undeclared variables. I don't know what state HP is in, but if
you know how to solve the halting problem, you should patent it, and build
a brand new company. Guido has chosen not to release that technology into
Python for the next 5 years.
--
Moshe Zadka <mzadka at geocities.com>.
INTERNET: Learn what you know.
Share what you don't.
More information about the Python-list
mailing list