|
| 1 | +# ---- |
| 2 | +# This file is generated by mini_lambda_methods_generation.py - do not modify it ! |
| 3 | +# ---- |
| 4 | +from mini_lambda.main import _LambdaExpression |
| 5 | +from sys import getsizeof |
| 6 | + |
| 7 | + |
| 8 | +# ******* All replacement methods for the magic methods throwing exceptions ******** |
| 9 | +def Iter(*args, **kwargs): |
| 10 | + """ This is a replacement method for _LambdaExpression '__iter__' magic method """ |
| 11 | + return _LambdaExpression._get_expression_for_method_with_args(iter, *args, **kwargs) |
| 12 | + |
| 13 | + |
| 14 | +def Str(*args, **kwargs): |
| 15 | + """ This is a replacement method for _LambdaExpression '__str__' magic method """ |
| 16 | + return _LambdaExpression._get_expression_for_method_with_args(str, *args, **kwargs) |
| 17 | + |
| 18 | + |
| 19 | +def Repr(*args, **kwargs): |
| 20 | + """ This is a replacement method for _LambdaExpression '__repr__' magic method """ |
| 21 | + return _LambdaExpression._get_expression_for_method_with_args(repr, *args, **kwargs) |
| 22 | + |
| 23 | + |
| 24 | +def Bytes(*args, **kwargs): |
| 25 | + """ This is a replacement method for _LambdaExpression '__bytes__' magic method """ |
| 26 | + return _LambdaExpression._get_expression_for_method_with_args(bytes, *args, **kwargs) |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +def Sizeof(*args, **kwargs): |
| 33 | + """ This is a replacement method for _LambdaExpression '__sizeof__' magic method """ |
| 34 | + return _LambdaExpression._get_expression_for_method_with_args(getsizeof, *args, **kwargs) |
| 35 | + |
| 36 | + |
| 37 | +def Hash(*args, **kwargs): |
| 38 | + """ This is a replacement method for _LambdaExpression '__hash__' magic method """ |
| 39 | + return _LambdaExpression._get_expression_for_method_with_args(hash, *args, **kwargs) |
| 40 | + |
| 41 | + |
| 42 | +def Bool(*args, **kwargs): |
| 43 | + """ This is a replacement method for _LambdaExpression '__bool__' magic method """ |
| 44 | + return _LambdaExpression._get_expression_for_method_with_args(bool, *args, **kwargs) |
| 45 | + |
| 46 | + |
| 47 | +def Len(*args, **kwargs): |
| 48 | + """ This is a replacement method for _LambdaExpression '__len__' magic method """ |
| 49 | + return _LambdaExpression._get_expression_for_method_with_args(len, *args, **kwargs) |
| 50 | + |
| 51 | + |
| 52 | +def Int(*args, **kwargs): |
| 53 | + """ This is a replacement method for _LambdaExpression '__int__' magic method """ |
| 54 | + return _LambdaExpression._get_expression_for_method_with_args(int, *args, **kwargs) |
| 55 | + |
| 56 | + |
| 57 | +def Float(*args, **kwargs): |
| 58 | + """ This is a replacement method for _LambdaExpression '__float__' magic method """ |
| 59 | + return _LambdaExpression._get_expression_for_method_with_args(float, *args, **kwargs) |
| 60 | + |
| 61 | + |
| 62 | +def Complex(*args, **kwargs): |
| 63 | + """ This is a replacement method for _LambdaExpression '__complex__' magic method """ |
| 64 | + return _LambdaExpression._get_expression_for_method_with_args(complex, *args, **kwargs) |
| 65 | + |
| 66 | + |
| 67 | +def Oct(*args, **kwargs): |
| 68 | + """ This is a replacement method for _LambdaExpression '__oct__' magic method """ |
| 69 | + return _LambdaExpression._get_expression_for_method_with_args(oct, *args, **kwargs) |
| 70 | + |
| 71 | + |
| 72 | +def Hex(*args, **kwargs): |
| 73 | + """ This is a replacement method for _LambdaExpression '__hex__' magic method """ |
| 74 | + return _LambdaExpression._get_expression_for_method_with_args(hex, *args, **kwargs) |
| 75 | + |
| 76 | + |
0 commit comments