6930 Commits

Author SHA1 Message Date
Noa
c7faae9b22 Bump all crate versions to 0.2.0 2023-01-11 00:14:28 -06:00
Jeong YunWon
1848c45302 first cspell dict 2023-01-09 19:57:23 +09:00
Jeong YunWon
fc9e531272 Merge pull request #4414 from moreal/keyboard-int-exitcode
Correct exitcode of KeyboardInterrupt
2023-01-08 17:48:44 +09:00
Moreal
16579aeafe Correct exitcode of KeyboardInterrupt 2023-01-08 14:49:51 +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
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
32cf0185bd Fix functions 2023-01-06 22:56:30 +09:00
yt2b
f84dd2e84f Implement format validation 2023-01-05 23:55:23 +09:00
Jeong YunWon
062a543c7f Fix f-string padding
Co-Authored-By: yt2b <reinventing.the.wheels@gmail.com>
2023-01-05 22:29:11 +09:00
yt2b
a79d3ad61b Fix functions 2023-01-04 23:08:20 +09:00
Jim Fasarakis-Hilliard
cad2adc299 Merge pull request #4326 from yt2b/fix_list_remove
Fix `PyList.remove`
2023-01-04 13:28:59 +02:00
threeifbyair
9d711c805a Ensure ScandirIterator does not leak file handles under Unix-like systems (#4307)
* Ensure ScandirIterator does not leak file handles under Unix-like systems.
2023-01-04 13:18:32 +02:00
yt2b
555987e97f Fix functions 2023-01-03 16:22:27 +09:00
Jeong YunWon
23c7b92aff Move (c)format basic implementations to rustpython-common 2023-01-02 20:21:36 +09:00
yt2b
c85f8990f5 Fix separated format (#4397) 2023-01-02 17:37:32 +09: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
Jeong YunWon
aff07cf54f Merge pull request #4390 from garychia/islice-reduce
Implement islice.__reduce__
2023-01-01 15:25:21 +09:00
yt2b
800d0f9370 Fix prefix format 2023-01-01 00:21:22 +09:00
Chia-Hsiang Cheng
2c061c095d Implement reduce for islice 2022-12-31 21:23:10 +08:00
yt2b
e4244d62d8 Fix character format 2022-12-31 00:44:15 +09:00
yt2b
779d05dc02 Fix hex prefix 2022-12-30 09:34:19 +09:00
yt2b
942dccfaae Use fast_isinstance 2022-12-29 01:44:44 +09:00
yt2b
03eb2dd11b Fix LoadNameAny opecode 2022-12-28 22:14:22 +09:00
Jim Fasarakis-Hilliard
1d8269fb72 Merge pull request #4366 from branai/eval-whitespaces
Fix eval doesn't work correctly
2022-12-27 20:23:03 +02:00
Jim Fasarakis-Hilliard
64a14ec297 Merge pull request #4362 from rileysu/main
Fix unwrap issue causing panic
2022-12-27 14:10:35 +02:00
Bijan Naimi
4528889ae3 simpler fix for eval whitespaces 2022-12-26 19:03:45 -08:00
Bijan Naimi
2fc285f5bc removing preceding whitespaces, tabs, and newlines for evals only 2022-12-26 17:27:05 -08:00
Riley Sutton
401ab907f5 Fix unwrap issue causing panic 2022-12-26 14:38:09 +11:00
Jan Krecke
a442056e24 changed unraisable exception type to base exception
- print exception type to screen to match cpython behaviour
- included sample script to illustrate behaviour at sys.exit()
2022-12-25 13:58:15 +09:00
Jeong YunWon
38a80071dc Merge pull request #4355 from yt2b/fix_pysymbol
make `test_globals` pass
2022-12-25 02:10:39 +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
Kangzhi Shi
f16a48df39 Refactor Number Protocol 2022-12-24 15:42:06 +09:00
yt2b
464d92a192 Fix PySymbol 2022-12-24 14:29:48 +09:00
Jeong YunWon
5042230e10 Merge pull request #4342 from qingshi163/current-vm
Store Current VirtualMachine Pointer in LocalKey
2022-12-24 09:44:58 +09:00
yt2b
9c81ce646a Fix is_local 2022-12-22 23:27:36 +09:00
yt2b
85f65740c0 Add member in PySymbol 2022-12-22 23:17:52 +09:00
Kangzhi Shi
8ad7ce5475 add with_current_vm 2022-12-18 21:30:17 +02:00
yt2b
5fa0abdfef Use lock in both index and remove operation. 2022-12-18 12:45:10 +09:00
Padraic Fanning
1b5133350b Fix macOS compilation error (v1.66) 2022-12-17 13:12:12 -05:00
Padraic Fanning
268bbd8414 Fix new (v1.66) Clippy warnings on Windows 2022-12-17 13:12:12 -05:00
Padraic Fanning
5701061e63 Fix new (v1.66) Clippy warnings 2022-12-17 13:12:11 -05:00
yt2b
62d071f088 Add index check 2022-12-11 00:48:34 +09:00
not_joon
16804297ab fix typo py_serde 2022-12-08 12:36:45 +09:00
yt2b
f70b8bfdf9 Refactor ExecutingFrame (#4308)
* Add jump_if function

* Add jump_if_or_pop function
2022-12-06 17:07:31 +02:00
Jeong YunWon
d935fbc445 Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
yt2b
a5ef816c41 Replace bool variable with SymbolFlags 2022-11-28 00:46:10 +09:00
Jeong YunWon
ec3648981d Merge pull request #4293 from discord9/update_crossbeam
depend: Update crossbeam-utils to "0.8.9" instead of "=0.8.9"
2022-11-26 00:42:12 +09:00
Steve Shi
f54b5556e2 Add Supporting for PyAtomicRef<Option<_>> and PyAtomicRef<PyObject> (#4286)
* introduce PyObjectAtomicRef

* impl Debug for PyObjectAtomicRef

* add supporting for PyAtomicRef<Option<_>>

* add supporting for PyAtomic<PyObject>

* impl Send Sync
2022-11-24 13:35:56 +02:00