Commit Graph

1696 Commits

Author SHA1 Message Date
Noah
fd3fcc2449 Add iter(callable, sentinel) 2020-04-08 10:10:56 -05:00
Noah
f5de59a4bd Merge pull request #1834 from RustPython/coolreader18/jsontests
Add json output for CPython tests
2020-04-04 11:52:04 -05:00
Noah
f33e2d3b39 Remove incognito from vm 2020-04-03 12:34:00 -05:00
Noah
be565d30ae Make incognito a CodeFlag bit 2020-04-03 12:34:00 -05:00
Noah
80f11466b3 Add "incognito" compilation 2020-04-03 12:34:00 -05:00
Noah
a104d43d7f Merge pull request #1811 from RustPython/coolreader18/typ-generic-pyobj
Make PyObject.typ a Rc<PyObject<PyClass>>
2020-04-03 12:20:37 -05:00
Noah
7143b93203 Rename into_generic_pyobj -> into_typed_pyobj 2020-04-03 11:43:07 -05:00
Jeong YunWon
a6b23129ea Merge pull request #1816 from RustPython/coolreader18/posonly-error
Error on positional-only parameters passed as keywords
2020-04-03 15:23:18 +09:00
Noah
652231a683 Error on positional-only parameters passed as keywords 2020-04-03 00:24:30 -05:00
Jeong YunWon
91080470aa Merge pull request #1836 from RustPython/coolreader18/pyfunc-smallbox
Don't allocate for PyNativeFunc when it's just a fn pointer
2020-04-03 13:15:22 +09:00
Noah
dd92e90366 Add str.__format__ 2020-04-02 17:42:00 -05:00
Noah
53a6bc3f58 Add method.__func__ property 2020-04-02 17:41:52 -05:00
Noah
e2d7ab30aa Don't allocate for PyNativeFunc when it's just a fn pointer 2020-04-02 13:57:08 -05:00
Noah
bd1fdd4d90 Call __set_name__ on descriptors when initializing types 2020-04-02 12:29:20 -05:00
Noah
a901323777 Separate dict.__new__ to dict.__init__ for OrderedDict 2020-04-02 09:02:44 -05:00
Noah
6553bf72d4 Move varargs information into CodeFlags 2020-04-02 09:02:18 -05:00
Noah
c1c9631798 Merge pull request #1823 from RustPython/coolreader18/stdlib-ssl
Add the ssl stdlib module
2020-04-01 11:34:41 -05:00
Noah
bea6e54a37 Make ssl work on windows 2020-03-27 15:24:08 -05:00
Noah
289311727b impl TryFromObject for CString 2020-03-27 14:40:20 -05:00
Noah
d243b73b67 Fix int.from_bytes() with an arbitrary iterator 2020-03-27 14:40:16 -05:00
Jeong YunWon
d148bdd46c Basic bound method repr 2020-03-28 02:05:58 +09:00
Noah
78f8f14003 Apply review comments 2020-03-21 00:37:13 -05:00
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
75eabfdc2c Merge pull request #1787 from youknowone/posonly
PEP570 - positional only parameter support
2020-03-13 17:19:21 -05: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
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
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
c16a257235 Make PyObject.typ : Rc<PyObject<PyClass>> 2020-03-12 17:43:32 -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
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
Jeong YunWon
dd8bef4334 Fix str.zfill 2020-03-09 03:22:43 +09:00
Jeong YunWon
e4f80d0f17 Add memoryview.__len__ 2020-03-08 13:00:44 +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
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
Jeong YunWon
aa1d20c388 positional only parameter support 2020-03-08 00:13:13 +09:00
Aviv Palivoda
8e986e6783 Remove uneeded running changes 2020-03-06 22:08:35 +02:00
Aviv Palivoda
77b83ea4f8 Separate coro exception stack 2020-03-06 12:04:40 +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