Commit Graph

2591 Commits

Author SHA1 Message Date
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
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
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
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
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
Windel Bouwman
950344990a Merge pull request #872 from ypyf/master
Fix os_stat for MacOS
2019-04-25 20:37:45 +02:00
Windel Bouwman
3145d2a8fd Merge pull request #870 from RustPython/dict_fromkeys
Dict fromkeys
2019-04-25 20:35:57 +02:00
coolreader18
b30b446fe2 Merge pull request #871 from sanxiyn/strip-arg
Implement stripping with arguments
2019-04-25 09:17:13 -05:00
Yan Feng
d48b59fd74 Fix os_stat for MacOS 2019-04-25 20:13:04 +08:00
Seo Sanghyeon
f38f263d93 Implement stripping with arguments 2019-04-25 20:33:30 +09:00
Adam Kelly
d3f4c8f6e1 Use unwrap_or_else for OptionalArg in dictionary. 2019-04-25 09:07:17 +01:00
Adam Kelly
4f0b17e84f Add dict.fromkeys. 2019-04-25 09:07:17 +01:00
Adam Kelly
1a48fb17df Add PyContext.new_classmethod 2019-04-25 09:07:17 +01:00
Adam Kelly
cad4a13cf7 Add utility methods for default optional args. 2019-04-25 09:07:17 +01:00
Adam
6f04bebae5 Merge pull request #866 from RustPython/dict_popitem
dict.popitem & dict.setdefault
2019-04-25 09:06:28 +01:00
Adam Kelly
1c43a6bfbe Add dict.setdefault. 2019-04-25 08:04:54 +01:00
Adam Kelly
ceac014a6c Add dict.popitem. 2019-04-25 08:04:24 +01:00
Windel Bouwman
a8b2d1384c Merge pull request #865 from sanxiyn/test-comparison-error
Test error cases of comparisons
2019-04-25 07:18:02 +02:00
coolreader18
291e33af16 Merge pull request #868 from skinny121/rpartition_bug
Fix rpartition bug
2019-04-24 18:28:22 -05:00
ben
d84b8b52a5 Fix the tuple from rpartition being in wrong order when sub isn't
contained within the string
2019-04-25 10:37:59 +12:00
Seo Sanghyeon
fb62653c5c Test error cases of comparisons 2019-04-24 19:28:21 +09:00
Windel Bouwman
1081ea048a Merge pull request #864 from sanxiyn/test-integer-literal
Test integer literals
2019-04-24 09:28:15 +02:00
Windel Bouwman
86acb7aa3a Merge pull request #860 from palaviv/os-stat
Add os.stat
2019-04-24 09:27:21 +02:00
Windel Bouwman
2b2165f459 Merge pull request #861 from youknowone/main-py
Add __main__.py support
2019-04-24 09:21:32 +02:00
Seo Sanghyeon
f9124f41a8 Test integer literals 2019-04-24 04:00:52 +09:00
Jeong YunWon
29c0d89033 test_run_script for filr/dir 2019-04-24 02:38:26 +09:00
Jeong YunWon
2eb97aa1e8 Add __main__.py support 2019-04-23 20:27:25 +09:00
Windel Bouwman
7f8217472e Merge pull request #859 from youknowone/dict-pop
Add built-in dict.pop
2019-04-23 07:12:00 +02:00
Jeong YunWon
1d5adc4353 Add built-in dict.pop 2019-04-23 10:34:06 +09:00
Aviv Palivoda
55bd00b600 Add stat_result.{st_size} 2019-04-22 18:52:35 +03:00