Commit Graph

481 Commits

Author SHA1 Message Date
Aviv Palivoda
da57730692 Fix get_locals 2019-03-04 21:52:20 +02: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
Windel Bouwman
7dd1eec936 Merge pull request #517 from palaviv/set-more-funcs
Add set.{pop,update,intersection_update,difference_update,symmetric_difference_update}
2019-02-21 20:53:41 +01:00
Windel Bouwman
565023f55b Merge pull request #518 from AdamGS/add_int_attributes
Added real/imag attributes to int type.
2019-02-21 20:52:06 +01:00
Adam Gutglick
81a9e6984d Changed syntax in testutils.py that is introduced in 3.6 to a backwards compatible version. 2019-02-21 14:47:36 -05:00
Adam Gutglick
852dd1086a Added tests to imag/real attributes. 2019-02-21 14:11:23 -05:00
Aviv Palivoda
21b6616e8e Add set.symmetric_difference_update 2019-02-21 19:33:20 +02:00
Aviv Palivoda
1621d78326 Add set.difference_update 2019-02-21 19:02:05 +02:00
Aviv Palivoda
a4b814e9a7 Add set.intersection_update 2019-02-21 18:55:22 +02:00
Aviv Palivoda
5f3664e87d Add set.update 2019-02-21 18:34:47 +02:00
Aviv Palivoda
a89b0593da Add set.pop 2019-02-21 18:34:47 +02:00
Adam Kelly
5ebfd55b20 Add extremely minimal dis module. 2019-02-21 14:02:59 +00:00
janczer
b833c08951 Add bytearray.{lower, upper} 2019-02-20 19:35:39 +01:00