code check for modifying sequence while iterating over it?
aleax at mac.com
Sun Sep 2 19:13:05 CEST 2007
Neal Becker <ndbecker2 at gmail.com> wrote:
> After just getting bitten by this error, I wonder if any pylint, pychecker
> variant can detect this error?
I know pychecker can't (and I doubt pylint can, but I can't download the
latest version to check as logilab's website is temporarily down for
maintenance right now). It's a very thorny problem to detect a
reasonable subset of likely occurrences of this bug by static analysis
only, i.e., without running the code:-(
More information about the Python-list