Commit Graph

7047 Commits

Author SHA1 Message Date
carbotaniuman
da9be2f7ef Fix clippy lint and unblock a test case 2020-11-11 15:48:22 -06:00
carbotaniuman
7bfc811b71 Format 2020-11-11 14:33:38 -06:00
carbotaniuman
ace2cb8f2f Fix edge cases in mod and complex division 2020-11-11 14:33:07 -06:00
carbotaniuman
c478c64e2e Fix complex() and float() to user dunder methods
This also adds a `to_op_X` method in order to make arithmetic operations work due to the changes in `try_X`
2020-11-11 13:56:29 -06:00
carbotaniuman
9657454c3e Fix missing parameter 2020-11-11 10:04:40 -06:00
carbotaniuman
7586543343 Add ability to use __trunc__ to int() 2020-11-11 09:58:26 -06:00
Noah
f8d47c6409 Merge pull request #2324 from RustPython/coolreader18/fix-nothreading
Fix cell_lock, remove the RwLock<BufferOptions> from bytearray
2020-11-09 11:53:13 -06:00
Noah
a6805a5291 Make get_options() return &BufferOptions 2020-11-09 10:32:25 -06:00
Noah
fce6e4c418 Fix cell_lock, remove the RwLock<BufferOptions> from bytearray 2020-11-08 15:01:46 -06:00
Jeong YunWon
f390f6157c Merge pull request #2320 from RustPython/coolreader18/split-ast-parser
Split the ast from the parser, remove compiler dep on parser
2020-11-08 20:49:47 +09:00
Noah
70907babe6 Fix wasm + examples 2020-11-07 15:43:23 -06:00
Noah
4528f17210 compiler/porcelain wrapper 2020-11-07 15:43:23 -06:00
Noah
b3851c8eb8 Split the ast from the parser, remove compiler dep on parser 2020-11-07 15:43:23 -06:00
Noah
17e0e75622 Merge pull request #2323 from RustPython/coolreader18/buffer-io
Fully implement buffered IO
2020-11-07 15:23:54 -06:00
Noah
9433126a9a Skip test_io on windows 2020-11-06 18:38:22 -06:00
Noah
916bb4cf1c Fix some other tests 2020-11-06 17:37:52 -06:00
Noah
76fa447915 Only define buffered.flush for writer/random 2020-11-06 17:37:51 -06:00
Noah
60d917c5e5 Don't lock textio while calling buffer methods 2020-11-06 17:37:51 -06:00
Noah
1d6b32ca98 Fix clippy/wasm errors 2020-11-06 17:37:50 -06:00
Noah
0b9beeba6f Merge pull request #2318 from qingshi163/bytes-format
Reimpl cformat to suit for bytes
2020-11-06 15:48:37 -06:00
Noah
d2a302cb2f Skip tests in test_io 2020-11-06 15:41:55 -06:00
Noah
3f6504c3cd Add _pyio, test.test_io from CPython 3.8.3 2020-11-06 15:41:55 -06:00
Noah
402594f9f2 Update io.py to CPython 3.8.3 2020-11-06 15:41:55 -06:00
Noah
0dc81548ad Finish up buffered io 2020-11-06 15:41:52 -06:00
Noah
5ddb678acf Add memory::RcBuffer 2020-11-06 11:11:07 -06:00
Noah
374a956d03 Misc changes; exception chaining, PyBytesLike::into_buffer 2020-11-06 11:11:07 -06:00
Noah
4db7a23064 Add/rename vm.obj_len, obj_len_opt 2020-11-06 11:11:07 -06:00
Noah
3d19d977aa Expose classes as attributes 2020-11-06 11:11:07 -06:00
Noah
ff55a2ef41 WIP seek 2020-11-06 11:11:07 -06:00
Noah
473d538cb9 Make Buffered{Reader,Writer} actually buffered 2020-11-06 11:11:06 -06:00
Noah
5f0708140e Make PyType.tp_name() more efficient 2020-11-06 11:11:06 -06:00
Noah
a1ca535f78 Make bufferoptions.format a Cow<'static, str> 2020-11-06 11:11:06 -06:00
Noah
07457254d6 Implement buffered io sans buffering 2020-11-06 11:11:06 -06:00
Noah
7beb932563 Distinguish between to_index and to_index_opt 2020-11-06 11:11:06 -06:00
Noah
6ba5880b74 Add a PyThreadMutex lock type 2020-11-06 11:11:06 -06:00
Jeong YunWon
ac4e5b855f Merge pull request #2314 from RustPython/coolreader18/no-cache-mac
Try skipping caching on macos
2020-11-06 23:50:50 +09:00
Kangzhi Shi
b18814a3ca Rework CFormatSpec format 2020-11-04 18:15:58 +02:00
Noah
991be82370 Merge pull request #2313 from mainsail-org/mir/notebook
wasm/notebook updates
2020-11-03 15:32:21 -06:00
Kangzhi Shi
84fa2515a7 Generic CFormatPart 2020-11-03 20:58:09 +02:00
Kangzhi Shi
7773562a64 Reimpl format 2020-11-03 11:04:08 +02:00
Noah
e4f446eb9f Re-add test_importlib to windows skiplist 2020-11-02 22:50:34 -06:00
Noah
b5b15e0f3a os.unlink can remove junctions on windows 2020-11-02 22:49:47 -06:00
Noah
68af202208 Give support funcs names 2020-11-02 15:03:44 -06:00
Noah
02daac61e5 Try fixing macos deadlock 2020-11-02 12:42:44 -06:00
Noah
606d8196b6 Skip some importlib tests on windows + fix weird errors, hopefully? 2020-11-02 12:42:44 -06:00
Noah
9105c44bc1 Add more winreg functions 2020-11-02 12:42:43 -06:00
Noah
1dccad99b3 Fix pathlib import on windows 2020-11-02 12:41:44 -06:00
Noah
56b46b7281 Enable test_importlib 2020-11-02 12:41:44 -06:00
Noah
a87ce5ba5d Skip more tests for macos 2020-11-02 12:41:44 -06:00
Noah
bd644124bc Try skipping caching on macos 2020-11-02 12:41:44 -06:00