Commit Graph

3491 Commits

Author SHA1 Message Date
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
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
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
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
Jeong YunWon
c150a43441 Merge pull request #1778 from youknowone/int-indexable-base
non-int indexable base for int()
2020-03-05 01:25:03 +09:00
Jeong YunWon
1c6808748e Fix struct pack and unpack 2020-03-04 11:42:17 +09:00
coolreader18
791050bb95 Use libc for android socket constants 2020-03-03 15:13:21 -06:00
Noah
eec333399f Add more winreg constants 2020-03-03 11:32:00 -06:00
Noah
2f617feb10 Convert registry values to Python values 2020-03-03 11:22:58 -06:00
Jeong YunWon
197ef9cdec Fix struct.calcsize to take bytes argument 2020-03-03 19:00:56 +09:00
Noah
65ed30b2ab Add winreg module 2020-03-02 10:54:35 -06:00
Noah
7f7cad3998 Merge pull request #1790 from RustPython/coolreader18/pydoc
Add pydoc stdlib module
2020-03-02 07:16:27 -06:00
Noah
3206591645 Merge pull request #1791 from RustPython/coolreader18/coro-dedup
Deduplicate coroutine/generator code
2020-03-02 07:10:13 -06:00
coolreader18
43713c41e4 Add gi_ and cr_ attributes to generators and coroutines 2020-03-01 23:11:28 -06:00
coolreader18
48de33cbbd Move generator functionality to objcoroinner 2020-03-01 23:11:28 -06:00
coolreader18
c8b7d9d67d Allow 'ref' in match_class macro 2020-03-01 23:09:28 -06:00
Noah
428cd6aaf7 Add frame.{f_back,f_lineno} 2020-03-01 15:55:28 -06:00
Noah
c703bb72d0 Correct module.__dir__ 2020-03-01 14:57:10 -06:00
Noah
1459ed6ae9 Correct comment 2020-03-01 14:41:51 -06:00
Noah
300ac9cb42 Add sys.hash_info 2020-03-01 14:34:49 -06:00
Noah
1941c8932f Add IOError alias 2020-02-29 19:35:16 -06:00
Noah
6e776da75d Implement builtin_input 2020-02-29 12:02:36 -06:00
Noah
d3343b6de4 Add vm.new_runtime_error 2020-02-29 12:02:36 -06:00
Noah
645314b215 Move readline.rs into the vm crate 2020-02-29 12:02:36 -06:00
Noah
6b580c5921 Get regrtests working on Windows 2020-02-29 10:34:12 -06:00
Noah
db65c8d512 create_stdio in vm initialization 2020-02-29 10:34:12 -06:00
Noah
a70294de3b Map 0,1,2 to io::{stdin,stdout,stderr}'s Windows handle 2020-02-29 10:33:21 -06:00
Idan Dor
6ea5d58f24 Fix previous merge of objtype.rs.
Moved the tests to their more correct place of `tests/snippets/class.py`.
2020-02-29 16:34:14 +02:00
Idan Dor
23e0467876 Merge remote-tracking branch 'remotes/upstream/master' into feature/mro_resolution
# Conflicts:
#	vm/src/obj/objsuper.rs
#	vm/src/obj/objtype.rs
2020-02-29 13:17:33 +02:00
Aviv Palivoda
e07ca66db4 Merge pull request #1772 from palaviv/set-fixes
Set fixes
2020-02-29 12:53:16 +02:00
Aviv Palivoda
582932c8a8 Add freeze example 2020-02-29 11:36:27 +02:00
Aviv Palivoda
69ba6cf887 Rename hash_iter_no_order to hash_iter_unordered 2020-02-29 09:40:16 +02:00
Noah
7be93a96da Merge pull request #1766 from RustPython/coolreader18/stdlib-typing
Add the typing standard library module, rework tp_new
2020-02-28 22:50:07 -06:00