Commit Graph

1484 Commits

Author SHA1 Message Date
coolreader18
7d3f34144d Add tests 2020-01-05 00:20:00 -06:00
Abe
765089d560 Add support for the % format code for floats.
Contributes to #1656
2020-01-03 16:14:24 -07:00
Jeong YunWon
e84ecafecd bump up num-bigint to 0.2.4 to fix modpow 2020-01-02 17:00:09 +09:00
Abe
30473d3058 Add support for string formatting of floats with ":f" format code
Also adds automatic conversion of int -> float when the ":f"
format code is specified.

Fixes a f-string formatting style regression introduced in #1625.
2019-12-31 18:52:46 -07:00
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
coolreader18
d4261cafa3 Add new test for cause 2019-12-27 11:22:53 -06:00
Aviv Palivoda
6698fdee12 Add TODO for spec validation 2019-12-27 10:19:07 +02:00
Aviv Palivoda
c3703f08d7 Support expression in f-strings spec 2019-12-27 10:19:07 +02: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
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
Abe
325fb4c3a3 Add str.format_map method 2019-12-23 16:29:24 -07: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
coolreader18
3d9f9f0172 Fix os.lseek 2019-12-16 18:33:04 -06: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
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
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
d4a1021473 Add support for __bytes__ method 2019-12-03 21:39:33 -06:00
coolreader18
bca6214c4f Fix byte{s,array}.join 2019-12-03 21:39:33 -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
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
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
maybe.rachel
a7601761bc add os pipe, blocking, inheritable functions 2019-11-30 01:34:54 -07:00
coolreader18
2a03a6df44 Add encoding arg to str, fix bytes.__add__ return type 2019-11-28 13:33:25 -06:00
coolreader18
58b03e50f3 Add encoding tests 2019-11-28 13:33:25 -06:00
coolreader18
928a404ef7 Use asyncio for async_stuff test 2019-11-23 11:20:41 -06:00
Aviv Palivoda
c3330d3ce3 Merge pull request #1597 from palaviv/io-improve
Add readline,tell to BytesIO and StringIO
2019-11-23 11:20:57 +02:00
Space0726
994e86fa25 Implement itertools.zip_longest 2019-11-23 02:43:07 +09:00
Noah
389db55a3f Merge pull request #1603 from dralley/itertools
Add itertools.combinations()
2019-11-22 09:47:53 -06:00
Aviv Palivoda
aa1af71851 Merge pull request #1598 from palaviv/fix-exc-panic
Separate BaseException to __init__ and __new__
2019-11-22 16:27:38 +02:00
Daniel Alley
16b2b425b8 Add itertools.combinations()
re: #1361
2019-11-21 23:06:27 -05:00
yanganto
07ff469161 Implement bytearray.mod
Implement bytearray formatting with CFormat
2019-11-20 12:11:14 +08:00
Noah
8267ea4624 Merge pull request #1599 from RustPython/coolreader18/asyncio-pre
Prerequisites for asyncio
2019-11-19 10:50:22 -06:00
Aviv Palivoda
96fdaab0c1 Separate BaseException to __init__ and __new__ 2019-11-19 18:23:14 +02:00
Noah
576d89fdcf Merge pull request #1563 from yanganto/byte.mod
bytes.mod implement with CFormat
2019-11-18 08:49:14 -06:00
yanganto
10ef5e56af bytes.mod implement mod
implement byte formatting with CFormat
2019-11-18 08:39:36 +08:00