def getFloatConstant(self, value): code = jast.InvokeStatic("Py", "newFloat", [jast.FloatConstant(value)]) return self.getConstant(value, code, "f")
def getImaginaryConstant(self, value): code = jast.InvokeStatic("Py", "newImaginary", [jast.FloatConstant(value)]) return self.getConstant(value, code, "j")