Commit Graph
4702 Commits
Author SHA1 Message Date
carbotaniuman 6484df327e Make frozenset idempotent and unskip some set tests 2020-11-21 14:57:10 -06:00
owtotwo bd068a1eb8 use oct number like CPython fileutils.c instead of decimal number leading zero 2020-11-18 18:27:17 +08:00
Noah 6d7eae98b8 Add iter, iternext slots & Allow deleting slot magic methods 2020-11-17 23:47:48 +09:00
Noah 64b951e7d1 Merge pull request #2325 from RustPython/coolreader18/string-intern
Add string interning
2020-11-16 00:20:21 -06:00
carbotaniuman d76cb3b365 Fix float power and complex division 2020-11-16 13:49:16 +09:00
Noah 06e484672a Merge pull request #2326 from carbotaniuman/master
Add ability to use `__trunc__` to `int()`
2020-11-14 23:32:07 -06:00
Noah 9214f416a4 Use a more generic PyRefExact 2020-11-14 21:28:37 -06:00
carbotaniuman 6498d7922d Fix clippy maybe? 2020-11-14 13:11:47 -06:00
carbotaniuman a6f7bb8845 Remove mut 2020-11-13 19:52:59 -06:00
carbotaniuman 135c0e56ef Delete unnecessary mut 2020-11-13 15:20:29 -06:00
carbotaniuman 55332276ad Format 2020-11-13 15:02:39 -06:00
carbotaniuman 792aed3785 Refactor into min_or_max 2020-11-13 14:58:31 -06:00
carbotaniuman b66ed56099 Format 2020-11-11 20:12:04 -06:00
carbotaniuman 3a45839e01 Supress clippy lint that doesn't work 2020-11-11 19:17:39 -06:00
carbotaniuman 1aa603ac6a Format 2020-11-11 16:40:42 -06:00
carbotaniuman 49b5d37905 Fix min test case by doing mroe validation 2020-11-11 16:27:02 -06:00
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 2f232ecbe3 Implement string interning for variable names 2020-11-09 15:51:57 -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 b30ca99a09 Implement string interning 2020-11-08 21:35:04 -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