I’ve seen ‘del’ being referred to as a keyword and as a statement. Apparently, it is not considered a function: Python has a del statement (keyword) to delete objects, not a del function. https://tutorial.eyehunts.com/python/del-function-in-python-code/ I looked up the definition of a function in Python and it says: In Python, a function is a group of related statements that performs a
Tag: definition
Python – instance attribute defined outside __init__()
I get the warning in question for the following code: How should I fix this? I tried to move everything to init but then I had some errors for passing the arguments in the line I was creating the Autocompelete object. So please provide me with all the changes I have to make. not just smth like you have to