Commit Graph

4703 Commits

Author SHA1 Message Date
Daniel Alley
4bbca2bed2 Add itertools.combinations_with_replacement() 2019-12-26 00:21:53 -05:00
Noah
920ef52592 Merge pull request #1645 from dralley/itertools
Add itertools.cycle() and itertools.chain.from_iterable()
2019-12-25 13:05:45 -05:00
Daniel Alley
bf82caed4b Implement itertools.chain.from_iterable() 2019-12-25 10:33:23 -05:00
Jeong YunWon
57b6bf3e64 Merge pull request #1634 from youknowone/payload-if-subclass
PyObject::payload_if_subclass to reduce common pattern
2019-12-25 19:59:12 +09:00
Jeong YunWon
00b0a8abfe PyObject::payload_if_subclass 2019-12-25 19:11:07 +09: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
Jeong YunWon
a4b2f293d8 Merge pull request #1643 from RustPython/coolreader18/http
Add the http module
2019-12-24 16:41:08 +09: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
Noah
39ad03c7fb Merge pull request #1639 from doyshinda/impl_str_format_map
Add str.format_map method
2019-12-23 19:16:55 -05:00
Abe
325fb4c3a3 Add str.format_map method 2019-12-23 16:29:24 -07: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
bd4a492a53 Add fast path for new byte inner of bytes or bytearray 2019-12-21 14:51:11 -06:00
coolreader18
abb190ce50 Some small fixes for http to work 2019-12-21 14:51:11 -06:00
coolreader18
5856b85f74 Add stdlib modules necessary for http from CPython 3.6.0 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
Windel Bouwman
d3aff653b3 Merge pull request #1614 from yanganto/update-sys-module
Update sys module when stdlib_inits is changed
2019-12-21 12:30:11 +01:00
Jeong YunWon
c1306726c4 Fix clippy warnings 2019-12-21 18:49:48 +09:00
Aviv Palivoda
2cf92a9e3a Merge pull request #1623 from RustPython/coolreader18/fix-linecontinuation-typo
Rename LineContinationHandler -> LineContinuationHandler
2019-12-21 11:30:24 +02:00
Noah
f3b073a53d Merge pull request #1626 from youknowone/refactor-get_float_value
Refacter objint
2019-12-18 11:08:24 -06: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
0932d6912d refactor PyInt 2019-12-15 23:15:37 +09:00
Jeong YunWon
a7bee70685 objint::get_float_value -> objfloat::from_int_value
because objint::get_float_value is only used in objfloat
2019-12-15 23:15:37 +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
b410394934 Add more binascii tests 2019-12-14 15:48:48 -06:00
coolreader18
b8b094b597 Add os.isatty test 2019-12-14 15:48:48 -06:00
coolreader18
7ac8b6ee38 Add os.lseek test 2019-12-14 15:48:48 -06: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
Noah
73f56af2de Merge pull request #1628 from Riey/android
Add IPPROTO_NONE for android target
2019-12-14 08:42:21 -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
Eunchong Yu
e671528c63 Add test cases for condensed form of hashlib usage
Ref: https://docs.python.org/3.6/library/hashlib.html#hash-algorithms
2019-12-14 16:02:04 +09:00
coolreader18
fd07047aaf Rename LineContinationHandler -> LineContinuationHandler 2019-12-10 21:54:58 -06:00
yanganto
4c3642d19c Use enum for initialize parameters 2019-12-11 10:58:59 +08:00