It seems a bit weird that Python requires you to explicitly pass self
as the first argument to all class functions. Are there other languages that require something similar?
By explicit, do you mean "explicitly passed as an argument to each class function"? If so, then Python is the only one I know off-hand.
Most OO languages support this
or self
in some form, but most of them let you define class functions without always defining self
as the first argument.
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