pychecker

PyLint,PyChecker还是PyFlakes? [关闭]

萝らか妹 提交于 2020-02-26 05:25:27
我想获得一些关于这些工具的反馈: 特征; 适应性; 易用性和学习曲线。 #1楼 好吧,我有点好奇,所以我只是在问了问题之后立即测试了3个人;-) 好的,这不是一个非常认真的评论,但我可以这么说: 我在以下脚本中尝试 使用默认设置 的工具(这很重要,因为您可以选择检查规则): #!/usr/local/bin/python # by Daniel Rosengren modified by e-satis import sys, time stdout = sys.stdout BAILOUT = 16 MAX_ITERATIONS = 1000 class Iterator(object) : def __init__(self): print 'Rendering...' for y in xrange(-39, 39): stdout.write('\n') for x in xrange(-39, 39): if self.mandelbrot(x/40.0, y/40.0) : stdout.write(' ') else: stdout.write('*') def mandelbrot(self, x, y): cr = y - 0.5 ci = x zi = 0.0 zr = 0.0 for i in xrange(MAX_ITERATIONS) : temp =

What should replace comparisons with False in python?

偶尔善良 提交于 2019-12-24 02:24:11
问题 I have a function that returns False if something isn't found, and returns a data structure with what I'm looking for otherwise. When I assign the value returned from this function to a variable my_var in a for loop, I do a if my_var == False: continue to carry on. pychecker doesn't like this and reports Comparisons with False are not necessary and may not work as expected . What's the python way for doing this? 回答1: As a return value indicating absence of a result, None is almost always

PyLint, PyChecker or PyFlakes? [closed]

烂漫一生 提交于 2019-11-27 05:43:28
I would like to get some feedback on these tools on : features; adaptability; ease of use and learning curve. e-satis Well, I am a bit curious, so I just tested the 3 myself right after asking the question ;-) Ok, this is not a very serious review but here is what I can say : I tried the tools with the default settings (it's important because you can pretty much choose your check rules) on the following script : #!/usr/local/bin/python # by Daniel Rosengren modified by e-satis import sys, time stdout = sys.stdout BAILOUT = 16 MAX_ITERATIONS = 1000 class Iterator(object) : def __init__(self):

PyLint, PyChecker or PyFlakes? [closed]

流过昼夜 提交于 2019-11-26 12:48:58
问题 I would like to get some feedback on these tools on : features; adaptability; ease of use and learning curve. 回答1: Well, I am a bit curious, so I just tested the 3 myself right after asking the question ;-) Ok, this is not a very serious review but here is what I can say : I tried the tools with the default settings (it's important because you can pretty much choose your check rules) on the following script : #!/usr/local/bin/python # by Daniel Rosengren modified by e-satis import sys, time