Commit Graph

9092 Commits

Author SHA1 Message Date
Padraic Fanning
77fd1237b2 Add uuencoding/decoding code to binascii.rs
The code is based on the PyPy implementation. It may not work properly.
2021-09-14 23:59:58 +09:00
Jeong YunWon
c4949f99cc Merge pull request #3055 from DimitrisJim/fix_duplicate_entry
Remove duplicate entry for warnoptions.
2021-09-14 23:39:29 +09:00
jfh
8d45654595 Remove duplicate entry for warnoptions. 2021-09-14 15:40:13 +03:00
Jeong YunWon
a006aade5d Merge pull request #3047 from Codemonk-adi/main
Implemented sqrt for cmath
2021-09-14 06:16:24 +09:00
Jim Fasarakis-Hilliard
aae20e3210 Merge pull request #3051 from DimitrisJim/sig_for_bltins
Try to generate a text signature template for both methods and functions
2021-09-13 22:59:26 +03:00
jfh
632f73b79a Allow sqrt to run some tests. 2021-09-14 04:40:54 +09:00
Aaditya
4cc160eafe Update vm/src/stdlib/cmath.rs
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
2021-09-14 04:40:54 +09:00
Aaditya
75a9413e22 Implemented sqrt for cmath 2021-09-14 04:40:47 +09:00
jfh
c063fc3d64 Try and generate a text signature template for both methods and functions. 2021-09-13 22:10:02 +03:00
Jeong YunWon
5033540c92 Merge pull request #3049 from youknowone/no-ssl
remove '--features=ssl' from debugger config
2021-09-14 02:09:51 +09:00
Jeong YunWon
fd41cf914f remove '--features=ssl' from debugger config 2021-09-14 01:26:35 +09:00
Jeong YunWon
a3bee931e7 revert git-add from precommit 2021-09-14 01:24:52 +09:00
Jim Fasarakis-Hilliard
5720d41107 Merge pull request #3044 from RustPython/redox-times
Redox does not have libc::times or libc::nice
2021-09-12 22:36:45 +03:00
Noa
01f5020f6a Redox does not have libc::times or libc::nice 2021-09-12 12:47:45 -05:00
Myunghoon Park
8c91269977 add precommit which runs fmt 2021-09-12 17:45:59 +09:00
Jeong YunWon
e0f3f1983c Merge pull request #3041 from RustPython/upd-rustyline
Update rustyline to 9.0
2021-09-12 17:40:31 +09:00
Jeong YunWon
0a690634c2 Merge pull request #3040 from DimitrisJim/refactor_optionals
Clean up more instances of matching on Optional.
2021-09-12 06:23:04 +09:00
Noa
61749bf4cf Remove unnecessary redox patches 2021-09-11 15:48:22 -05:00
jfh
f1be6d5427 Clean up more instances of matching on Optional. 2021-09-11 23:41:14 +03:00
Jeong YunWon
dcc8043edd Merge pull request #3037 from owljoa/fix-math-remainder-test
Fix failed test remainder in test_math
2021-09-12 00:12:12 +09:00
Jeong YunWon
478dce52b0 Merge pull request #3038 from DimitrisJim/use_associated_consts
Use associated constants instead of module constants.
2021-09-12 00:09:44 +09:00
Dongin Kim
516df295d5 Reduce duplicated conditions
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
2021-09-11 22:54:16 +09:00
jfh
166e69e731 Use associated constants instead of module constants. 2021-09-11 16:29:06 +03:00
Jeong YunWon
e8736b6135 Merge pull request #3031 from DimitrisJim/cmath_impl
Add cmath module.
2021-09-11 21:36:00 +09:00
Dongin Kim
7055a1cb34 apply cargo fmt 2021-09-11 21:18:38 +09:00
jfh
41f628a32a Skip failing tests. 2021-09-11 14:22:59 +03:00
Dongin Kim
1406f80c3c fix failed test remainder in test_math
add conditions for below rules

1. remainder(x, inf) is x, for non-NaN non-infinite x
2. According to IEEE 754-2008 7.2(f)
 2-1. remainder(x, 0) for non-NaN x is invalid operation
 2-2. remainder(infinity, x) for non-NaN x is invalid operation
2021-09-11 20:00:29 +09:00
Jeong YunWon
47056f5ee7 Merge pull request #3036 from youknowone/os-comment
implementation comments for os utility
2021-09-11 17:41:12 +09:00
Jeong YunWon
2b15bf1844 implementation comments for os utility 2021-09-11 13:53:10 +09:00
Jeong YunWon
f6db9188a3 Merge pull request #3032 from fanninpm/fix-codecs-cp-utf8
Fix comparison in codecs.rs that always failed
2021-09-11 13:36:21 +09:00
Jeong YunWon
0a0ad74699 Merge pull request #3035 from fanninpm/binascii-error-incomplete
Add binascii.Error and binascii.Incomplete
2021-09-11 13:08:57 +09:00
Padraic Fanning
8cab41f2a7 Unmark passing tests in test_base64 2021-09-10 19:00:27 -04:00
Padraic Fanning
a92d3e9281 Skip panicking test in test_base64 2021-09-10 18:58:58 -04:00
Padraic Fanning
165ea9415f Unmark passing test(s) in test_binascii 2021-09-10 18:58:00 -04:00
Padraic Fanning
ef3d3a7298 Add binascii.Error and binascii.Incomplete 2021-09-10 18:49:18 -04:00
Padraic Fanning
d04b52d43e Fix comparison in codecs.rs that always failed 2021-09-10 17:11:02 -04:00
Jeong YunWon
e3fe1148ec Merge pull request #3027 from deantvv/scandir-args-support
os: scandir add argument support
2021-09-11 05:36:54 +09:00
jfh
ec7386e1ff Add test_cmath from CPython 3.8. 2021-09-10 22:49:19 +03:00
jfh
e56ca82f72 Add scaffold for cmath module. 2021-09-10 22:48:28 +03:00
Dean Li
8539a38cb2 os: scandir add argument support
Add support for class that can to cast to a buffer like object
ex. `bytearray` and `memoryview`
2021-09-11 00:19:45 +08:00
Lee Dogeon
0d2a4264b3 Correct object.__repr__ 2021-09-11 00:38:34 +09:00
Noa
34b91e7cad Update rustyline to 9.0 2021-09-10 10:28:23 -05:00
Jeong YunWon
2e685b858a Fix clippy warning 2021-09-10 00:42:33 +09:00
Jim Fasarakis-Hilliard
df9f283698 Merge pull request #3025 from youknowone/zeroed
replace a few zeroed to MaybeUninit
2021-09-09 15:56:01 +03:00
Jim Fasarakis-Hilliard
195b596f78 Merge pull request #3026 from theduke/patch-2
Examples Wording Issue - relative <=> relevant
2021-09-09 15:17:13 +03:00
Christoph Herzog
bca704ed99 Examples Wording Issue - relative <=> relevant
Just a simple drive-by fix for the wording in the freeze example
2021-09-09 13:53:46 +02:00
Jeong YunWon
f6d4393887 replace a few zeroed to MaybeUninit 2021-09-09 20:49:45 +09:00
Lee Dogeon
63b1696458 Derive name from tp_name 2021-09-09 00:07:36 +09:00
ChJR
14405b7225 Add os.fchdir builtin function 2021-09-08 00:51:56 +09:00
Jeong YunWon
81327561c8 Merge pull request #3021 from Snowapril/add-missing-tests
Add several missing tests from cpython 3.8
2021-09-07 00:52:30 +09:00