code check for modifying sequence while iterating over it?

N

Neal Becker

After just getting bitten by this error, I wonder if any pylint, pychecker
variant can detect this error?
 
A

Alex Martelli

Neal Becker said:
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:-(


Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top