Commit Graph

4684 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
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
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
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
Kangzhi Shi
b18814a3ca Rework CFormatSpec format 2020-11-04 18:15:58 +02: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
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
9105c44bc1 Add more winreg functions 2020-11-02 12:42:43 -06:00
Jeong YunWon
8aea12b8c9 Fix unused variables warnings 2020-11-03 00:28:19 +09:00
Jeong YunWon
cd415c6ca9 Merge pull request #2295 from youknowone/sysmodule
Expose sys module constants in rust level
2020-11-03 00:28:04 +09:00
Jeong YunWon
697d6eddcd Merge pull request #2294 from RustPython/coolreader18/pyobj-constants
Store PyObjectRef in CodeObject constants
2020-11-03 00:03:30 +09:00
Kangzhi Shi
3ebff18b5a fix cformat bug 2020-11-02 13:33:08 +02:00
Kangzhi Shi
d4af9d0bfe Reimpl cformat to suit for bytes 2020-11-01 20:04:41 +02:00
hyperbora
babebf0794 fix math.acosh 2020-10-31 00:26:18 +09:00
Jeong YunWon
d562b02085 Expose sys module constants in rust level 2020-10-29 14:47:31 +09:00
Noah
525ff493a1 Merge pull request #2311 from rodrigocam/master
Add socket sendfile function
2020-10-28 12:18:52 -05:00
Noah
ad3922ae91 Skip shutil test 2020-10-28 11:12:01 -05:00
Rodrigo Oliveira
6de2dc6328 Add macro call to allow function up to seven parameters 2020-10-27 23:39:41 -03:00
Rodrigo Oliveira
a64ecbf00a Process headers and trailers as array of byte buffers 2020-10-27 20:45:29 -03:00
Rodrigo Oliveira
01e6f735a0 Remove socket sendfile wrong implementation 2020-10-27 17:50:40 -03:00
Rodrigo Oliveira
a656c51696 Add os sendfile function and python test 2020-10-27 17:14:53 -03:00
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
Rodrigo Oliveira
00920babba Add socket sendfile function 2020-10-26 14:55:22 -03:00