Commit Graph

2618 Commits

Author SHA1 Message Date
Jeong YunWon
a318e4e09e objfloat.rs try_float for common operand handling 2019-05-01 01:21:14 +09:00
Windel Bouwman
177704f1ea Merge pull request #891 from ntrinquier/add-methods-for-numeric-types
Add methods for the complex type
2019-04-30 08:16:44 +02:00
Jeong YunWon
132d34fc67 Add range.__eq__ 2019-04-29 15:10:59 -05:00
coolreader18
9c4a0710f3 Merge pull request #880 from youknowone/fix-range-negative
Fix range() to support negative index + Add range.__eq__
2019-04-29 15:09:20 -05:00
Nicolas Trinquier
490db0a84f Add support for complex type for the to_complex function 2019-04-29 20:13:01 +02:00
coolreader18
fd91d26444 Merge pull request #890 from palaviv/exc-stack
Add exceptions stack to VirtualMachine
2019-04-29 13:07:00 -05:00
Aviv Palivoda
56ef6ec5f8 Change to is_some 2019-04-29 20:08:15 +03:00
Nicolas Trinquier
eebdbfe679 Add int and float methods for the complex type 2019-04-29 18:39:10 +02:00
Nicolas Trinquier
f8373aa38a Add mul method for the complex type 2019-04-29 18:34:35 +02:00
Windel Bouwman
e3e2e7f905 Merge pull request #869 from skinny121/isinstance_tuple_arg
Accept a tuple for the second argument of isinstance and issubclass
2019-04-29 13:34:40 +02:00
Adam
63a71d6b50 Merge pull request #855 from RustPython/nonlocal-errors
Add check for nonlocal on top level.
2019-04-29 11:30:39 +01:00
ben
4a4631a622 Use match_class instead of Either in isinstance/issubclass 2019-04-29 19:41:42 +12:00
ben
81dd5faa81 Accept a tuple for the second argument of isinstance and issubclass 2019-04-29 19:41:42 +12:00
Windel Bouwman
2c7f3b5bb1 Merge pull request #888 from youknowone/math-rounding
Add trunc, ceil, floor to math module
2019-04-29 08:05:15 +02:00
coolreader18
9feeee059e Merge pull request #886 from youknowone/pycomplex
Add complex.__bool__, complex.__sub__, OverflowError/float support of complex.__add__
2019-04-28 18:44:21 -05:00
Jeong YunWon
6afe78c9a6 Add math.ceil / math.floor 2019-04-29 04:26:10 +09:00
Jeong YunWon
c3714c2eca Add math.trunc 2019-04-29 04:26:10 +09:00
Windel Bouwman
53dea486d2 Merge pull request #878 from sanxiyn/fix-just
Fix justification
2019-04-28 19:13:33 +02:00
Windel Bouwman
bea6b48d1f Merge pull request #885 from youknowone/pyfloat
Add __int__, __float__, __trunc__, __rmod__ to float
2019-04-28 19:08:32 +02:00
Aviv Palivoda
b72fc3bc9d Add test for #867 2019-04-28 19:20:16 +03:00
Aviv Palivoda
af7a89aa99 pop exception on context 2019-04-28 19:06:14 +03:00
Aviv Palivoda
f1551af0f5 Add tests - not working 2019-04-28 18:52:52 +03:00
Jeong YunWon
20b2f64cef Add float.__rmod__ 2019-04-28 22:46:21 +09:00
Jeong YunWon
304cea89b8 objint::get_float_value 2019-04-28 20:31:07 +09:00
Jeong YunWon
8047ab3d3e Add float tests 2019-04-28 20:03:30 +09:00
Jeong YunWon
4810a55c82 Add float.__trunc__ 2019-04-28 12:44:25 +09:00
Jeong YunWon
9dda776e25 Add float.__int__ / float.__float__ 2019-04-28 12:41:59 +09:00
Jeong YunWon
dc05459459 Add float.__sub__, float.__rsub__ 2019-04-28 12:20:45 +09:00
Jeong YunWon
a2625916f5 Fix complex.__add__ to support float 2019-04-28 12:01:54 +09:00
Jeong YunWon
2eae737f3d complex.__add__ can raises OverflowError 2019-04-28 06:52:54 +09:00
Jeong YunWon
15e4e678ca Add complex.__bool__ 2019-04-28 06:19:12 +09:00
Jeong YunWon
ed79ccc6b1 PyComplex uses PyClassImpl 2019-04-28 06:04:21 +09:00
Jeong YunWon
7fb98c91d2 PyFloat uses #[pyclass] #[pyimpl] #[pymethod] 2019-04-28 05:47:29 +09:00
Windel Bouwman
88e52ef842 Merge pull request #884 from adrian17/imul
Support list.__imul__
2019-04-27 21:08:39 +02:00
Windel Bouwman
a2858cee7e Merge pull request #882 from youknowone/add-type-name
Add type.__name__
2019-04-27 21:07:17 +02:00
Aviv Palivoda
60afbb4bf5 Don't pop exeption for context 2019-04-27 21:53:08 +03:00
Jeong YunWon
d87468a1cb Add type.__name__ 2019-04-28 03:21:26 +09:00
Adrian Wielgosik
9d40a4c9d8 Support list.__imul__ 2019-04-27 17:44:21 +02:00
Agent
180ec22d4b Add constants to os module (#883) 2019-04-27 09:41:19 -05:00
Aviv Palivoda
4b9bafc824 Remove in_exc_handler for Raise 2019-04-27 14:33:24 +03:00
Aviv Palivoda
462c8233f3 Add exceptions stack to VirtualMachine 2019-04-27 14:21:01 +03:00
Jeong YunWon
a7091ca88d Add range.__eq__ 2019-04-27 00:54:21 +09:00
Jeong YunWon
16353f4f54 range negative side bound error 2019-04-27 00:13:54 +09:00
Jeong YunWon
16152a1d32 Fix range() to support negative index 2019-04-27 00:06:29 +09:00
Seo Sanghyeon
0e9acdc12b Fix justification 2019-04-26 15:33:37 +09:00
Agent
6e867edb6d Fix json.loads (#876)
* Fix json.loads
2019-04-25 23:17:16 -05:00
coolreader18
13a8bc1c11 Merge pull request #875 from sanxiyn/test-json-dict
Enable dict round trip test for json
2019-04-25 20:41:30 -05:00
coolreader18
1088f7061c Merge pull request #874 from RustPython/coolreader18/os-android
Add a cfg for os.stat for android
2019-04-25 17:59:24 -05:00
coolreader18
e4698987bb Add a cfg for os.stat for android 2019-04-25 16:59:06 -05:00
Seo Sanghyeon
e6f08cf93e Enable dict round trip test for json 2019-04-26 06:29:01 +09:00