Declaring variables

Grant Edwards grante at visi.com
Wed May 16 13:03:00 EDT 2007


On 2007-05-16, HMS Surprise <john at datavoiceint.com> wrote:

> I looked in the language but did not find a switch for requiring
> variables to be declared before use.

Still trying to write Pascal, eh?  ;)

> Is such an option available?

No.

However, there are utilities to "proofread" your code should
you have a desire for that:

  http://www.logilab.org/pylint
  http://pychecker.sourceforge.net/

-- 
Grant Edwards                   grante             Yow! What I need is a
                                  at               MATURE RELATIONSHIP with a
                               visi.com            FLOPPY DISK ...



More information about the Python-list mailing list