Commit Graph

7723 Commits

Author SHA1 Message Date
Kangzhi Shi
eaf4bad2d1 fix array with float 2020-10-27 19:18:18 +02:00
Noah
3c9ad2378b Merge pull request #2297 from RustPython/coolreader18/rework-pystruct
Update pystruct + array
2020-10-26 23:48:35 -05:00
Mireille Raad
264f49b3b1 give up on adding good javascript support, clean up UI instead 2020-10-27 00:47:06 -04:00
Rodrigo Oliveira
00920babba Add socket sendfile function 2020-10-26 14:55:22 -03:00
Noah
0aa177de1d Merge pull request #2307 from ChJR/feature/format_float
Fix default format(float) result when the number is too big
2020-10-26 12:19:06 -05:00
Noah
026f396e98 Use std::os::raw::c_* instead of libc::c_* for wasm compat 2020-10-26 12:14:00 -05:00
Noah
59169aa2ce Use a static type for struct.error 2020-10-26 12:13:52 -05:00
Noah
0f84bd4070 Update pystruct + array 2020-10-26 12:13:24 -05:00
Noah
25a388cb70 Merge pull request #2309 from RustPython/coolreader18/math-fixes
Implement nextafter in Rust
2020-10-26 12:01:51 -05:00
Noah
9a068a2fc1 Merge pull request #2304 from awoimbee/socket/resolve-right-ip-family
socket: resolve addresses according to socket family (ipv4/6)
2020-10-26 12:01:03 -05:00
coolreader18
4e05d7d3e6 Suppress clippy 2020-10-26 10:06:38 -05:00
ChJR
3838610e55 Fix fmt check 2020-10-26 23:58:51 +09:00
ChJR
edc4de20e4 Remove not matched comments 2020-10-26 23:48:28 +09:00
Noah
b1144b773d Merge branch 'master' into socket/resolve-right-ip-family 2020-10-26 08:56:21 -05:00
Arthur Woimbée
b74a057ec9 socket/get_addr: remove IpAddrFmt 2020-10-26 11:26:44 +01:00
Jeong YunWon
cfb25a5a6e Merge pull request #2301 from RustPython/coolreader18/rework-staticcell
Make StaticCell less complex to use
2020-10-26 14:04:27 +09:00
Noah
72f8f20ab2 Move timing_safe_cmp to rustpython-common 2020-10-25 15:28:36 -05:00
Noah
e772b42f36 Fix a few math tests and implement nextafter in rust 2020-10-25 13:43:33 -05:00
Noah
116308f372 Merge pull request #2305 from ChJR/master
Update random.py with CPython 3.7 version.
2020-10-25 13:31:04 -05:00
Noah
5762dc2b8f Merge pull request #2308 from ChJR/feature/whats_left_stat
Update stat.py with CPython 3.8 version
2020-10-25 13:29:56 -05:00
Noah
80775b7555 Merge pull request #2306 from ChJR/feature/format_exponent
Add format %e option of floating point numbers.
2020-10-25 11:51:38 -05:00
ChJR
b9a0f3b21d Update stat.py with CPython 3.8 version
stat.py of CPython 3.8 is same with the latest.
stat.py of CPython 3.7 slightly differ with CPython 3.8.
2020-10-26 01:43:00 +09:00
ChJR
2219382928 Add tests for default format(float) working 2020-10-26 01:01:50 +09:00
ChJR
729aeff795 Move tests to extra_tests. 2020-10-26 00:45:30 +09:00
ChJR
057d7454dc Revert "Add test for formatting %e option of floating point numbers."
This reverts commit 42fc2b2625.
2020-10-26 00:34:57 +09:00
ChJR
3344ae17cf Fix default format(float) result when the number is too big
Before this change, format(1e16) returns '10000000000000000.0' in RustPython while CPython 3.7 returns '1e+16'.
After this change, format(1e16) returns '1e+16' in RustPython too.
2020-10-26 00:27:14 +09:00
ChJR
42fc2b2625 Add test for formatting %e option of floating point numbers. 2020-10-25 17:01:14 +09:00
ChJR
248a5b64bb Fix format to recommended by clippy 2020-10-25 16:02:23 +09:00
ChJR
215190e18b Fix ImportError on wasm. 2020-10-25 15:44:59 +09:00
Jeong YunWon
c8c1381b96 Merge pull request #2303 from qingshi163/master
Impl readinto for BufferedReader
2020-10-25 13:57:01 +09:00
Jeong YunWon
b230045677 Merge pull request #2299 from qingshi163/memoryview_hash
Implement memoryview hash
2020-10-25 13:51:09 +09:00
ChJR
7ba95567a2 Add format %e option of floating point numbers. 2020-10-25 05:05:25 +09:00
ChJR
88c1b86ad1 Update random.py with CPython 3.7 version. 2020-10-25 01:48:31 +09:00
Arthur Woimbée
9504bc469f socket: resolve addresses according to socket family (ipv4/6) 2020-10-24 17:52:02 +02:00
Kangzhi Shi
287e16351c Impl readinto for BufferedReader 2020-10-24 16:26:18 +02:00
Noah
a8285f4bc6 Merge pull request #2302 from qingshi163/bytes_pickle
Fix bytes pickle with subclass
2020-10-23 12:58:25 -05:00
Kangzhi Shi
1d4cfa4381 bytes pickle with subclass 2020-10-23 14:42:13 +02:00
Noah
dbed94fe87 socket.{gaierror,timeout} as static types(?) 2020-10-22 14:41:23 -05:00
Noah
2d8534cb7b Misc changes for socket 2020-10-22 14:40:31 -05:00
Noah
275919694d Make StaticCell less complex to use 2020-10-22 14:06:05 -05:00
Noah
7eb9335d19 Merge pull request #2298 from ArniDagur/ulp
Implement math.ulp
2020-10-22 14:04:58 -05:00
Árni Dagur
ab444d0a3e Correct value of sys.float_info.min 2020-10-22 18:30:51 +00:00
Noah
09b7f4d9a3 Merge pull request #2300 from qingshi163/memoryview
Reimpl memoryview constructor args
2020-10-22 12:13:00 -05:00
Kangzhi Shi
b38d278f91 memoryview constructor args 2020-10-22 16:45:30 +02:00
Kangzhi Shi
101d8c8dc1 memoryview hash 2020-10-22 13:17:54 +02:00
Árni Dagur
da2bd5ea86 Implement math.ulp 2020-10-21 23:41:47 +00:00
Jeong YunWon
c319b16b62 Merge pull request #2284 from qingshi163/dev4
generic and efficiency way to consume iterable object
2020-10-21 14:11:10 +09:00
Mireille Raad
e8ffd4ea92 rewire code to run with the new code editors, update user interface 2020-10-21 00:44:16 -04:00
Jeong YunWon
52940441e3 Fix comment to refer specific version rather than master 2020-10-20 06:55:35 +00:00
Kangzhi Shi
f348c56eea Refactor ByteInnerNewOptions 2020-10-20 06:53:32 +00:00