Commit Graph

9022 Commits

Author SHA1 Message Date
Connor Troy
21aa376b2d Remove imul deque drop 2021-09-06 03:17:16 -06:00
Connor Troy
d2e4242fdc Use borrowed SimpleSeqDeque 2021-09-06 03:09:03 -06:00
Connor Troy
99908e6d3e Add deque imul method 2021-09-06 00:14:26 -06:00
Jeong YunWon
64f7599de7 Merge pull request #2980 from HyeockJinKim/debug_value
Raise syntax error when saving a value to __debug__.
2021-09-06 01:58:36 +09:00
Jeong YunWon
01c59637a0 Merge pull request #3012 from Regexp96/regexp96/add_time_test
Add time test file
2021-09-06 01:57:20 +09:00
Jeong YunWon
cd49031793 Merge pull request #3015 from leesungbin/line_break
Remove unnecessary linebreak
2021-09-06 01:23:36 +09:00
Gyuseok Jung
de22c1dba2 add unittest.skip to pass test 2021-09-05 22:18:55 +09:00
Jim Fasarakis-Hilliard
23cd859122 Merge pull request #3009 from youknowone/time-module
Use pymodule for time module.
2021-09-05 16:13:51 +03:00
이성빈
d87d8a11ad remove unnecessary linebreak 2021-09-05 21:18:05 +09:00
Gyuseok Jung
bf02c62f48 change to not create rust error 2021-09-05 20:49:42 +09:00
Gyuseok Jung
53560f03cf change some method to pass test 2021-09-05 20:31:53 +09:00
Gyuseok Jung
90cd579c43 add time test by CPython 3.8.11 2021-09-05 20:30:51 +09:00
Jim Fasarakis-Hilliard
56f1b0b745 Merge pull request #3013 from HyeockJinKim/unnecessary_mut
Remove unnecessary mut in compiler.rs
2021-09-05 13:22:14 +03:00
HyeockJinKim
85ec817b73 remove unnecessary mut in compiler.rs 2021-09-05 17:50:08 +09:00
Jeong YunWon
9db7544084 Merge pull request #3002 from fanninpm/fix-codecs
Update codecs.py to CPython 3.8
2021-09-05 15:06:29 +09:00
Jeong YunWon
0416e4b03e enable macos thread/process time 2021-09-05 14:38:26 +09:00
Jeong Yunwon
f056146b23 MaybeUninit for time module 2021-09-05 14:38:26 +09:00
Jeong YunWon
e6495b6fbc clean up time module default values 2021-09-05 14:38:26 +09:00
Jeong YunWon
1a38877a05 Fix get_time to raise time error 2021-09-05 14:38:26 +09:00
Jeong YunWon
0831975de5 pymodule for time.rs 2021-09-05 14:38:26 +09:00
Padraic Fanning
85ad38514b Make code more idiomatic 2021-09-04 18:24:32 -04:00
Padraic Fanning
71850a992d Fix erroring tests on Windows 2021-09-04 18:24:32 -04:00
Padraic Fanning
5111c0022a Mark erroring/failing tests 2021-09-04 18:24:31 -04:00
Padraic Fanning
f0b541b507 Add uuencoding functions to binascii rust module
Currently, they don't work as advertised.
2021-09-04 18:24:31 -04:00
Padraic Fanning
d50ff55822 Update encodings module to CPython 3.8 2021-09-04 18:24:31 -04:00
Padraic Fanning
704c2d1240 Add surrogateescape_errors to codecs module
Inelegant translation of the CPython original, with PyPy as a reference.
2021-09-04 18:24:30 -04:00
Padraic Fanning
a201ee1fd5 Add surrogatepass_errors to codecs module
Inelegant translation of the CPython original, with PyPy as a reference.
2021-09-04 18:24:30 -04:00
Padraic Fanning
c93608f906 Add namereplace_errors to codecs module 2021-09-04 18:24:29 -04:00
Padraic Fanning
67f3d40717 Add test_codecs from CPython 3.8 2021-09-04 18:24:29 -04:00
Padraic Fanning
1613733668 Update codecs.py to CPython 3.8 2021-09-04 18:24:25 -04:00
Jeong YunWon
114ee5a935 grouping cfg modules of time module 2021-09-05 06:07:15 +09:00
Jeong YunWon
8bc9b7630a Merge pull request #3007 from DimitrisJim/length_hint_during_extract
Call `__length_hint__` before extracting elements
2021-09-05 04:25:09 +09:00
Jeong YunWon
ba15a23fed Merge pull request #3003 from Snowapril/time-module
Add thread_time, process_time in `time` module
2021-09-05 02:04:13 +09:00
Jeong YunWon
70e7fb3d84 Merge pull request #3006 from tony-jinwoo-ahn/utf
Fix range of "invalid start byte" for UTF-8
2021-09-05 01:35:05 +09:00
snowapril
639ec966c1 time: add thread_time, process_time
This commits add four methods, thread_time, thread_time_ns,
process_time and process_time_ns.

With use of libc crate, we can get thread_time and process_time from the
cpu.

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-05 01:02:08 +09:00
Tony Jinwoo Ahn
6e1c9c68b6 Fix range of "invalid start byte" for UTF-8
Signed-off-by: Tony Jinwoo Ahn <tony.jinwoo.ahn@gmail.com>
2021-09-04 21:09:52 +09:00
jfh
cf67393ee7 Replace occurences of get_iter, get_all with extract_elements. 2021-09-04 15:04:44 +03:00
jfh
022eb28c09 Call __length_hint__ on object to be extracted. 2021-09-04 15:04:32 +03:00
Jeong YunWon
54e8c71c3e Merge pull request #3001 from eldpswp99/slot-constructor
SlotConstructor and uniform tp_new signature
2021-09-04 20:21:05 +09:00
eldpswp99
55709b71b6 implement SlotConstructor for every class 2021-09-04 20:18:13 +09:00
Jeong YunWon
407cc7aae2 trait SlotConstructor for tp_new blueprint 2021-09-04 20:15:49 +09:00
Jeong YunWon
7dc55d5663 Merge pull request #3005 from fanninpm/fix-nightly-compilation
Update num_bigint to 0.4.2
2021-09-04 13:59:51 +09:00
Padraic Fanning
8083eed146 Skip panicking test 2021-09-03 20:25:06 -04:00
Padraic Fanning
f833ba6ed3 Update num_bigint to 0.4.2
Fixes a compilation error with the latest nightlies.
2021-09-03 18:53:23 -04:00
Jeong YunWon
61e79ff064 Merge pull request #2997 from zetwhite/os_sched
os : implement os.sched_yield, os.sched_get_priority_min, os.sched_get_priority_max
2021-09-02 22:21:07 +09:00
Jeong YunWon
818688daab Merge pull request #2992 from moreal/bugfix/correct-object-repr
Correct `object.__repr__` format
2021-09-02 22:20:42 +09:00
Jeong YunWon
7359f9dda0 skip test_sched_priority for now 2021-09-02 20:20:11 +09:00
Moreal
cda1924cf8 Unmark fixed tests 2021-09-02 19:55:01 +09:00
zetwhite
d8bbb424ab Add os.sched_yield, os.sched_get_priority_min, os.sched_get_priority_max 2021-09-02 18:14:56 +09:00
Moreal
894fa5b0e9 Correct object.__repr__ format 2021-09-02 07:49:20 +09:00