Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mikewilliams

Pages: [1]
1
Python and Java API / When do we need (self) in methods??
« on: January 30, 2019, 11:46:48 AM »
So I thought every python function definition needed (self) unless multiple paramters are being specified...what's the rule regarding self??

My __init__(): function does NOT have self, and when I instantiate with Shet() it says takes 0 positional arguments but 1 given. I tried adding a self to the definition, then it says missing 'self'... I can't possibly add anything to Shet() because what would I add-it's not expecting any arguments. what am I to do?? So confused.

Pages: [1]