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
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
Jeong YunWon
b556b42398
Merge pull request #2709 from DimitrisJim/iter_exhaustion
...
Fix iteration issues, pickling by marking iterators as exhausted.
2021-07-12 16:08:55 +09:00
Jeong YunWon
e5678daaa3
Merge pull request #2715 from DimitrisJim/frozenset_singleton
...
Make `frozenset(empty_iterable)` return a singleton.
2021-07-12 16:07:26 +09:00
jfh
712f95036d
Remove allow_dead_code as it is unecessary now.
2021-07-12 00:25:34 +03:00
jfh
86cef6738d
Address review comments.
2021-07-12 00:22:03 +03:00
sisungo
c13806d384
Change os.rs to build on musl libc
2021-07-09 20:14:29 +08:00
Jeong YunWon
95d2f68cbf
Merge pull request #2705 from deantvv/os-getgroups
...
os: Implement getgroups
2021-07-08 00:21:27 +09:00
Jeong YunWon
0aa05f071a
Merge pull request #2707 from deantvv/os-pathconf
...
os: Implement (f)pathconf
2021-07-07 23:40:09 +09:00
Jeong YunWon
fff68dca53
Merge pull request #2711 from DimitrisJim/range-fixes
...
Fix a number of range issues.
2021-07-07 23:21:18 +09:00
Jeong YunWon
2e6fea023a
Merge pull request #2713 from DimitrisJim/vars_error
...
Fix test_vars in test_builtins.
2021-07-07 23:14:57 +09:00
Jeong YunWon
96eef21ec0
Merge pull request #2714 from DimitrisJim/tuple_singleton
...
Make tuple(empty_iterable) return empty_tuple
2021-07-07 23:13:22 +09:00
jfh
8540767f58
Fix new clippy issues, Use take.
2021-06-18 21:58:27 +03:00
jfh
fdc08139a5
Make empty frozenset a singleton.
2021-06-17 17:30:51 +03:00
jfh
2e9acb3035
Make tuple() return empty_tuple
2021-06-17 12:31:24 +03:00
jfh
b6b10149b7
Fix test_vars in test_builtins.
2021-06-16 19:48:54 +03:00
jfh
63d156097c
Add new and bool for NotImplemented.
...
New simply returns the singleton. While `bool(NotImplemented)` already
returned `True`, it is added since it will need to raise a warning in
the future.
2021-06-16 12:07:48 +03:00
jfh
c1f1f1ef02
Fix a number of range issues.
2021-06-15 19:20:54 +03:00
Jeong YunWon
e0d86e8602
Merge pull request #2706 from deantvv/os-fix-test
...
Fix tests in os
2021-06-15 19:55:01 +09:00
jfh
7be043fa5a
Fix small miscalculation when reversing a range.
2021-06-14 22:31:50 +03:00
jfh
95ba82bd54
Fix iteration issues, pickling by marking iterators as exhausted.
2021-06-14 19:32:22 +03:00
Dean Li
d044d8ab61
os: Implement (f)pathconf
...
Implement pathconf and fpathconf using libc::pathconf.
os.pathconf_names is not implemented.
2021-06-13 21:43:33 +08:00
Dean Li
62f49ed4de
os: Fix error message of fspath
2021-06-13 13:48:39 +08:00
Dean Li
88a86fdd9e
os: Implement getgroups
...
`getgroups` is already implement in rust, just wrap the function
to let it be used in python.
2021-06-13 10:39:25 +08:00
coolreader18
a2fc8796e8
Fix windows tests
2021-06-11 16:15:33 -05:00
Noah
e63d2741c3
Merge pull request #2698 from RustPython/coolreader18/textio-ergonomics
...
Use a Utf8size struct to represent the {bytes,chars} pairs in textio
2021-06-11 13:30:34 -05:00
Noah
fb5ba51a1e
Handle linux abstract namespaces correctly
2021-06-10 20:54:49 -05:00
Noah
c7f6838638
Add if_nameindex, if_nametoindex, if_indextoname, getservbyport + fix some other stuff
2021-06-10 20:54:48 -05:00
Noah
68922a91a4
Overhaul CString handling
2021-06-10 20:53:27 -05:00