Commit Graph

3990 Commits

Author SHA1 Message Date
j30ng
d4e5d76441 Use into_ref_with_type() 2019-09-14 12:02:05 +09:00
j30ng
f920982755 Python 'None' Value -> Option 2019-09-14 11:52:56 +09:00
j30ng
708fd9bcfb Implement itertools.accumulate 2019-09-14 01:16:19 +09:00
coolreader18
42ca599379 Update Cargo.lock 2019-09-12 09:30:11 -05:00
Noah
9aaf887918 Merge pull request #1367 from j30ng/syntax-err-on-star
Return SyntaxError on Invalid Star Expression
2019-09-12 08:48:57 -05:00
j30ng
a5bea47bed Remove Enum Instruction::Unpack 2019-09-12 16:30:03 +09:00
Noah
0d1525965c Merge pull request #1366 from HyeockJinKim/issue1365
Fix unsupported operand type of str problem
2019-09-11 17:43:16 -05:00
HyeockJinKim
9a0078214a Add test for str 2019-09-12 06:52:34 +09:00
HyeockJinKim
2f96995f30 Fix unsupported operand type of str problem
Modify panic! to Err for unsupported operand type of str problem

Fixes #1365
2019-09-12 06:52:13 +09:00
j30ng
95d57ef9c4 Format Code with rustfmt 2019-09-12 04:36:31 +09:00
j30ng
ea69be5da5 Return SyntaxError on Invalid Star Expression 2019-09-12 04:04:27 +09:00
Noah
a65bb73a80 Merge pull request #1364 from HyeockJinKim/issue1360
nonlocal generate syntax error
2019-09-11 12:05:30 -05:00
HyeockJinKim
f8cb4a5690 Add test for nonlocal 2019-09-12 01:14:14 +09:00
HyeockJinKim
7695851cde nonlocal generate syntax error
If the scope depth is less than 2,
a syntax error occurs in nonlocal.

Fixes #1360
2019-09-12 01:13:47 +09:00
coolreader18
86103bfd01 Fix WASM 2019-09-10 23:17:50 -05:00
Noah
12b7fc7888 Merge pull request #1359 from RustPython/coolreader18/redox-rustyline
Use the rustyline prompt on redox
2019-09-10 21:56:56 -05:00
coolreader18
6a34a720e4 Update dependencies 2019-09-10 21:53:53 -05:00
coolreader18
2920c87a19 Fix more stuff on redox 2019-09-10 20:24:02 -05:00
coolreader18
5dd5b44b59 Use the rustyline prompt on redox 2019-09-10 18:01:21 -05:00
Jeong YunWon
65c90ab976 Merge pull request #1343 from vazrupe/add-framework-attr
Add framework attribute in sys module
2019-09-11 03:00:09 +09:00
HyeonGyu Lee (Vazrupe)
1be7cc6308 Add framework attribute in sys module
Fixes #1342
2019-09-10 20:16:11 +09:00
Noah
b7a11dfb67 Merge pull request #1354 from ChJR/feature/__bool__
Improve __bool__
2019-09-09 15:46:56 -05:00
Noah
c5ce1bb4d9 Merge pull request #1341 from RustPython/coolreader18/method-scopes
Fix class vs method scopes
2019-09-08 13:46:05 -05:00
coolreader18
51934e0d7c Add explanation of broken test 2019-09-08 10:09:15 -05:00
ChJR
da020293d2 Refactor boolval() 2019-09-08 18:19:52 +09:00
ChJR
21821b7a72 Throw ValueError when __len__() is a negative value 2019-09-08 17:42:02 +09:00
ChJR
7b980920b9 Check __bool__() returns only bool value 2019-09-08 17:37:57 +09:00
ChJR
adc919f6c9 Merge branch 'master' into feature/__bool__ 2019-09-08 16:32:58 +09:00
Noah
ec1d30ba85 Merge pull request #1352 from HyeockJinKim/issue1351
Clone other to prevent borrow error
2019-09-07 22:59:06 -05:00
coolreader18
cad53c2fec Don't clone SymbolTables when analyzing 2019-09-07 18:12:02 -05:00
HyeockJinKim
d042ab2aa9 Clone other to prevent borrow error
Clone other to prevent borrow error
when self iadd to itself from list

Fixes #1351
2019-09-08 04:31:02 +09:00
coolreader18
b797b51369 Fix class scopes by modifying symboltable 2019-09-07 01:29:11 -05:00
Noah
93eea7c49e Merge pull request #1349 from isidentical/seek_constants
add seek constants, resolves #1348
2019-09-06 21:25:54 -05:00
isidentical
caa47221a2 macos fix 2019-09-07 03:48:00 +03:00
isidentical
f7d918afd8 add seek constants, resolves #1348 2019-09-07 03:16:10 +03:00
coolreader18
ae45a4a3be Fix class vs method scopes 2019-09-05 00:27:16 -05:00
Windel Bouwman
c973ed8ca2 Merge pull request #1329 from palaviv/scope-linked-list
Use LinkedList in scope locals
2019-09-04 21:31:53 +02:00
Noah
0ad1144ed5 Merge pull request #1340 from RustPython/coolreader18/windows-improvements
Improve UX on windows
2019-09-04 12:27:39 -05:00
Noah
5ae1fca0ec Improve UX on windows
Use the `dirs` crate to find the config dir on non-unix; fix warnings
2019-09-04 11:15:41 -05:00
Windel Bouwman
a3081c5d7b Merge pull request #1336 from RustPython/comprehension-scope
Add symboltable scope for comprehensions.
2019-09-04 15:45:55 +02:00
Aviv Palivoda
29d9105ce1 Use extend_from_slice 2019-09-04 16:04:53 +03:00
Aviv Palivoda
42c4339729 Use get in store_cell 2019-09-04 14:50:30 +03:00
Aviv Palivoda
59884ef6f0 Change locals to Vec 2019-09-04 11:46:39 +03:00
Noah
6217e7e10b Merge pull request #1338 from Tom1380/master
Raised chrono version to 0.4.7.
2019-09-03 21:03:46 -05:00
Tommaso Thea Cioni
b99ff48567 Raised chrono version to 0.4.7. 2019-09-04 03:01:38 +02:00
Windel Bouwman
82b81832cf Merge pull request #1337 from palaviv/remove-arg-check-2
Convert more modules to new arg style
2019-09-03 17:16:22 +02:00
Aviv Palivoda
630fbd948a Use LinkedList in scope locals 2019-09-02 18:40:55 +03:00
Adam
814260e7e4 Merge pull request #1332 from RustPython/load_global_loading_local
load_global shouldn't load outermost locals.
2019-09-02 10:13:19 +01:00
Adam Kelly
527f3ff800 Be somewhat less conservative about declaring things global. 2019-09-02 09:35:29 +01:00
Windel Bouwman
b36bbfa91c Add symboltable scope for comprehensions. Add _ast module nodes for comprehensions. 2019-09-01 22:31:16 +02:00