diff options
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/java/org/zwobble/couscous/backends/python/PythonPrimitiveMethods.java | 1 | ||||
| -rw-r--r-- | src/main/resources/python/runtime/java/lang/Integer.py | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/org/zwobble/couscous/backends/python/PythonPrimitiveMethods.java b/src/main/java/org/zwobble/couscous/backends/python/PythonPrimitiveMethods.java index 40c794e..602fe2f 100644 --- a/src/main/java/org/zwobble/couscous/backends/python/PythonPrimitiveMethods.java +++ b/src/main/java/org/zwobble/couscous/backends/python/PythonPrimitiveMethods.java @@ -130,6 +130,7 @@ public class PythonPrimitiveMethods { ImmutableMap.<String, PrimitiveStaticMethodGenerator>builder() .put("parseInt", arguments -> pythonCall(pythonVariableReference("int"), arguments)) + .put("valueOf", arguments -> arguments.get(0)) .build(); diff --git a/src/main/resources/python/runtime/java/lang/Integer.py b/src/main/resources/python/runtime/java/lang/Integer.py index 4504cb1..48d6556 100644 --- a/src/main/resources/python/runtime/java/lang/Integer.py +++ b/src/main/resources/python/runtime/java/lang/Integer.py @@ -1,8 +1,4 @@ class Integer(object): - @staticmethod - def valueOf__int__Integer(value): - return value - def __init__(self, value): self._value = value |
