Commit Graph

3520 Commits

Author SHA1 Message Date
Noah
08593cd9f3 Do some more refactoring, but better 2020-03-21 00:35:38 -05:00
Noah
c1bf5124b1 RuntimeError on coro raising StopIteration 2020-03-21 00:35:38 -05:00
Noah
f0cc91d9ac Refactor to be more accurate to CPython 2020-03-21 00:34:13 -05:00
coolreader18
b83443cea9 Partially implement async generators 2020-03-21 00:33:46 -05:00
Jeong YunWon
e97937ab20 Merge pull request #1814 from youknowone/test-bytes
fix bytes bugs and add test_bytes.py
2020-03-21 09:54:02 +09:00
Jeong YunWon
be6f49456f Merge pull request #1812 from youknowone/str-repr
Fix str.__repr__ and builtin ascii
2020-03-21 09:53:49 +09:00
Noah
457602d5f1 Merge pull request #1819 from RustPython/coolreader18/only-gh-actions
Remove Travis and Azure CI
2020-03-20 14:39:56 -05:00
Jeong YunWon
d1dba7f7d1 Merge pull request #1818 from palaviv/struct-fixes
Struct fixes
2020-03-21 01:14:21 +09:00
Noah
ddc461ce7f Lower recursion limit on debug builds 2020-03-15 13:50:53 -05:00
Noah
56eb656fdd Allow compilation on Redox 2020-03-15 13:48:43 -05:00
Aviv Palivoda
efb6f6a64c Implement pascal string packing 2020-03-14 17:07:38 +02:00
Aviv Palivoda
7925932459 bool packing check __bool__ 2020-03-14 16:33:13 +02:00
Aviv Palivoda
bbb799f2c7 Resize pack_string with padding 2020-03-14 16:25:02 +02:00
Aviv Palivoda
395fd6bfbe Integer packing check __index__ 2020-03-14 12:30:41 +02:00
Noah
eecb097ae6 Make bytecode::Location Copy 2020-03-13 21:49:10 -05:00
Noah
75eabfdc2c Merge pull request #1787 from youknowone/posonly
PEP570 - positional only parameter support
2020-03-13 17:19:21 -05:00
Aviv Palivoda
1fd1c19cdf Merge pull request #1797 from RustPython/coolreader18/stdlib-msvcrt
Add the msvcrt stdlib module
2020-03-13 12:44:29 +02:00
Jeong YunWon
2cd67c7d74 Fix empty needle crash for bytes.__contains__ 2020-03-13 10:20:09 +09:00
Jeong YunWon
37d5f99bde Fix bytes.split for 32bit+ int maxsplit 2020-03-13 10:20:09 +09:00
Noah
02f7f57425 Merge pull request #1803 from youknowone/subprocess-wait
Fix subprocess.wait to take None as a timeout argument
2020-03-12 20:18:05 -05:00
Jeong YunWon
d7e32680a9 Fix str.isalpha 2020-03-13 08:47:21 +09:00
Jeong YunWon
dc6fa6cf62 Fix str.isascii 2020-03-13 08:47:21 +09:00
Jeong YunWon
7bb8998b8e Fix subprocess.wait to take None as a timeout argument 2020-03-13 08:24:53 +09:00
Jeong YunWon
39e1cf1751 Fix str.__repr__ and builtin ascii 2020-03-13 08:11:36 +09:00
Noah
3498a52e18 Merge pull request #1808 from youknowone/str-splitlines
Fix str.splitlines() for \r
2020-03-12 17:44:05 -05:00
Noah
3d07a73346 Fix clippy failure on Rust 1.42.0 2020-03-12 17:42:37 -05:00
Noah
2e06e167d6 Merge pull request #1807 from youknowone/str-expandtabs
Fix str.expandtab() for newlines
2020-03-12 17:02:31 -05:00
Noah
8ae6e55c86 Merge pull request #1806 from youknowone/str-zfill
Fix str.zfill
2020-03-12 17:01:33 -05:00
Noah
159d4e28c7 Move the mt19937 algorithm into its own crate 2020-03-12 07:31:46 -05:00
Jeong YunWon
967952dd40 Fix str.splitlines() for \r 2020-03-11 05:47:41 +09:00
Jeong YunWon
6cb8b665a2 Fix str.expandtab() for newlines 2020-03-11 05:11:25 +09:00
Jeong YunWon
e66e9b1121 Use binding for str.zfill sign matching
Co-Authored-By: Noah <33094578+coolreader18@users.noreply.github.com>
2020-03-09 13:43:28 +09:00
Noah
2fb1e85afd Add the msvcrt stdlib module 2020-03-08 22:47:54 -05:00
Jeong YunWon
dd8bef4334 Fix str.zfill 2020-03-09 03:22:43 +09:00
Jeong YunWon
05b5fa74c9 Add memoryview.__len__ 2020-03-08 12:59:23 +09:00
Jeong YunWon
3c96442068 Fix array insert, Add array setitem 2020-03-08 12:59:23 +09:00
Jeong YunWon
a08b4568e2 Merge pull request #1783 from youknowone/int-bytes
bytearray/memoryview/array support for int()
2020-03-08 12:27:18 +09:00
Noah
030ddb9eb3 Merge pull request #1802 from youknowone/str-test
Fix str.{capitalize,split,rsplit} + test_unicode.py from CPython 3.8.2
2020-03-07 16:46:32 -06:00
Jeong YunWon
6bfd349ef6 char_indices() -> chars()
Co-Authored-By: Noah <33094578+coolreader18@users.noreply.github.com>
2020-03-08 06:42:53 +09:00
Jeong YunWon
6ca457932b Fix str.{capitalize,split,rsplit} and optional args 2020-03-08 06:33:13 +09:00
Noah
99718df1f3 Merge pull request #1798 from doyshinda/feature/float_format_code_e
Implement format code `e` & `E` for floats and ints
2020-03-07 15:07:38 -06:00
Jeong YunWon
aa1d20c388 positional only parameter support 2020-03-08 00:13:13 +09:00
Aviv Palivoda
0c00afb6f5 Merge pull request #1786 from palaviv/more-tests
Add more CPython tests
2020-03-07 10:04:37 +02:00
Abe
4c72a3c853 Implement format code e & E for floats and ints 2020-03-06 18:12:48 -07:00
Aviv Palivoda
8e986e6783 Remove uneeded running changes 2020-03-06 22:08:35 +02:00
Aviv Palivoda
8bde882a39 Merge pull request #1784 from palaviv/freeze
Add frozen executable example
2020-03-06 22:02:08 +02:00
Noah
9802324c2a Merge pull request #1795 from RustPython/coolreader18/android-socket-libc-constants
Use libc for android socket constants
2020-03-06 07:47:52 -06:00
Aviv Palivoda
77b83ea4f8 Separate coro exception stack 2020-03-06 12:04:40 +02:00
Aviv Palivoda
83386fda25 Set errno on os.listdir 2020-03-06 10:46:29 +02:00
Noah
dffdef4c85 Merge pull request #1792 from youknowone/struct
Fix struct module and add test from unittest
2020-03-05 23:17:56 -06:00