Commit Graph

1294 Commits

Author SHA1 Message Date
Windel Bouwman
a541b509a9 Merge branch 'master' into Add-set-funcs3 2019-02-15 16:53:10 +01:00
Windel Bouwman
1611aa42c1 Merge pull request #476 from palaviv/set-unhashable
set raises TypeError when unhashable element is passed in creation
2019-02-15 16:50:05 +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
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
Windel Bouwman
a2d4924909 Merge pull request #469 from janczer/fix_typos
Fix typos
2019-02-15 07:03:04 +01:00
Windel Bouwman
ddbd7d759f Merge pull request #471 from OddCoincidence/fstring-fixes-and-tests
Fix f-string edge case and add more tests
2019-02-15 07:02:27 +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
janczer
89e947a04f Fix typos 2019-02-14 20:38:18 +01: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
Windel Bouwman
518b37185e Merge pull request #466 from OddCoincidence/fstrings
Initial support for f-strings (i.e. strings with interpolated expressions)
2019-02-14 12:22:27 +01:00
Joey Hain
bc4e48ae61 Fix tests 2019-02-13 23:32:55 -08:00
Joey Hain
4ca3d3b507 Merge remote-tracking branch 'upstream/master' into fstrings 2019-02-13 23:16:40 -08:00
Joey Hain
a97e05a164 Add missing semicolon to Bytes rule 2019-02-13 23:11:54 -08:00
Joey Hain
7d743de43f fix another edge case 2019-02-13 22:28:16 -08:00
Windel Bouwman
33d272f795 Merge pull request #464 from holygits/internal-error-types
Introduce Parser and Compiler Errors
2019-02-14 07:07:21 +01:00
Joey Hain
400ad80b64 fstrings 2019-02-13 21:59:21 -08:00
holygits
570b28439a Fix tests 2019-02-14 12:31:20 +13:00
holygits
995fac12fd Remove stray file 2019-02-14 11:10:27 +13: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
holygits
f0d7c2bea9 Fix test 2019-02-14 10:46:48 +13:00
holygits
4453c3e561 Create error types for parser and compiler
Pass through locations and tokens in ParseError
2019-02-14 10:21:21 +13: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
b77165c5ad Fix fmt set.clear 2019-02-13 14:44:50 +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
Windel Bouwman
392262d3f4 Merge pull request #454 from janczer/call_wrap_functions
Call wrap functions insted of magic
2019-02-13 07:05:26 +01:00
Windel Bouwman
db7a64fe5a Merge pull request #451 from adrian17/list_copy
Add list.copy()
2019-02-13 07:04:24 +01:00
Windel Bouwman
74c5d4dae1 Merge pull request #452 from matrizx/master
Replaced cluttered match statements with if let
2019-02-13 07:02:48 +01:00
Joey Hain
5fd912b13a Remove float comparisons from int.__eq__, add int.__ne__ 2019-02-12 21:56:25 -08:00
janczer
4959defff8 Call wrap functions insted of magic 2019-02-13 06:34:44 +01:00
Joey Hain
2041b7cef6 Fix int to float comparison 2019-02-12 18:44:03 -08:00
matrizx
c041c8cbc5 Replaced cluttered match statements with if let 2019-02-12 16:55:12 -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
silmeth
3d17cc0aa1 copy print() kwargs handling over to wasm_builtins 2019-02-12 22:27:04 +01:00
silmeth
7b7aa13295 microoptimize print (lock stdout, borrow strings) 2019-02-12 22:25:46 +01:00