Commit Graph

4661 Commits

Author SHA1 Message Date
Jeong YunWon
c1306726c4 Fix clippy warnings 2019-12-21 18:49:48 +09:00
Noah
f3b073a53d Merge pull request #1626 from youknowone/refactor-get_float_value
Refacter objint
2019-12-18 11:08:24 -06:00
Windel Bouwman
1005dccaec Merge pull request #1631 from youknowone/syntax-error
implement SyntaxError attributes
2019-12-16 08:19:07 +01: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
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
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
Adolfo Gonzalez III
1519c326d8 Added test 2019-12-06 14:17:30 -06:00
Adolfo Gonzalez III
4e4be1c40a Removed file 2019-12-06 13:20:25 -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
Windel Bouwman
124dbfb7b9 Merge pull request #1618 from RustPython/coolreader18/misc-changes
Some miscellaneous changes (print fix, bytes/bytearray fixes, mappingproxy iter)
2019-12-04 16:06:58 +01:00
coolreader18
a07e0a14bd Use a BufWriter for dumping profile output 2019-12-03 23:09:07 -06:00
coolreader18
04dfc06cd7 More socket constants 2019-12-03 21:39:34 -06:00
coolreader18
516bce048a Don't panic when we try going past the end of a generator 2019-12-03 21:39:34 -06:00
coolreader18
ea7db95a70 Have single_or_tuple_any recursively check for tuples 2019-12-03 21:39:34 -06:00
coolreader18
163127b5e1 Make KeyError and IndexError subclasses of LookupError 2019-12-03 21:39:34 -06:00
coolreader18
d4a1021473 Add support for __bytes__ method 2019-12-03 21:39:33 -06:00
coolreader18
42b5fbc52d Fix print() when args are not strings with file= present 2019-12-03 21:39:33 -06:00
coolreader18
ecfc542c30 Class mappingproxy iteration 2019-12-03 21:39:33 -06:00
coolreader18
00cf87cde9 Mini-fix for _sre; need bytes support 2019-12-03 21:39:33 -06:00
coolreader18
765529abab Mini optimizations 2019-12-03 21:39:33 -06:00
coolreader18
bca6214c4f Fix byte{s,array}.join 2019-12-03 21:39:33 -06:00
coolreader18
e5a512cc9a Add bytearray.__delitem__ 2019-12-03 21:39:33 -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
67c7fef22e Removed tests 2019-12-02 11:27:50 -06:00
Adolfo Gonzalez III
8c876bc8ea Merging changes 2019-12-02 11:26:00 -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
6d73dac56d Removed tests 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
maybe-rachel
614d2ed5c5 Revert "/pull/1616#pullrequestreview-324914220"
This reverts commit 8ad4aa84d5.
2019-11-30 21:34:47 -07:00
maybe-rachel
8ad4aa84d5 /pull/1616#pullrequestreview-324914220 2019-11-30 17:51:34 -07:00
coolreader18
f24cdf191c Add socket.gethostbyaddr, fix socket.bind with empty address 2019-11-30 17:25:36 -06:00
coolreader18
62ce47d144 Add socket.recv_into 2019-11-30 17:25:36 -06:00
coolreader18
f75638cc17 socket.getaddrinfo 2019-11-30 17:25:34 -06:00
Aviv Palivoda
c4466a0880 Merge pull request #1615 from palaviv/fix-caret
Fix caret diagnostics for mutiple lines
2019-11-30 16:32:34 +02:00
maybe.rachel
a7601761bc add os pipe, blocking, inheritable functions 2019-11-30 01:34:54 -07:00