remram44/pyjava — pull request #12 by remram44 (2012-11-26 21:36:41+00:00)
Title: _pyjava.NoMatchingMethod now also inherits TypeError.

I'm not sure if that's a good idea.

In Python, calling a non-existent method causes AttributeError (before the actually call). Calling a method with the wrong number of arguments causes TypeError.

In PyJava, currently, NoMatchingMethod is raised both when a method doesn't exist at all and when it is called with arguments that don't match any overload. Maybe I should use two exception classes, with only one inheriting TypeError?