Commit Graph

1676 Commits

Author SHA1 Message Date
Windel Bouwman
81a85cc0bf Merge pull request #599 from palaviv/Fix-locals
Fix locals
2019-03-05 07:23:46 +01:00
Windel Bouwman
458ead0cbc Merge pull request #600 from adrian17/as_ratio
Add float.as_integer_ratio()
2019-03-05 07:22:38 +01:00
Windel Bouwman
883a4944c8 Merge pull request #598 from palaviv/dir-module
Fix module dir
2019-03-05 07:20:12 +01:00
Windel Bouwman
a26401707f Minor lexer simplifications. 2019-03-04 21:25:35 +01:00
Aviv Palivoda
a545e4392a Test locals indside a function 2019-03-04 22:17:41 +02:00
Windel Bouwman
b50f0be910 Merge pull request #596 from RustPython/joey/complex-to-any
Convert complex to Any payload
2019-03-04 20:55:51 +01:00
Adrian Wielgosik
eed0b3ca45 Add float.as_integer_ratio() 2019-03-04 20:52:56 +01:00
Aviv Palivoda
da57730692 Fix get_locals 2019-03-04 21:52:20 +02:00
Aviv Palivoda
2d31e35844 Add test dir 2019-03-04 21:31:20 +02:00
Aviv Palivoda
d24f79b17d dir show module content 2019-03-04 21:27:03 +02:00
Adam
a7c3f85da7 Merge pull request #595 from palaviv/socket-user-macros
Use py_class and py_module macros in socket
2019-03-04 17:11:08 +00:00
Joey Hain
f820aeb1ea Convert complex payload 2019-03-04 09:04:24 -08:00
Aviv Palivoda
933c8dc792 Use py_module macro 2019-03-04 18:30:37 +02:00
Aviv Palivoda
d2061004a3 Use py_class macro 2019-03-04 18:27:33 +02:00
Windel Bouwman
38c43e0465 Merge pull request #590 from RustPython/exec
Proper construction of scope for exec/eval.
2019-03-04 16:57:12 +01:00
Adam
839f906927 Merge pull request #592 from RustPython/joey/improved-arg-errors
Improve error messages and add docs for new native function machinery
2019-03-04 14:42:18 +00:00
Adam
4ce0a7c216 Merge pull request #586 from RustPython/joey/float-range-any-payload
Convert more objects to `Any` payload
2019-03-04 14:40:06 +00:00
Adam Kelly
c4953ee9ec Remove new macro and inline check into make_scope. 2019-03-04 14:33:53 +00:00
Adam Kelly
0d4887abe6 Fix missing asserts and add (disabled) tests for things that don't work yet. 2019-03-04 14:32:52 +00:00
Adam Kelly
6548c365cb Use check_but_allow_none for exec/eval. 2019-03-04 14:32:52 +00:00
Adam Kelly
4dd0304712 Add check_but_allow_none macro for optional argument checking. 2019-03-04 14:32:52 +00:00
Adam Kelly
c5789a03a3 Proper construction of scope for exec/eval. 2019-03-04 14:32:52 +00:00
Adam
5d28f9bc36 Merge pull request #594 from skinny121/isinstance_2
Only use real isinstance/issubclass for built-ins
2019-03-04 14:31:43 +00:00
ben
b1a070acc2 Only use real isinstance/issubclass for builtins and move the real
versions to the vm.
2019-03-04 19:55:58 +13:00
Joey Hain
2d71f6de28 bytes and bytearray 2019-03-03 20:01:07 -08:00
Joey Hain
4e822ed6cd Improve error messages and add docs for new native function machinery 2019-03-03 12:52:51 -08:00
Windel Bouwman
9b7c0f78c8 Merge pull request #584 from palaviv/socket-udp
Socket UDP
2019-03-03 21:01:15 +01:00
Aviv Palivoda
283b331323 Use vm.ctx.new_tuple 2019-03-03 18:22:20 +02:00
Aviv Palivoda
f09f75ac8d Do implicit bind in socket.sendto 2019-03-03 18:15:14 +02:00
Aviv Palivoda
9b5ba068af Return addr in accept 2019-03-03 18:15:14 +02:00
Aviv Palivoda
86b60faa61 Add socket.{sendto, recvfrom} 2019-03-03 18:15:14 +02:00
Aviv Palivoda
e5d1d11c3e Add UDP to socket 2019-03-03 18:15:14 +02:00
Windel Bouwman
9271115db7 Introduce py_class macro to define classes. (#589)
* Introduce py_class macro to define classes.
* rustfmt
2019-03-03 13:25:00 +00:00
Joey
4f944d33ad Merge pull request #588 from arfan/master
fix typo in README.md, will to with
2019-03-02 19:44:21 -07:00
Abdul Arfan
0a68b7a3da fix typo in README.md, will to with 2019-03-03 09:18:08 +07:00
Joey Hain
e7fb116210 Convert more objects to Any payload 2019-03-02 13:27:00 -08:00
Joey Hain
4558dbf210 Fix build (rustfmt) 2019-03-02 13:25:42 -08:00
Windel Bouwman
b98926a0fb Merge pull request #572 from RustPython/joey/fun-with-functions
Derive types, arity, conversions and more from rust fns
2019-03-02 20:56:52 +01:00
Windel Bouwman
30ddb48037 Use PyResult at more places. 2019-03-02 14:10:46 +01:00
Windel Bouwman
8847081e8b Merge pull request #582 from palaviv/socket-any
Use PyObjectPayload::AnyRustValue for socket
2019-03-02 13:45:48 +01:00
Joey Hain
3478251d40 Merge remote-tracking branch 'origin/master' into joey/fun-with-functions
Conflicts:
      vm/src/lib.rs
      vm/src/pyobject.rs
      wasm/lib/src/vm_class.rs
2019-03-02 04:04:22 -08:00
Joey Hain
a70f251b6a PyNativeFuncFactory => IntoPyNativeFunc 2019-03-02 03:47:37 -08:00
Aviv Palivoda
af2f790d0d Use PyObjectPayload::AnyRustValue for socket 2019-03-02 12:26:23 +02:00
Aviv Palivoda
aed657173f Simplify socket_close 2019-03-02 12:26:23 +02:00
Aviv Palivoda
e4007f530e Add get_socket function 2019-03-02 12:25:59 +02:00
Windel Bouwman
7bb6f8fdaa Minor clippy fix. 2019-03-02 11:22:40 +01:00
Windel Bouwman
8f52e15d32 Minor clippy fixes. 2019-03-02 11:14:35 +01:00
Windel Bouwman
f3e29c8d5f Merge pull request #581 from coolreader18/wasm-example-crate-alert
Use alert() for the WASM example crate
2019-03-02 10:31:40 +01:00
Windel Bouwman
c8afeae0f7 Merge pull request #577 from RustPython/kill_scope_variant
Remove Scope variant from PyObject.
2019-03-02 10:30:41 +01:00
Windel Bouwman
5b39924389 Merge pull request #580 from coolreader18/fix-clippy-lints
Fix a bunch of clippy lints
2019-03-02 10:20:16 +01:00