-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalc.py
executable file
·34 lines (23 loc) · 900 Bytes
/
Calc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import calc
import calc_go
class Calc:
def __init__(self) -> None:
pass
def __delattr__(self, _: str) -> None:
pass
def py_c_factorial(self, x: int) -> int:
return calc.py_c_factorial(x)
def py_c_rs_factorial(self, x: int) -> int:
return calc.py_c_rs_factorial(x)
def py_rs_factorial(self, x: int) -> int:
return calc.py_rs_factorial(x)
def py_c_rs_call_golang_factorial(self, n: int) -> int:
return calc.py_c_rs_call_golang_factorial(n)
def factorial(self, n: int) -> int:
return calc.factorial(n)
def py_golang_factorial(self, n: int) -> int:
return calc_go.py_golang_factorial(n)
def py_rs_call_zig_factorial(self, n: int) -> int:
return calc.py_rs_call_zig_factorial(n)
def py_c_rs_call_zig_factorial(self, n: int) -> int:
return calc.py_c_rs_call_zig_factorial(n)