Commit Graph

3947 Commits

Author SHA1 Message Date
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
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
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
Windel Bouwman
ba9736b7cc Merge pull request #1328 from youknowone/symtable-sequence-store
Fix symtable scan_expression not to mark sequence as Load
2019-09-01 21:57:45 +02:00
Aviv Palivoda
8980adc46d Merge pull request #1334 from palaviv/remove-arg-check
Convert to new arg style in builtins
2019-09-01 18:12:19 +03:00
Aviv Palivoda
64479a011a Convert keyword to new arg style 2019-08-31 22:49:23 +03:00
Aviv Palivoda
5a412df6e6 Conver binascii to new arg style 2019-08-31 22:46:20 +03:00
Aviv Palivoda
b9132e3893 Convert objsuper to new arg style 2019-08-31 22:46:13 +03:00
Aviv Palivoda
7807b36b3d Convert objproperty to new arg style 2019-08-31 22:46:04 +03:00
Aviv Palivoda
969b73fadf Convert objlist to new arg style 2019-08-31 22:45:56 +03:00
Aviv Palivoda
48ee96303c Convert sysmodule to new arg style 2019-08-31 22:45:22 +03:00
Adam Kelly
b087325b8d Be extremely conservative about guessing scopes when we don't know. 2019-08-31 16:39:27 +01:00
Aviv Palivoda
e61adb444c Convert reversed, round 2019-08-31 17:27:59 +03:00
Aviv Palivoda
6e48b13702 Convert pow 2019-08-31 17:18:41 +03:00
Aviv Palivoda
5e3d22a836 Convert ord 2019-08-31 17:13:45 +03:00
Aviv Palivoda
b67ee2e3b9 Convert next, oct 2019-08-31 17:05:50 +03:00
Adam Kelly
e7ffc9db1d load_global shouldn't load outermost locals. 2019-08-31 15:03:44 +01:00
Aviv Palivoda
c1f8f1da44 Convert id, iter, len 2019-08-31 16:55:42 +03:00
Aviv Palivoda
b43af3358b Convert hash, hex 2019-08-31 16:51:04 +03:00
Aviv Palivoda
362d0e785d Convert divmod 2019-08-31 16:47:35 +03:00
Aviv Palivoda
8feff79f33 Add ScopeArgs 2019-08-31 16:46:03 +03:00
Windel Bouwman
332c157f94 Merge pull request #1330 from palaviv/import-delay-tuple
Delay from_list tuple create in import
2019-08-31 12:38:39 +02:00
Aviv Palivoda
3d61129cfd Delay from_list tuple create in import 2019-08-31 11:31:59 +03:00
Jeong YunWon
b73f3d6b1f Remove duplicated contains_key test 2019-08-31 00:25:16 +09:00
Jeong YunWon
e9c280368a Fix scan_expression not to mark sequence as Load 2019-08-31 00:25:16 +09:00
Windel Bouwman
036f464377 Merge pull request #1325 from RustPython/scoping
Add scope type and other symboltable properties.
2019-08-30 07:08:49 +02:00
Windel Bouwman
e181826b5f Add scope type and other symboltable properties. 2019-08-29 19:16:45 +02:00
Windel Bouwman
39f54aa592 Merge pull request #1324 from RustPython/subscript-bytecode
Make subscript its own bytecode.
2019-08-28 19:14:41 +02:00
Windel Bouwman
78e9f01ad0 Merge pull request #1323 from corona10/dropwhile
itertools.dropwhile: Implement itertools.dropwhile
2019-08-28 13:19:59 +02:00
Dong-hee Na
44ceaa8dac itertools: Apply codereview 2019-08-28 19:13:11 +09:00
Dong-hee Na
e1854cec25 itertools.dropwhile: Implement itertools.dropwhile 2019-08-28 19:13:11 +09:00
Windel Bouwman
2517207175 Make subscript its own bytecode. Remove pass bytecode. Move complex bytecodes into seperate functions to reduce complexity of dispatch function. 2019-08-28 12:06:46 +02:00
Windel Bouwman
e9820c1a7b Merge pull request #1322 from corona10/fileio_close_set
fileio: Update closefd, closed when close method is called
2019-08-28 11:22:40 +02:00
Dong-hee Na
1176eac168 filio: Update closefd, closed when close method is called 2019-08-28 10:41:13 +09:00
Noah
cfeb74681b Merge pull request #1320 from RustPython/coolreader18/label-struct
Make bytecode::Label its own struct
2019-08-27 17:32:41 -05:00
Noah
c52328608e Make bytecode::Label its own struct 2019-08-27 21:19:18 +00:00
Windel Bouwman
0d2a7fc4ec Merge pull request #1321 from RustPython/try-return-finally
Refactor block stack unwinding to enable finally execution.
2019-08-27 22:19:24 +02:00
Windel Bouwman
2ca6e5d399 Implement execution of finally block. Fixes #1306. 2019-08-27 21:16:59 +02:00
Windel Bouwman
86fc18ec6c Refactor block stack unwinding to enable finally execution. 2019-08-27 19:40:00 +02:00
Windel Bouwman
47ddc7cd71 Merge pull request #1311 from RustPython/coolreader18/syscall-settings
Allow time.time() to work on WASM
2019-08-27 08:01:08 +02:00
coolreader18
0df3ed5260 Fix redox print_prompt 2019-08-26 21:23:35 -05:00
coolreader18
2ec6eb7d71 Fix getgroups on android 2019-08-26 20:24:04 -05:00
Noah
c61f1d20ea Allow time.time() to work on WASM 2019-08-26 21:21:31 +00:00
Windel Bouwman
9168455b12 Merge pull request #1313 from RustPython/coolreader18/keyboardinterrupt
Raise a KeyboardInterrupt on a SIGINT
2019-08-26 21:48:34 +02:00
Noah
5da00de769 Make print_prompt() a fn 2019-08-26 13:24:23 -05:00