Created
February 19, 2015 00:30
-
-
Save podhmo/1de261aaa41007a13cb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample.py:6: undefined name 'h' | |
sample.py:9: undefined name 'z' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************* Module sample | |
E: 5, 8: Module 'sys' has no 'xxx' member (no-member) | |
E: 6, 4: Undefined variable 'h' (undefined-variable) | |
E: 7, 5: Too many positional arguments for function call (too-many-function-args) | |
E: 8, 5: No value for argument 'x' in function call (no-value-for-parameter) | |
E: 8, 5: No value for argument 'y' in function call (no-value-for-parameter) | |
E: 9,12: Too many positional arguments for function call (too-many-function-args) | |
E: 9,19: Undefined variable 'z' (undefined-variable) | |
E: 23, 9: Too many positional arguments for method call (too-many-function-args) | |
E: 24,16: No value for argument 'x' in method call (no-value-for-parameter) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def f(x, y): | |
sys.xxx() # sys.xxx is not defined | |
h() # h is not defined | |
g(1, 2, 3) # too many arguments | |
g() # too few arguments | |
return g(x, y, z) # z is undefined variable | |
def g(x, y): | |
return | |
class A(object): | |
def foo(self, x): | |
return x | |
def k(): | |
a = A() | |
a.foo(1, 2) # too many arguments | |
return a.foo() # too few arguments | |
def l(a): | |
a.foo(1, 2) # too many arguments | |
a.foo() # too few arguments(this is hard to detect) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment