Adding more warnings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Dybdahl Ahle

    Adding more warnings

    I tend to make a lot of mistakes of misspelled variable names.

    Is it possible to make python warn me about those at "compile time"?

    Very few times I use dynamic variable initialization. I can live with
    getting a warning for those as well.

    --
    Best Regards,
    Med Venlig Hilsen,
    Thomas

  • Ben Finney

    #2
    Re: Adding more warnings

    Thomas Dybdahl Ahle <lobais@gmail.c omwrites:
    I tend to make a lot of mistakes of misspelled variable names.
    You would greatly benefit from using tools like 'pyflakes', 'pylint',
    and a unit test suite for your code. They're very good for finding
    such simple bugs in your code.
    Is it possible to make python warn me about those at "compile time"?
    The names are resolved at run time, so the compiler has insufficient
    information to say whether a name is used incorrectly.

    --
    \ "Program testing can be a very effective way to show the |
    `\ presence of bugs, but is hopelessly inadequate for showing |
    _o__) their absence." -- Edsger Dijkstra |
    Ben Finney

    Comment

    Working...