Commit Graph

400 Commits

Author SHA1 Message Date
Calixte Denizet
bf19d652dc Fix issue with equality 2019-02-16 12:45:57 +01:00
Windel Bouwman
163a1311f7 Merge pull request #470 from janczer/add_remove_list
Add remvoe to list object
2019-02-16 10:27:27 +01:00
Windel Bouwman
26f9a7fe1a Merge pull request #483 from OddCoincidence/f-string-format-specs
Support format specs in f-strings
2019-02-16 08:35:21 +01:00
Windel Bouwman
ec6dc7ca4a Merge pull request #481 from evilpie/discard
implement set.discard
2019-02-16 08:30:57 +01:00
Joey Hain
134c3b94a5 support format specs in f-strings 2019-02-15 18:18:44 -08:00
Joey Hain
5968c4d922 convert f-string parser to state machine 2019-02-15 18:14:33 -08:00
Tom Schuster
4762d654b4 implement set.discard 2019-02-15 20:46:00 +01:00
silmeth
8ed82a089f make big ints dividable if the result fits in a float 2019-02-15 19:43:00 +01:00
janczer
9e719b6cb8 Move test to list.py 2019-02-15 16:53:36 +01:00
Windel Bouwman
a541b509a9 Merge branch 'master' into Add-set-funcs3 2019-02-15 16:53:10 +01:00
Aviv Palivoda
412df7472f set raises TypeError when unhashable element is passed in creation 2019-02-15 15:34:55 +02:00
Aviv Palivoda
49e10ed497 Add set.symmetric_difference 2019-02-15 15:13:05 +02:00
Aviv Palivoda
938688cb69 Add set.difference 2019-02-15 15:13:05 +02:00
Aviv Palivoda
23ef487927 Add set.intersection 2019-02-15 15:13:05 +02:00
Aviv Palivoda
83c4eda62c Add set.union 2019-02-15 15:13:05 +02:00
janczer
2ac195e539 List remove, handle non exist element. Add new test 2019-02-15 08:49:58 +01:00
Windel Bouwman
48032a5110 Merge pull request #472 from OddCoincidence/int-float-rarithmetic
Add {int,float}.{__radd__,__rsub__,__rmul__,__rtruediv__}
2019-02-15 07:14:01 +01:00
Joey Hain
c6ac393f84 Add {int,float}.{__radd__,__rsub__,__rmul__,__rtruediv__} 2019-02-14 21:21:30 -08:00
Joey Hain
fb4d55bd8f Fix f-string edge case and add more tests 2019-02-14 18:46:23 -08:00
Windel Bouwman
d76c86ed16 Merge pull request #468 from janczer/add_complex_real_imag
Add complex methods real and imag
2019-02-14 17:59:40 +01:00
janczer
2a2ddff14e Add complex methods real and imag 2019-02-14 16:56:32 +01:00
Joey Hain
7d743de43f fix another edge case 2019-02-13 22:28:16 -08:00
Joey Hain
400ad80b64 fstrings 2019-02-13 21:59:21 -08:00
Windel Bouwman
d048d0a0da Merge pull request #445 from RustPython/co_consts
Co consts
2019-02-13 22:59:53 +01:00
Windel Bouwman
116f5daae4 Merge pull request #450 from silmeth/microopt-print
Fix crashes on wrong kwargs types to print + microoptimize it
2019-02-13 22:59:07 +01:00
Windel Bouwman
a8873dbaff Merge pull request #460 from janczer/add_clear_method_set
Add clear method to set
2019-02-13 22:51:18 +01:00
Adam
b88b87f210 Merge pull request #462 from adrian17/lambda_parsing
Change lambda parsing to be closer to Python official grammar. Fixes #427
2019-02-13 20:44:55 +00:00
Adam
233242c3ad Merge pull request #429 from adrian17/master
Fix callable(), add tests.
2019-02-13 20:38:27 +00:00
Adrian Wielgosik
7dfb0728fd Change lambda parsing to be closer to Python grammar. Fixes #427 2019-02-13 21:01:13 +01:00
janczer
d07b3dff98 Add clear method to set 2019-02-13 14:37:05 +01:00
Ryan Liddle
3d4fd5fc86 Merge pull request #456 from yuvipanda/os-name
Implement os.name
2019-02-13 19:35:32 +11:00
Ryan Liddle
c6c1e7f60e Merge pull request #453 from OddCoincidence/int-float-comparison
Fix int to float comparison
2019-02-13 19:31:00 +11:00
yuvipanda
252c3be5f8 Add newline to os_info test file 2019-02-13 00:01:06 -08:00
yuvipanda
9dc45fd728 Implement os.name 2019-02-12 23:51:36 -08:00
Joey Hain
5fd912b13a Remove float comparisons from int.__eq__, add int.__ne__ 2019-02-12 21:56:25 -08:00
Joey Hain
2041b7cef6 Fix int to float comparison 2019-02-12 18:44:03 -08:00
Adrian Wielgosik
ecfc70ef99 Add list.copy() 2019-02-13 00:21:42 +01:00
silmeth
bd64869686 fix None kwargs to print in vm and in wasm_builtins 2019-02-12 23:17:17 +01:00
silmeth
a2ab4473a3 add tests of error handling for wrong types of print() kwargs 2019-02-12 22:33:54 +01:00
Adrian Wielgosik
a8f650b709 Fix callable(), add tests. 2019-02-12 19:26:10 +01:00
Windel Bouwman
e5af4caecf Merge pull request #424 from janczer/add_object_lt_le_gt_ge
Add object.{__lt__, __le__, __gt__, __gt__}
2019-02-12 19:21:07 +01:00
Windel Bouwman
de98ac696b Merge pull request #442 from OddCoincidence/float-parsing
Support float(<str>) and float(<bytes>)
2019-02-12 18:45:50 +01:00
janczer
0887b55da8 Add object.{__lt__, __le__, __gt__, __gt__} 2019-02-12 15:32:07 +01:00
Adam Kelly
a735bb3dfc Add __repr__ and __new__ to NoneType. 2019-02-12 10:09:13 +00:00
Adam Kelly
8a89e13a7e Add .co_consts to code class. 2019-02-12 09:47:02 +00:00
ben
5c12367f59 Merge branch 'master' into object_format 2019-02-12 20:09:27 +13:00
ben
93e5634d39 Fixes #328, add object.__format__ 2019-02-12 20:06:50 +13:00
Windel Bouwman
9177252cf9 Merge pull request #259 from RustPython/list_insert
Implemented list.insert()
2019-02-12 06:10:20 +01:00
Joey Hain
38c0ea06e5 Support float(<str>) and float(<bytes>) 2019-02-11 19:40:55 -08:00
Shing Lyu
8ded37d566 Raise OverflowError is the index for list.index() overflows 2019-02-11 22:52:27 +01:00