Jython override method with the same name

I saw a similar problem that occurred in JRuby back in 2010 when we tried to override in Jruby a method that was initially overloaded with 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 override and ignore the remaining ones, or how can I override all of them?

thank

+5
source share
2 answers

Python does not support method overloading (but supports default values).

def my_function(paramA, paramB = None):
  pass

Since Jython is just a Python implementation, I believe that is true.

+1
source

Java- Jython, , .

Jython , , , .

, BaseClass.method(self, ...). , , self.super__method(...).

0

All Articles