Commit Graph

376 Commits

Author SHA1 Message Date
Jeong YunWon
f314328294 lifetime bounded TryFromBorrwoedObject 2023-03-19 04:57:06 +09:00
Jeong YunWon
12c96d06e4 Remove useless and_then 2023-03-18 22:10:25 +09:00
Jeong YunWon
b35861005e more cspell (#4702) 2023-03-17 14:02:24 +09:00
bearney74
123559478e fix fmean/fsum ValueError and test_inv_cdf 2023-03-17 01:18:47 +09:00
Jeong YunWon
40d36165a4 update cspell sqlite 2023-03-16 22:08:12 +09:00
Jeong YunWon
089c8b7b0a Refactor zlib using new Level type 2023-03-16 00:52:39 +09:00
Jeong YunWon
e96dd96864 Refactor zlib and add wbits to zlib.compress() 2023-03-15 23:52:51 +09:00
Jeong YunWon
8ff947e83a Merge pull request #4677 from youknowone/arg-index
apply ArgIndex
2023-03-14 00:36:19 +09:00
Jeong YunWon
8a223b8178 Fix unix localeconv to refer libc and additional clean up 2023-03-13 23:19:52 +09:00
minh.pham2000
19193cd2a4 Add locale implementation for windows 2023-03-13 23:19:52 +09:00
Jeong YunWon
0e2e7e533a ArgPrimitiveIndex for zlib 2023-03-10 16:44:47 +09:00
Jeong YunWon
6275435567 <i>::try_from_object with try_index 2023-03-10 06:21:40 +09:00
Jeong YunWon
bca7c16435 ArgIndex for math 2023-03-10 06:21:40 +09:00
Jeong YunWon
925962505e Adapt ArgIndex in bisect 2023-03-10 06:21:39 +09:00
Jeong YunWon
05317f1664 temporary fill up missing number protocols 2023-03-09 23:43:15 +09:00
John Pham
27233364bc Add init for array.rs (#4667) 2023-03-09 19:45:58 +09:00
Jeong YunWon
5a74f08c84 Merge pull request #4654 from youknowone/pycallble
Add protocol object PyCallable
2023-03-08 05:01:31 +09:00
Kaan Karakaya
cb479bf199 Remove strict type to allow cross compiling
Signed-off-by: Kaan Karakaya <yusufkaan142@gmail.com>
2023-03-07 21:46:53 +03:00
Jeong YunWon
b60271a6cf deprecate vm.invoke 2023-03-08 01:35:30 +09:00
Jeong YunWon
66d9514e12 remove vm.is_callable 2023-03-07 19:28:21 +09:00
Charles Hubain
29de419c87 Implementing shake_128 and shake_256 in the hashlib module. 2023-03-06 00:43:06 +09:00
Jeong YunWon
ff973caa67 ToPyException for base64::DecodeError 2023-03-04 16:19:29 +09:00
Evan Rittenhouse
362be9f344 Add 'invalid base64-encoded string' error 2023-03-04 16:11:02 +09:00
Evan Rittenhouse
404c398b59 Implement strict_mode keyword for binascii.a2b_base64 2023-03-04 16:11:01 +09:00
John Pham
f3e9413b2d Add strxfrm and strcoll to locale mod (#4603) 2023-03-04 03:21:04 +09:00
Dan Näsman
cdf5634cf2 Implement as_sequence for array (#4585) 2023-03-03 04:29:52 +09:00
Noa
58ac82b0a7 Switch hacky GAT-workarounds to use actual GATs 2023-03-01 20:48:12 -06:00
John Pham
af1d46f184 Add _locale module (#4558)
_locale.localeconv and _locale.setlocale

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2023-03-01 05:37:52 +09:00
Jeong YunWon
6385b82c2b Merge pull request #4579 from threeifbyair/array-4575
Satisfy safety conditions for std::slice::from_raw_parts. Fixes #4575.
2023-02-27 14:06:02 +09:00
Alistair Bell
4955f05fa3 Modified fix for #4575 per @youknowone. Thanks, YunWon! 2023-02-26 09:24:01 -08:00
Alistair Bell
910574361c Satisfy safety conditions for std::slice::from_raw_parts. Fixes #4575. 2023-02-25 22:10:57 -08:00
Jeong YunWon
8b40c2e372 clean up unicodedata 2023-02-25 17:16:03 +09:00
Charles Hubain
df0963446f Implemented the block_size attribute for PyHasher, fixing the 2 failing hmac tests 2023-02-21 16:52:15 +09:00
Charles Hubain
b5f54f1624 Integrated hmac.py and test_hmac.py:
* fix typing issue on digest update function
* implemented copy for PyHasher object
* fixed two test_hashlib.py expected failure as a side-effect
2023-02-21 11:35:09 +09:00
Charles Hubain
4f1085beb3 Ensure socket.gethostbyname_ex only returns IPv4 addresses 2023-02-20 23:51:11 +09:00
Zhiyan Xiao
3b8d670c81 Add unicodedata.east_asian_width (#4523) 2023-02-20 01:38:02 +09:00
MrrRaph
371b5e2a6e Fixed type mismatchs 2023-02-17 23:26:11 +09:00
Noa
d9e3f9ca68 Tidy up ssl a little 2023-02-16 21:02:26 -06:00
Noa
e08252cad7 Use nix for more things 2023-02-16 21:02:26 -06:00
Jonathan Slenders
9cac89347e Fix aarch64 compatibility for sqlite. 2023-02-13 20:53:39 +00:00
Jim Fasarakis-Hilliard
e1ab8a9b42 Fix clippy issues for rust 1.67 (#4478) 2023-01-31 09:46:19 +09:00
Lee Dogeon
8284a7cb89 Import from collections.abc instead of _collections_abc
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
2023-01-24 15:51:47 +09:00
Lee Dogeon
03f0e717a7 Correct typo
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
2023-01-24 15:37:28 +09:00
Moreal
d0bf163641 Register array.array to collections.abc.MutableSequence 2023-01-24 05:56:34 +09:00
Moreal
0527c4eae6 Implement array.array.__contains__ 2023-01-22 22:32:56 +09:00
Jeong YunWon
1848c45302 first cspell dict 2023-01-09 19:57:23 +09:00
Steve Shi
765933136c Implement Sqlite3 Module (#4260)
* add supporting for PyAtomic<PyObject>

* create sqlite module

* add dependency sqlite3-sys

* add module constants

* import sqlite3 from cpython

* adjust lib

* add module structure

* impl Connection.cursor

* add module exceptions

* impl lstrip_sql

* impl statement new

* wip cursor.execute

* wip cursor

* wip error to exception

* add SqliteRaw and SqliteStatementRaw

* impl statement parameters binding

* wip cursor.execute

* add test_sqlite

* impl closeable connection

* impl closeable cursor

* impl cursor.executemany

* impl cursor.executescript

* impl cursor.fetch*

* impl connection.backup

* stage 1

* add support connection.backup with progress

* fix backup deadlock

* support changable isolation_level

* impl converter

* impl adapter

* impl text_factory and blob

* impl create_function

* impl create_function 2

* fix empty statement

* impl blob support

* impl create_aggregate

* impl create_aggregate 2

* refactor create_*

* impl enable_callback_traceback

* impl create_collation

* refactor create_* with CallbackData

* fix text and blob use SQLITE_TRANSIENT

* fix str to SQLITE_TEXT

* impl thread check

* impl Connection Factory

* impl busy timeout

* shift sqlite3-sys -> libsqlite3-sys

* refactor CallbackData

* impl create_window_function

* refactor callback functions

* add module attr converters

* fix nullable isolation_level

* add module attr adapters

* fix nullable adapt proto

* impl set_authorizer

* impl trace_callback

* impl set_progress_handler

* impl cancellable sqlite function*

* impl attributes for Connection

* fix some failed tests

* impl Row

* impl Blob methods

* impl Blob subscript & ass_subscript

* pass tests

* rebase

* no sqlite for wasm

* use ThreadId instead u64

* no libsqlite3-sys for wasm

* fix into_cstring for all platform

* fixup

* rebase

* fix windows into_bytes

* disable sqlite for android

* fixup
2023-01-07 22:03:24 +02:00
Steve Shi
b6c9882e1a Fix bug in Sliceable and rename del_item* to delitem (#4333)
* fix bug in sliceable

* fixup
2023-01-01 17:28:42 +02:00
Moreal
d41f40879c Allow trailing bits while decoding base64 2022-12-28 05:19:06 +09:00
Jeong YunWon
31b89fc124 Merge pull request #4347 from qingshi163/refactor-number
Refactor Number Protocol &PyNumber -> PyNumber
2022-12-24 22:30:37 +09:00