I got bitten by mutable default arguments, and wanted
pychecker to find those for me.
This is sort of a pseudo patch, since I don't know the
pychecker codebase (and I didn't seem to find a decent
diff utility at the moment)
Patch probably need to be reworked a bit (and probably
add a switch to turn the check on/off) to fit nicely
into pychecker. But I think that it would be a
beneficial check to add.
Log in to post a comment.