Commit Graph

5235 Commits

Author SHA1 Message Date
sobolevn
e5e20a53b2 Makes type.__prepare__ a classmethod, also first arg is any (not str), refs #2762 2021-08-08 12:49:41 +03:00
sobolevn
af63e83e13 Makes args of type.__prepare__ optional, refs #2762 2021-08-08 12:05:31 +03:00
Jeong YunWon
43a43f76f2 Merge pull request #2803 from moreal/bugfix/rethrow-error-in-build-map
Fix incorrect unwrapping
2021-08-07 23:47:06 +09:00
Jim Fasarakis-Hilliard
bf59103d19 Merge pull request #2802 from eldpswp99/iskeyword-none-check
add iskeyword None check
2021-08-07 15:43:02 +03:00
Lee Dogeon
653858e152 Fix unhashable type error message (#2801)
* Fix unhashable type error message
2021-08-07 14:37:01 +03:00
eldpswp99
1c0bd83809 iskeyword: add None check
there was one todo in test_keyword.py

before: s was PyStrRef, it failed to handle None
after: convert s to PyObjectRef and add None check
2021-08-07 20:24:41 +09:00
moreal
cc7269c68d Fix incorrect unwrapping
See https://github.com/RustPython/RustPython/issues/2799
2021-08-07 19:24:25 +09:00
Dean Li
06b40b3602 socket: impl herror
There is one todo that is waiting for hstrerror to land in libc crate.
For now it shows the same error as cpython when hstrerror is not
available.
2021-08-07 15:26:09 +08:00
Jeong YunWon
7fc8ddb130 Merge pull request #2795 from DimitrisJim/rangeiter_reduce
Adds reduce, length_hint and set_state to range iterators.
2021-08-06 06:44:32 +09:00
jfh
f3a074ba90 Adds reduce, length_hint and set_state to range iterators. 2021-08-05 23:56:01 +03:00
Jeong YunWon
412fffbc5d Merge pull request #2792 from DimitrisJim/init_bltins
Initialize with init for mutable builtins.
2021-08-05 03:59:19 +09:00
jfh
6950ad6ee4 Initialize with init for mutable builtins. 2021-08-04 20:57:47 +03:00
Nikita Sobolev
8f2679a97a Adds __qualname__ to PyBuiltinFunction 2021-08-04 13:59:40 +09:00
Nikita Sobolev
8009697498 Adds correct __repr__ to PyBuiltinMethod 2021-08-02 19:07:16 +09:00
Jeong YunWon
dca79874dd Merge pull request #2772 from RustPython/redox-fixes
Fix redox and other stuff
2021-08-02 04:05:14 +09:00
Noah
8f2b9f3195 Fix socket2::Socket niche optimization breaking stuff 2021-08-01 10:53:08 -05:00
sobolevn
9c6dbf2c23 Fixes clippy on macos 2021-08-01 12:08:14 +03:00
Jeong YunWon
7ab81569ea Merge pull request #2708 from DimitrisJim/operator_rs
Add operator.rs
2021-08-01 09:24:41 +09:00
Nikita Sobolev
73ae7a6116 Adds __qualname__ to PyBuiltinMethod 2021-08-01 09:16:27 +09:00
Jeong YunWon
b57c36ef64 Merge pull request #2769 from DimitrisJim/fast_range_iter
Fast range iterator
2021-08-01 02:51:47 +09:00
Noah
4de16f6955 Remove derive_more dep 2021-07-31 10:49:39 -05:00
Noah
1ed3277a39 Fix building with openssl 1.1.0 2021-07-31 10:18:56 -05:00
Noah
e9d1608f4d Fix no fstatat/times on redox 2021-07-31 10:18:06 -05:00
Noah
b05c0e27f6 Upgrade dependencies for redox 2021-07-31 10:18:00 -05:00
jfh
eda5a71526 Add operator.rs. 2021-07-30 22:11:27 +03:00
jfh
1115511e3d Add fast range iterator. 2021-07-30 19:19:30 +03:00
Nikita Sobolev
4890f09c57 Fixes type.__module__ issue, refs #2310 (#2763)
* Fixes `type.__module__` issue, refs #2310
2021-07-30 19:09:48 +03:00
jfh
42c1084890 Use BigInts instead of keeping a range object to iterate. Equivalent to CPythons longrange_iterator. 2021-07-30 16:46:44 +03:00
jfh
78ffb77dd4 Fix additional needless borrows. 2021-07-30 00:55:04 +03:00
Jeong YunWon
3bc233a625 Fix csv QuoteStyle 2021-07-30 02:32:16 +09:00
Jeong YunWon
ff4efd0f60 Fix unnessessary borrow 2021-07-30 02:32:16 +09:00
fermian
f09f158baf Fix sliceable error messages to show its type names 2021-07-29 22:54:51 +09:00
Peter Ye
8bfff805a9 Fix builtins.__name__ 2021-07-28 13:20:32 +09:00
Jim Fasarakis-Hilliard
8a967e84c6 Fix arguments for islice. 3 args are allowed. 2021-07-28 11:35:43 +09:00
Jeong YunWon
cb3d58ccce Merge pull request #2749 from deantvv/os-fdopen-invalid
os: fix fdopen invalid file descriptor
2021-07-27 01:03:49 +09:00
Jeong YunWon
4988d1398a Merge pull request #2754 from DimitrisJim/repeat_fixes
Add fixes for itertools.repeat
2021-07-27 01:02:23 +09:00
Jeong YunWon
bf4863ad42 Merge pull request #2753 from DimitrisJim/set_iter
Make set iteration linear
2021-07-27 00:06:45 +09:00
Dean Li
e1ce1e7ac4 os: fix fdopen invalid file descriptor 2021-07-26 23:00:29 +08:00
jfh
ab382dbc84 Add fixes for itertools.repeat. 2021-07-25 22:13:27 +03:00
jfh
15ab1a6be0 Improve set iteration speed. 2021-07-25 20:10:54 +03:00
Jeong YunWon
24800cbfcf Merge pull request #2742 from DimitrisJim/tuple_iter
Add __length_hint__, __setstate__, __reduce__ for tuple iterator.
2021-07-23 19:11:38 +09:00
jfh
0c764291fd Add __length_hint__, __setstate__, __reduce__ for tuple iterator. 2021-07-21 22:55:54 +03:00
Yossi Konstantinovsky
e1d8d47c7d pyexpat: add missing property to make tests run 2021-07-20 14:36:05 +03:00
Yossi Konstantinovsky
e61a583223 pyexpat: refactor getters and setters for handlers 2021-07-20 14:36:05 +03:00
Yossi Konstantinovsky
d382009a5f add initial pyexpat implementation 2021-07-20 14:36:02 +03:00
jfh
6cd8644de8 Use PyStrRef to extract String. 2021-07-15 16:08:55 +03:00
Noah
c14e7b074d Merge pull request #2699 from RustPython/coolreader18/if-socket-funcs
Add test_socket
2021-07-14 11:51:44 -05:00
Jeong YunWon
6a94c90e86 Merge pull request #2733 from yossi-k/math-overflow-like-cpython
math: raise OverflowError when result is infinite
2021-07-12 18:12:12 +09:00
Yossi Konstantinovsky
e909f48f7e math: fix ldexp 2021-07-12 10:39:43 +03:00
Yossi Konstantinovsky
963e6e3df6 math: raise OverflowError when result is infinite
Matches CPython behavior.
2021-07-12 10:35:31 +03:00