@@ -3775,71 +3775,81 @@ module Python {
3775
3775
lhs.retain(res);
3776
3776
lhs.interpreter.checkException();
3777
3777
}
3778
- operator + (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3778
+ operator + (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3779
3779
return _binaryOp(" add" , lhs, rhs);
3780
- operator += (ref lhs: owned Value, rhs: borrowed Value) throws do
3780
+ operator += (ref lhs: owned Value, rhs: borrowed Value) throws do
3781
3781
_binaryOpInPlace(" iadd" , lhs, rhs);
3782
- operator += (ref lhs: owned Value, const ref rhs: Value) throws do
3782
+ operator += (ref lhs: owned Value, const ref rhs: Value) throws do
3783
3783
_binaryOpInPlace(" iadd" , lhs.borrow(), rhs.borrow());
3784
- operator - (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3784
+
3785
+ operator - (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3785
3786
return _binaryOp(" sub" , lhs, rhs);
3786
- operator -= (ref lhs: owned Value, rhs: borrowed Value) throws do
3787
+ operator -= (ref lhs: owned Value, rhs: borrowed Value) throws do
3787
3788
_binaryOpInPlace(" isub" , lhs, rhs);
3788
- operator -= (ref lhs: owned Value, const ref rhs: Value) throws do
3789
+ operator -= (ref lhs: owned Value, const ref rhs: Value) throws do
3789
3790
_binaryOpInPlace(" isub" , lhs.borrow(), rhs.borrow());
3790
- operator * (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3791
+
3792
+ operator * (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3791
3793
return _binaryOp(" mul" , lhs, rhs);
3792
- operator *= (ref lhs: owned Value, rhs: borrowed Value) throws do
3794
+ operator *= (ref lhs: owned Value, rhs: borrowed Value) throws do
3793
3795
_binaryOpInPlace(" imul" , lhs, rhs);
3794
- operator *= (ref lhs: owned Value, const ref rhs: Value) throws do
3796
+ operator *= (ref lhs: owned Value, const ref rhs: Value) throws do
3795
3797
_binaryOpInPlace(" imul" , lhs.borrow(), rhs.borrow());
3796
- operator / (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3798
+
3799
+ operator / (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3797
3800
return _binaryOp(" truediv" , lhs, rhs);
3798
- operator /= (ref lhs: owned Value, rhs: borrowed Value) throws do
3801
+ operator /= (ref lhs: owned Value, rhs: borrowed Value) throws do
3799
3802
_binaryOpInPlace(" itruediv" , lhs, rhs);
3800
- operator /= (ref lhs: owned Value, const ref rhs: Value) throws do
3803
+ operator /= (ref lhs: owned Value, const ref rhs: Value) throws do
3801
3804
_binaryOpInPlace(" itruediv" , lhs.borrow(), rhs.borrow());
3802
- operator % (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3805
+
3806
+ operator % (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3803
3807
return _binaryOp(" mod" , lhs, rhs);
3804
- operator %= (ref lhs: owned Value, rhs: borrowed Value) throws do
3808
+ operator %= (ref lhs: owned Value, rhs: borrowed Value) throws do
3805
3809
_binaryOpInPlace(" imod" , lhs, rhs);
3806
- operator %= (ref lhs: owned Value, const ref rhs: Value) throws do
3810
+ operator %= (ref lhs: owned Value, const ref rhs: Value) throws do
3807
3811
_binaryOpInPlace(" imod" , lhs.borrow(), rhs.borrow());
3808
- operator ** (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3812
+
3813
+ operator ** (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3809
3814
return _binaryOp(" pow" , lhs, rhs);
3810
- operator **= (ref lhs: owned Value, rhs: borrowed Value) throws do
3815
+ operator **= (ref lhs: owned Value, rhs: borrowed Value) throws do
3811
3816
_binaryOpInPlace(" ipow" , lhs, rhs);
3812
- operator **= (ref lhs: owned Value, const ref rhs: Value) throws do
3817
+ operator **= (ref lhs: owned Value, const ref rhs: Value) throws do
3813
3818
_binaryOpInPlace(" ipow" , lhs.borrow(), rhs.borrow());
3814
- operator & (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3819
+
3820
+ operator & (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3815
3821
return _binaryOp(" and_" , lhs, rhs);
3816
- operator &= (ref lhs: owned Value, rhs: borrowed Value) throws do
3822
+ operator &= (ref lhs: owned Value, rhs: borrowed Value) throws do
3817
3823
_binaryOpInPlace(" iand" , lhs, rhs);
3818
- operator &= (ref lhs: owned Value, const ref rhs: Value) throws do
3824
+ operator &= (ref lhs: owned Value, const ref rhs: Value) throws do
3819
3825
_binaryOpInPlace(" iand" , lhs.borrow(), rhs.borrow());
3820
- operator | (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3826
+
3827
+ operator | (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3821
3828
return _binaryOp(" or_" , lhs, rhs);
3822
- operator |= (ref lhs: owned Value, rhs: borrowed Value) throws do
3829
+ operator |= (ref lhs: owned Value, rhs: borrowed Value) throws do
3823
3830
_binaryOpInPlace(" ior" , lhs, rhs);
3824
- operator |= (ref lhs: owned Value, const ref rhs: Value) throws do
3831
+ operator |= (ref lhs: owned Value, const ref rhs: Value) throws do
3825
3832
_binaryOpInPlace(" ior" , lhs.borrow(), rhs.borrow());
3826
- operator ^ (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3833
+
3834
+ operator ^ (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3827
3835
return _binaryOp(" xor" , lhs, rhs);
3828
- operator ^= (ref lhs: owned Value, rhs: borrowed Value) throws do
3836
+ operator ^= (ref lhs: owned Value, rhs: borrowed Value) throws do
3829
3837
_binaryOpInPlace(" ixor" , lhs, rhs);
3830
- operator ^= (ref lhs: owned Value, const ref rhs: Value) throws do
3838
+ operator ^= (ref lhs: owned Value, const ref rhs: Value) throws do
3831
3839
_binaryOpInPlace(" ixor" , lhs.borrow(), rhs.borrow());
3832
- operator << (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3840
+
3841
+ operator << (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3833
3842
return _binaryOp(" lshift" , lhs, rhs);
3834
- operator <<= (ref lhs: owned Value, rhs: borrowed Value) throws do
3843
+ operator <<= (ref lhs: owned Value, rhs: borrowed Value) throws do
3835
3844
_binaryOpInPlace(" ilshift" , lhs, rhs);
3836
- operator <<= (ref lhs: owned Value, const ref rhs: Value) throws do
3845
+ operator <<= (ref lhs: owned Value, const ref rhs: Value) throws do
3837
3846
_binaryOpInPlace(" ilshift" , lhs.borrow(), rhs.borrow());
3838
- operator >> (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3847
+
3848
+ operator >> (lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3839
3849
return _binaryOp(" rshift" , lhs, rhs);
3840
- operator >>= (ref lhs: owned Value, rhs: borrowed Value) throws do
3850
+ operator >>= (ref lhs: owned Value, rhs: borrowed Value) throws do
3841
3851
_binaryOpInPlace(" irshift" , lhs, rhs);
3842
- operator >>= (ref lhs: owned Value, const ref rhs: Value) throws do
3852
+ operator >>= (ref lhs: owned Value, const ref rhs: Value) throws do
3843
3853
_binaryOpInPlace(" irshift" , lhs.borrow(), rhs.borrow());
3844
3854
3845
3855
//
@@ -3855,13 +3865,13 @@ module Python {
3855
3865
lhs.interpreter.checkException();
3856
3866
return new Value(lhs.interpreter, res, isOwned= true );
3857
3867
}
3858
- operator + (lhs: borrowed Value): owned Value throws do
3868
+ operator + (lhs: borrowed Value): owned Value throws do
3859
3869
return _unaryOp(" pos" , lhs);
3860
- operator - (lhs: borrowed Value): owned Value throws do
3870
+ operator - (lhs: borrowed Value): owned Value throws do
3861
3871
return _unaryOp(" neg" , lhs);
3862
- operator ~ (lhs: borrowed Value): owned Value throws do
3872
+ operator ~ (lhs: borrowed Value): owned Value throws do
3863
3873
return _unaryOp(" invert" , lhs);
3864
- operator !(lhs: borrowed Value): owned Value throws do
3874
+ operator !(lhs: borrowed Value): owned Value throws do
3865
3875
return _unaryOp(" not_" , lhs);
3866
3876
3867
3877
//
@@ -3878,17 +3888,19 @@ module Python {
3878
3888
lhs.interpreter.checkException();
3879
3889
return lhs.interpreter.fromPythonInner(bool , res);
3880
3890
}
3881
- operator == (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3891
+ operator == (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3882
3892
return _cmpOp(" eq" , lhs, rhs);
3883
- operator != (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3893
+ operator != (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3884
3894
return _cmpOp(" ne" , lhs, rhs);
3885
- operator < (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3895
+
3896
+ operator < (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3886
3897
return _cmpOp(" lt" , lhs, rhs);
3887
- operator <= (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3898
+ operator <= (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3888
3899
return _cmpOp(" le" , lhs, rhs);
3889
- operator > (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3900
+
3901
+ operator > (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3890
3902
return _cmpOp(" gt" , lhs, rhs);
3891
- operator >= (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3903
+ operator >= (lhs: borrowed Value, rhs: borrowed Value): bool throws do
3892
3904
return _cmpOp(" ge" , lhs, rhs);
3893
3905
3894
3906
0 commit comments