Never really thought about this before now, but it just occurred to me while staring at some code that works with QualiityCode objects that my editor was highlighting the is() method differently because is is a Python reserved word.
How does this work in Jython without blowing up? In this one case I guess the interpreter can guess I mean the object method because of the way I’ve attached .is() to an object reference. But, this feels like a very slippery slope.
Is there some guidance in the Jython docs about how to handle when your Java objects have names which collide with reserved words?
EDIT: I just checked and mypy has a fit with that QualityCode.is() ![]()