Commit Graph

1611 Commits

Author SHA1 Message Date
Adrian Wielgosik
1519426cb4 Support raising exceptions without call 2019-02-28 22:06:14 +01:00
Windel Bouwman
40c1a0f197 Merge pull request #562 from coolreader18/wasm-promise-class
[WASM] Add a Promise class to the browser module
2019-02-28 17:19:41 +01:00
Windel Bouwman
eaaafacd87 Merge pull request #554 from skinny121/isinstance
Call __instancecheck__ and __subclasscheck__
2019-02-28 17:14:12 +01:00
coolreader18
500f48621d Merge branch 'master' into wasm-promise-class 2019-02-28 07:29:17 -06:00
Ryan Liddle
de322689eb Merge pull request #573 from alexpantyukhin/fix_mut_warning
remove redundant mut
2019-02-28 21:07:00 +11:00
Ryan Liddle
f6e99d1e24 Merge pull request #574 from RustPython/fetch_ins
fetch_instruction can just return a reference.
2019-02-28 21:06:18 +11:00
Adam Kelly
786eb2cbfb fetch_instruction can just return a reference. 2019-02-28 08:33:43 +00:00
ben
5779124f11 rustfmt 2019-02-28 20:40:32 +13:00
ben
e30d91febc Swap naming of is{instance, subclass} <-> real_is{instance, subclass} 2019-02-28 20:32:57 +13:00
ben
52c32fab3a Call __instancecheck__ and __subclasscheck__ as part of isinstance and issubclass 2019-02-28 20:30:31 +13:00
Windel Bouwman
b0ee1947c7 Merge pull request #565 from alexpantyukhin/add_kwarg_handling_to_int
add kwarg handling for int
2019-02-28 07:36:08 +01:00
apantykhin
9081cb2b2c remove redundant mut 2019-02-28 06:35:08 +00:00
Windel Bouwman
56e55e87fe Merge pull request #568 from RustPython/framestack_2
Framestack 2
2019-02-28 07:33:04 +01:00
Windel Bouwman
6f2bbd2e4c Merge pull request #545 from palaviv/socket1
Socket improvments
2019-02-28 07:24:10 +01:00
Windel Bouwman
cca19cf71f Merge pull request #569 from coolreader18/wasm-alert
Add alert, confirm, and prompt to the browser module
2019-02-28 07:22:30 +01:00
coolreader18
ea93fb871c Add alert, confirm, and prompt to the browser module 2019-02-27 17:38:24 -06:00
apantykhin
7e2c702c5e fix fmt 2019-02-27 21:22:24 +00:00
alexpantyukhin
d806a19c23 add kwarg handling for int 2019-02-27 19:58:32 +00:00
Aviv Palivoda
8087ccf274 Add socket.getsockname 2019-02-27 20:47:53 +02:00
coolreader18
e3db472f37 Fix merge conflicts 2019-02-27 12:44:42 -06:00
Adam Kelly
2cc9a606da Avoid double borrow in Frame.nth_value. 2019-02-27 18:23:39 +00:00
Aviv Palivoda
dc0bd73d12 Fix compiler warnings 2019-02-27 20:23:02 +02:00
Aviv Palivoda
4191ba67b3 Copy instead of clone 2019-02-27 20:19:10 +02:00
Aviv Palivoda
716eb4afca Add validation to connect and bind address 2019-02-27 19:54:39 +02:00
Aviv Palivoda
dff6b0be36 Rename sk to socket_kind 2019-02-27 19:54:39 +02:00
Aviv Palivoda
2bdbc40a45 socket.recv read amount of bytes asked 2019-02-27 19:50:31 +02:00
Adam Kelly
676130fc49 Use refcells in frames to solve frame mutability problem. 2019-02-27 10:47:33 +00:00
Adam Kelly
4dd6592aad Keep a stack of frames in the VM. 2019-02-27 10:47:33 +00:00
Windel Bouwman
6c8584cc11 Merge pull request #564 from alexpantyukhin/int_shifts
add overflow errors for int shifts.
2019-02-27 10:55:19 +01:00
alexpantyukhin
70ad78eb21 fix error messages. 2019-02-27 13:22:27 +04:00
Windel Bouwman
9404c7c657 Merge pull request #548 from rickyhan/new_vm_fns
Move set_item to DictProtocol
2019-02-27 09:40:12 +01:00
Windel Bouwman
d5976e2f83 Merge pull request #563 from coolreader18/demo-bits-and-bobs
Quality of life improvements for the demo.
2019-02-27 09:26:46 +01:00
Windel Bouwman
9a36951428 Merge pull request #559 from adrian17/list_sort
Add list.sort, sorted()
2019-02-27 09:24:22 +01:00
Windel Bouwman
28d5acc25c Merge pull request #552 from AaronRocinante/lexer_handle_random_byte
add lexer error
2019-02-27 08:13:19 +01:00
alexpantyukhin
15e6187583 add overflow errors for int shifts. 2019-02-27 11:11:38 +04:00
Windel Bouwman
f8e96394b7 Merge pull request #561 from rickyhan/rustfmt
Rustfmt
2019-02-27 08:11:33 +01:00
coolreader18
179304bc93 Update WASM example crate/app 2019-02-26 23:48:23 -06:00
coolreader18
c4513a176b Proper error handling for int to animationFrame id 2019-02-26 22:20:28 -06:00
coolreader18
b82e829c1f newline 2019-02-26 21:27:30 -06:00
coolreader18
717392c3c5 Scroll to the bottom of the demo when it gets updated 2019-02-26 21:21:43 -06:00
coolreader18
3df8f1c788 Update the snippet on page load; insert spaces when tab is pressed 2019-02-26 20:55:23 -06:00
coolreader18
1d193e7fc7 Convert between JS Promises and PyPromises 2019-02-26 20:37:59 -06:00
coolreader18
ba1c5d78aa Add a Promise class to the browser module 2019-02-26 20:28:25 -06:00
ricky han
21ebb03242 rust fmt 2019-02-26 18:38:16 -05:00
ricky han
ec93c55e6d rustfmt 2019-02-26 18:37:40 -05:00
ricky han
233f5d42fb Merge branch 'rustfmt' into new_vm_fns 2019-02-26 18:33:58 -05:00
ricky han
d5f0e25686 add rustfmt.toml 2019-02-26 18:32:27 -05:00
ricky han
30145ec6e2 cargo fmt 2019-02-26 17:47:03 -05:00
ricky han
830cc7e990 revert macro 2019-02-26 17:46:06 -05:00
ricky han
0a2aa1e64b fix compile 2019-02-26 17:39:56 -05:00