[Edu-sig] anti-idiom checker?
kirby urner
kirby.urner at gmail.com
Wed Apr 20 16:14:36 EDT 2016
>
> ps.: I imagine I could make sth via AST analysis...
> --
>
Or maybe some regex that looks for
"for bar in range(len(foo)): ...foo[bar]" # (in the for's scope)
'cept I don't know regexes well enough to write that. :-D
It could just say
"slap with wet fish ("for block" starting line 10)"
in a nagnanny.log file someplace, with the user option to care (a
"Pythonic" toggle).
Kirby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20160420/dc865e02/attachment.html>
More information about the Edu-sig
mailing list