Commit Graph

1549 Commits

Author SHA1 Message Date
alexpantyukhin
15e6187583 add overflow errors for int shifts. 2019-02-27 11:11:38 +04:00
Windel Bouwman
d6242ac6e3 Use py_module macro on ast module. 2019-02-26 22:27:59 +01:00
Windel Bouwman
f2e60b24e1 Add initial platform module. 2019-02-26 21:42:38 +01:00
Windel Bouwman
a6341d3ec8 Merge pull request #558 from silmeth/io-import
fix io module being initialized multiple times
2019-02-26 21:03:47 +01:00
silmeth
5949a9bd13 fix io module being imported multiple times 2019-02-26 20:23:43 +01:00
Windel Bouwman
c33abe91e9 Use py_module macro at more places. 2019-02-26 19:53:58 +01:00
Windel Bouwman
2fc53a9440 Merge pull request #539 from coolreader18/wasm-browser-req_anim_frame
[WASM] Add requestAnimationFrame to browser module
2019-02-26 19:28:18 +01:00
Windel Bouwman
aa48718d0a Merge pull request #549 from coolreader18/rust-value-payload
Add AnyRustValue payload variant
2019-02-26 17:26:44 +01:00
Windel Bouwman
82e2ba19ab Merge pull request #550 from coolreader18/remove-console_error-crate
Remove the console_error_panic_hook crate from Cargo.toml
2019-02-26 17:23:55 +01:00
Windel Bouwman
53f54e4d76 Merge pull request #546 from rickyhan/master
Use closure instead of function pointer for StdlibInitFunc
2019-02-26 17:21:59 +01:00
Windel Bouwman
f8b9d19ccc Merge pull request #553 from RustPython/joey/refcell-in-payload
Remove outer RefCell from PyObjectRef
2019-02-26 17:18:59 +01:00
Windel Bouwman
c3309ee867 Merge pull request #555 from RustPython/dis_dis
Dis dis
2019-02-26 17:07:41 +01:00
Adam Kelly
73a65a1c77 dis.rs - small refactor dis_dis. 2019-02-26 09:41:39 +00:00
Adam Kelly
79f43ad762 Add support for pulling __code__ out of a function (and a test that hits lots of instructions). 2019-02-26 09:41:39 +00:00
Adam Kelly
2c0016a171 Minimal definition of dis.dis. 2019-02-26 09:41:39 +00:00
Joey Hain
b8eb4c38e8 Fix wasm 2019-02-25 23:10:06 -08:00
Joey Hain
bd3630260a fix socket 2019-02-25 22:22:45 -08:00
Joey Hain
3dcbc4d2aa Fix set 2019-02-25 22:20:15 -08:00
Joey Hain
92fd12c9bd Fix scope 2019-02-25 22:07:08 -08:00
Joey Hain
d3646925ea Fix float() 2019-02-25 21:57:37 -08:00
Joey Hain
b28b164d75 Fix generators 2019-02-25 21:35:59 -08:00
Ricky Han
432b9dffaf cargo fmt 2019-02-26 00:34:40 -05:00
Joey
587f871396 Merge pull request #542 from AaronRocinante/invalid_control_ret_yield
fix invalid break continue return yield
2019-02-25 21:28:17 -08:00
Joey Hain
e959908a49 Fix iterator 2019-02-25 21:26:15 -08:00
Joey Hain
f10fa6db44 Remove outer RefCell from PyObjectRef 2019-02-25 21:01:37 -08:00
Ricky Han
88028dd8c5 cargo fmt 2019-02-25 23:41:17 -05:00
Aaron
fee6a47d88 rever new_label() 2019-02-25 20:35:43 -08:00
Aaron
f037244641 fmt 2019-02-25 20:33:03 -08:00
Aaron
f965c49704 compiler flag in_function_def 2019-02-25 20:31:03 -08:00
coolreader18
d399faa425 Remove the console_error_panic_hook crate from Cargo.toml 2019-02-25 20:50:53 -06:00
coolreader18
dbfd0d4ade Fix "not all variants covered" error 2019-02-25 20:05:41 -06:00
coolreader18
dfa5e12b3c Add AnyRustValue payload variant 2019-02-25 19:22:16 -06:00
coolreader18
9066c73814 Try to trigger a successful Azure Pipelines build 2019-02-25 19:09:26 -06:00
Ricky Han
6752f67292 cargo fmt 2019-02-25 16:34:55 -05:00
Ricky Han
943ded07bd fix wasm 2019-02-25 15:23:40 -05:00
Ricky Han
293ffc072c merge upstream 2019-02-25 14:54:10 -05:00
Ricky Han
985e35bb16 use closure instead of function pointer 2019-02-25 14:49:20 -05:00
Aaron
4a7d2cb010 reset in_loop in class definition block 2019-02-25 09:42:02 -08:00
Aaron
2f0f1b0913 use boolean flag 2019-02-25 09:32:58 -08:00
Aaron
7610d44865 cargo fmt 2019-02-25 00:26:06 -08:00
Aaron
e9b0454f1c fix invalid break continue return yield 2019-02-25 00:12:15 -08:00
Windel Bouwman
027a6847e5 Merge pull request #525 from RustPython/joey/extractor-pattern
Use "extractor" pattern for native functions
2019-02-25 07:22:00 +01:00
Windel Bouwman
9e03b6908c Merge pull request #538 from RustPython/joey/f-string-conversion-flags
Support f-string conversion flags
2019-02-25 07:21:09 +01:00
Windel Bouwman
22928be01a Merge pull request #537 from coolreader18/wasm-fix-select
[WASM] Fix snippet selector's default selection
2019-02-25 07:14:01 +01:00
Windel Bouwman
2d1b45162d Merge pull request #529 from palaviv/socket
socket module
2019-02-25 07:11:32 +01:00
Joey Hain
f050acba73 f-strings: allow ':' and '!' to be used in the expression 2019-02-24 21:13:08 -08:00
coolreader18
1646b53c72 Add a comment explaining the weird dict 2019-02-24 21:28:25 -06:00
coolreader18
5dd2de0b1e Add requestAnimationFrame to browser module 2019-02-24 21:13:51 -06:00
Joey Hain
ddc154a1dd f-strings: support conversion flags 2019-02-24 14:37:59 -08:00
Joey Hain
d6e317b185 Move f-string parser into own module and clean up a bit 2019-02-24 13:01:25 -08:00