Commit Graph

492 Commits

Author SHA1 Message Date
Adam Kelly
647cb08d78 Remove special case for None payload from boolval. 2019-03-05 15:05:52 +00:00
Adam
d278fb841c Merge pull request #597 from RustPython/type_hints
Add type annotations to parser.
2019-03-05 14:43:30 +00:00
Ryan Liddle
b7c03b4be5 Merge pull request #601 from RustPython/ellipsis
Add ellipsis syntax.
2019-03-05 18:30:44 +11:00
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
05929b3d7b Add ellipsis type, test and do rustfmt. 2019-03-05 07:19:00 +01:00
Aviv Palivoda
a545e4392a Test locals indside a function 2019-03-04 22:17:41 +02: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
Windel Bouwman
f7a22254a6 Add return annotation and fix tests in parser. 2019-03-04 20:29:34 +01:00
Windel Bouwman
6544f60d9b Add type annotations to parser. 2019-03-04 19:24:34 +01: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
c5789a03a3 Proper construction of scope for exec/eval. 2019-03-04 14:32:52 +00: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
Adrian Wielgosik
1519426cb4 Support raising exceptions without call 2019-02-28 22:06:14 +01: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
Windel Bouwman
56e55e87fe Merge pull request #568 from RustPython/framestack_2
Framestack 2
2019-02-28 07:33:04 +01: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
Aviv Palivoda
716eb4afca Add validation to connect and bind address 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
15e6187583 add overflow errors for int shifts. 2019-02-27 11:11:38 +04:00
Adrian Wielgosik
45da6b8af1 Add list.sort, sorted() 2019-02-26 22:03:45 +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
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
Joey Hain
f050acba73 f-strings: allow ':' and '!' to be used in the expression 2019-02-24 21:13:08 -08:00
Joey Hain
ddc154a1dd f-strings: support conversion flags 2019-02-24 14:37:59 -08:00
Aviv Palivoda
c87cf90043 Add socket test 2019-02-24 22:20:20 +02:00
Adam Gutglick
f4e6e5dec8 Addred real property and is_integer function to float. 2019-02-24 04:02:24 +02:00
Aviv Palivoda
b530733c1a Add assertRaises context manager to testutils 2019-02-23 13:11:26 +02:00
Windel Bouwman
3f8f0e2ff4 Merge pull request #524 from palaviv/Improve-set-5
Add set.{__iter__,__ior__,__iand__,__isub__,__ixor__}
2019-02-23 08:50:26 +01:00
Joey
2df741452b Merge pull request #523 from AdamGS/complex_and_ints_addition
Complex and ints addition
2019-02-22 07:34:47 -08:00
Aviv Palivoda
fc10560308 Add set.{__ior__,__iand__,__isub__,__ixor__} 2019-02-22 16:50:40 +02:00
Aviv Palivoda
7cf25440fa Add set.__iter__ 2019-02-22 16:25:55 +02:00
Adam Gutglick
f333c75fd6 Added the ability to do addition between complex numbers and ints. 2019-02-22 08:42:44 -05:00
Adam Gutglick
38b4c10833 Added the ability to do addition between complex numbers and ints. 2019-02-21 19:28:46 -05:00
Joey
8f37b9f443 Merge pull request #519 from AdamGS/testutil_back_comp
Backwards compitability for python 3.5 to run tests.
2019-02-21 14:31:03 -08:00
Adam Gutglick
999ca431d5 Fixed typo. 2019-02-21 16:03:07 -05:00
Adam Gutglick
365680c272 Changed to syntax RustPython supports. 2019-02-21 15:55:18 -05:00