We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The methods of a class should accept any naming of the instance of the class rather than just self.
self
Provide code to reproduce the behavior:
class Point: def __init__(test, x, y): test.x = x test.y = y def add(test, x, y): test.x += x test.y += y def sup(test, x, y): test.x -= x test.y -= y
Provide the generated code, or the error message:
|fatal [semantic]: sboof.py [9,8]| Undefined variable ('self')
Semantic part.
The modification should be in :
pyccel/pyccel/parser/semantic.py
Line 1244 in 6af2bfe
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
The methods of a class should accept any naming of the instance of the class rather than just
self
.To Reproduce
Provide code to reproduce the behavior:
Error details
Provide the generated code, or the error message:
Language
Semantic part.
Additional context
The modification should be in :
pyccel/pyccel/parser/semantic.py
Line 1244 in 6af2bfe
it should check on the first argument of the method.
The text was updated successfully, but these errors were encountered: