I have list = []
and I am adding an element to it using self.list.append('test')
and I get this error - AttributeError: 'function' object has no attribute 'append'
The other list that I have defined append
just fine, any ideas?
It seems you have a function in your code that is shadowing Python's built-in function named list
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With