[Python-Dev] When to signal an error (original) (raw)

Michael Hudson mwh@python.net
21 Jan 2002 10:24:54 +0000


Neal Norwitz <neal@metaslash.com> writes:

Currently, I think there are 2 or 3 warnings which definitely fit this class: No global found, using ++/--, and expressions with no effect as Jason described.

It would sure be nice if using a variable before assignment produced a warning at compile time. However I think this needs flow analysis and you won't catch me trying to add that to compile.c.

Cheers, M.

-- MGM will not get your whites whiter or your colors brighter. It will, however, sit there and look spiffy while sucking down a major honking wad of RAM. -- http://www.xiph.org/mgm/