I saw a similar problem occurred on JRuby back in 2010 when we would try to override in Jruby a method that was overloaded orginally on the java source code. How do we deal with this in Jython? More specifically, how can i specify for one of the methods that are overloaded to be override and ignore the remaining or how can I override all of them?
Thank you
Python does not support method overloading (but it does support default values).
def my_function(paramA, paramB = None):
pass
Since Jython is merely a Python implementation, I belive the same stands true.
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