Commit Graph
185 Commits
Author SHA1 Message Date
Jeong, YunWon 3286e683e6 win32_xstat (#5247)
* win32_xstat

* vm::windows

* Add file_id
2024-04-21 22:02:09 +09:00
Jeong, YunWon d57287b89b Fix OSError.winerror and errno/winerror converions 2024-04-19 04:56:25 +09:00
Jeong YunWon f0f4633346 Fix nightly clippy 2024-04-18 03:37:29 +09:00
Jeong YunWon 8816cd41d5 0.3.1 2024-04-10 17:39:57 +09:00
Daniel Chiquito 90724b32ec Implement new clippy lints (#5208)
* Implement new clippy lints

clippy was just updated and has a few minor issues with the code base.

* Forgotten lint hidden behind feature
2024-03-22 10:25:53 +09:00
Daniel Chiquito bf461cdebc Use CPython hash algorithm for frozenset
The original hash algorithm just XOR'd all the hashes of the elements of
the set, which is problematic. The CPython algorithm is required to pass
the tests.

- Replace `PyFrozenSet::hash` with CPython's algorithm
- Remove unused `hash_iter_unorded` functions
- Add `frozenset` benchmark
- Enable tests
- Lower performance expectations on effectiveness test
- Adjust `slot::hash_wrapper` so that it doesn't rehash the computed
  hash value in the process of converting PyInt to PyHash.
2024-02-09 21:02:40 -05:00
Jeong YunWon a309cb5d2c Fix 1.75 clippy warnings 2023-12-30 11:48:40 +09:00
Noa 068249196f Use new 1.74 features (#5118) 2023-11-17 13:01:05 +09:00
Steve Shi b8f22e2967 bump malachite to 0.4.4 (#5069) 2023-11-07 22:43:49 -08:00
Jeong YunWon 1208416b92 0.3.0 release 2023-09-06 18:49:55 +09:00
Steve Shi de0d323ad3 change dependency from num-bigint to malachite-bigint (#4952) 2023-06-08 14:28:39 +09:00
Micha Reiser 7a6000d181 Use format and cformat from rustpython-literal (#4968)
* Use `format` and `cformat` from `rustpython-literal`

* Remove unused dependencies, use `rustpython-format`
2023-05-13 02:58:02 +09:00
Jeong YunWon dc569e9921 Refactoring 2023-05-10 19:35:27 +09:00
Jeong YunWon f2cfa5f0a7 Split parser to new repository
https://github.com/RustPython/Parser/commit/6b60f85cc4ca248af9b787697c41be2adb7a3ec8
2023-05-06 14:38:11 +09:00
Jeong YunWon ff5076b12c rustpython-literal 2023-05-05 21:49:12 +09:00
Jeong, YunWon cea23d2b07 Merge pull request #4951 from youknowone/repr-quote
Port configurable repr quote from Ruff and refactoring
2023-05-05 20:45:40 +09:00
Jeong YunWon cfbdf7f924 Refactor common::bytes::repr using common::escape 2023-05-03 16:08:48 +09:00
Jeong YunWon 2080cc2067 Refactor common::str::repr using common::escape 2023-05-03 13:47:04 +09:00
Jeong YunWon 9cc8f2dfa9 repr as single quote default 2023-05-01 03:30:34 +09:00
Jeong YunWonandCharlie Marsh 2315ce956e String repr quote option from Ruff project
Co-Authored-By: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-05-01 03:08:13 +09:00
Christopher Gambrell fa79055821 Format d bool support (#4948) 2023-04-30 16:29:04 +09:00
Christopher Gambrell d918f7e51b 'n' support for float format (#4865) 2023-04-16 00:06:20 +09:00
Jeong YunWon 877ba28d85 relocate FsPath -> vm::function::FsPath 2023-03-28 17:01:18 +09:00
Jeong YunWon f68a80879e relocate bytes_as_osstr to common 2023-03-28 12:37:11 +09:00
minhrongcon2000 d39b44c4d3 Fix panic from test_int__format__locale
fix #4588
2023-03-23 15:48:51 +09:00
Jeong YunWon 6a4ce0a620 broken test case of FormatSpec::format_int 2023-03-23 15:48:51 +09:00
Jeong YunWon b572b91783 relocate a few int functions to common 2023-03-18 21:53:15 +09:00
Jeong YunWon 91b57a3f28 Fix clippy warnings 2023-03-10 02:05:52 +09:00
Jeong YunWon 71e11950d9 rename preconversor -> conversion to follow cpython name 2023-03-01 04:51:47 +09:00
Jeong YunWon a1b74b0758 early error return of raw_magnitude_str 2023-03-01 04:19:28 +09:00
John Pham 8b7158f169 Make common::repr throw error instead of panic (#4520) 2023-02-19 22:09:54 +09:00
Jeong YunWon 42a22c280d use workspace dependencies 2023-02-06 15:30:38 +09:00
yt2b 9e8e5a1e81 Fix mod_ 2023-01-22 14:43:58 +09:00
Jeong YunWon fc0b08042d refactor try_update_quantity_from_element 2023-01-21 11:57:22 +09:00
Charlie Marsh 115357ddd1 Implement lone-dot semantics for %-style format strings 2023-01-20 13:23:26 -05:00
yt2b 1640b6a7f3 Refactor FormatType 2023-01-15 15:19:26 +09:00
yt2b 8828fd17a0 Alternate float format doesn't work correctly. (#4446) 2023-01-14 16:48:03 +09:00
messense ee5a1c9002 Fix panic when parsing a format spec with multi-byte character 2023-01-13 14:40:20 +08:00
Noa c7faae9b22 Bump all crate versions to 0.2.0 2023-01-11 00:14:28 -06:00
yt2b 22a5a83fda PyInt.format only raises ValueError (#4428) 2023-01-08 02:06:04 +09:00
Jeong YunWon 604aa427fa Merge pull request #4429 from youknowone/fix-format
Fix nightly clippy warnings
2023-01-07 21:38:41 +09:00
Jeong YunWon 8d36fe68e7 Fix nightly clippy warnings 2023-01-07 21:07:10 +09:00
yt2b 4bec6e8cc8 add from_bytes 2023-01-07 12:44:28 +09:00
yt2b 3677013765 Fix tests 2023-01-06 23:28:33 +09:00
yt2b 32cf0185bd Fix functions 2023-01-06 22:56:30 +09:00
yt2b e60a264dc8 Remove map_err 2023-01-06 00:02:39 +09:00
yt2b f84dd2e84f Implement format validation 2023-01-05 23:55:23 +09:00
Jeong YunWonandyt2b 062a543c7f Fix f-string padding
Co-Authored-By: yt2b <reinventing.the.wheels@gmail.com>
2023-01-05 22:29:11 +09:00
yt2b 980e578d27 Remove map_err 2023-01-04 23:36:34 +09:00
yt2b a79d3ad61b Fix functions 2023-01-04 23:08:20 +09:00