Commit Graph

895 Commits

Author SHA1 Message Date
Noah
deee1f7df7 Merge pull request #1644 from RustPython/coolreader18/exc-cleanup
Use PyBaseExceptionRef in places where we expect exceptions
2019-12-29 17:17:26 -05:00
Noah
bd13671eee Merge pull request #1641 from youknowone/refactor-float
Refactor float, complex cmp/op , str, None
2019-12-28 21:07:33 -05:00
coolreader18
777542f7ec Directly instantiate exceptions in the vm.new_*_error functions 2019-12-28 01:31:24 -06:00
Noah
97c8d11092 Make PyResult<T> = Result<T, PyBaseExceptionRef> 2019-12-27 11:22:52 -06:00
Jeong YunWon
f22a12d555 Merge pull request #1647 from youknowone/property-setter
Allow empty return type for property setter
2019-12-27 14:32:25 +09:00
Jeong YunWon
a54c98de3f property setter return PyResult<()> instead of PyResult 2019-12-27 02:09:58 +09:00
Jeong YunWon
801d01161c Refactor PyFloat cmp/op 2019-12-26 22:17:24 +09:00
Daniel Alley
4bbca2bed2 Add itertools.combinations_with_replacement() 2019-12-26 00:21:53 -05:00
Daniel Alley
bf82caed4b Implement itertools.chain.from_iterable() 2019-12-25 10:33:23 -05:00
Daniel Alley
7be477a091 Add itertools.cycle() 2019-12-24 20:13:50 -05:00
Noah
e75d667ade Merge pull request #1636 from dralley/itertools
Itertools.permutations implementation & combinations fixes
2019-12-24 12:32:57 -05:00
Daniel Alley
5ae7e99cde Add permutations implementation 2019-12-24 00:55:46 -05:00
Daniel Alley
f32fe9dcb8 Fix combinations implementation 2019-12-24 00:23:37 -05:00
coolreader18
a48afdd087 Add compilation on windows 2019-12-22 22:11:45 -06:00
coolreader18
32d1016a7f Add a TryFromObject impl for std::time::Duration 2019-12-21 14:51:12 -06:00
coolreader18
5f14238737 Add BytesIO.truncate 2019-12-21 14:51:12 -06:00
coolreader18
dcbf1a7ac4 Add socket.setsockopt 2019-12-21 14:51:11 -06:00
coolreader18
e8d51a8f4b Fix remaining clippy errors to get master green 2019-12-21 14:51:00 -06:00
coolreader18
08f72686b3 Actually actually make master green 2019-12-21 14:45:33 -06:00
coolreader18
3bf124f364 Actually make master green 2019-12-21 14:44:04 -06:00
coolreader18
8dc6c2bddc Fix remaining clippy errors to get master green 2019-12-21 14:35:37 -06:00
Noah
c6131b3d7a Merge pull request #1640 from youknowone/clippy
Fix clippy warnings
2019-12-21 14:31:43 -06:00
Windel Bouwman
63f0d27b15 Merge pull request #1617 from RustPython/coolreader18/os-stuff
Fix some various issues with `os` and `binascii`
2019-12-21 12:31:59 +01:00
Jeong YunWon
c1306726c4 Fix clippy warnings 2019-12-21 18:49:48 +09:00
coolreader18
3d9f9f0172 Fix os.lseek 2019-12-16 18:33:04 -06:00
Windel Bouwman
1005dccaec Merge pull request #1631 from youknowone/syntax-error
implement SyntaxError attributes
2019-12-16 08:19:07 +01:00
coolreader18
e68935c783 Add os::errno_err utility function 2019-12-15 17:09:18 -06:00
Jeong YunWon
2e54f9a807 implement SyntaxError attributes 2019-12-16 00:08:16 +09:00
Jeong YunWon
bd941207fe Merge pull request #1630 from Kroisse/hashlib-ctors
Add an optional data parameter for predefined constructors of hashlib
2019-12-15 13:00:57 +09:00
coolreader18
4cf49efda1 Always set OSError.errno; have it be None instead of missing 2019-12-14 15:48:48 -06:00
coolreader18
5c5a7984ca Fix os.write TypeError, add os.isatty, os.lseek 2019-12-14 15:48:48 -06:00
coolreader18
afa10b7adb Allow os.stat to take a fileno or a path 2019-12-14 15:48:48 -06:00
coolreader18
69658bd215 Update binascii with base64, add with_ref method to PyBytesLike 2019-12-14 15:48:48 -06:00
Eunchong Yu
db5b8976bd Extract procedure that fills hasher with data 2019-12-14 17:02:44 +09:00
Riey
58fc058dc1 Add IPPROTO_NONE for android target 2019-12-14 16:23:29 +09:00
Eunchong Yu
61befa4208 Add optional data parameter for each hashlib ctors 2019-12-14 16:11:14 +09:00
Noah
a04c19ccb0 Merge pull request #1585 from adolfogonzalez3/fixing_ceil_floor
Possible fix for math.ceil and math.floor
2019-12-06 16:30:58 -06:00
Noah
97b8a7bf32 Merge pull request #1621 from RustPython/coolreader18/io-update
Update the io module with a bunch of methods
2019-12-04 13:08:14 -06:00
Windel Bouwman
799541b0b1 Merge pull request #1619 from RustPython/coolreader18/time-structseq
Make time.struct_time a struct_sequence
2019-12-04 16:09:00 +01:00
coolreader18
04dfc06cd7 More socket constants 2019-12-03 21:39:34 -06:00
Noah
255dd5f491 Unify buffer and closed 2019-12-03 11:37:46 -06:00
coolreader18
68e9c12b9a Make time.struct_time a struct_sequence 2019-12-02 18:16:28 -06:00
Adolfo Gonzalez III
256f3562c2 Changed to use existing method
Made try_to_bigint public and then used for math.ceil and math.floor
2019-12-02 11:24:18 -06:00
Adolfo Gonzalez III
47daaf555f Rebasing branch 2019-12-02 11:24:18 -06:00
coolreader18
4263ce48e3 Include _io on WASM, just not FileIO 2019-12-01 17:49:29 -06:00
Windel Bouwman
10997aeda7 Merge pull request #1620 from RustPython/coolreader18/socket-fixes
Add some dns functions to socket
2019-12-01 10:51:07 +01:00
coolreader18
e63073bfb8 Update io module with a bunch of methods 2019-12-01 02:01:15 -06:00
Noah
711c222f0e Merge pull request #1616 from maybe-rachel/stdlib_os_additions
add some os stdlib functions
2019-11-30 23:55:47 -06:00
Noah
ec011f579a Merge pull request #1604 from Space0726/itertools
Implement itertools.zip_longest
2019-11-30 22:51:50 -06:00
maybe-rachel
0e7a22b672 PR review try#2 2019-11-30 21:46:08 -07:00