Commit Graph

6919 Commits

Author SHA1 Message Date
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
Discord9
290e8e077b depend: update crossbeam-utils 2022-11-24 12:17:50 +08:00
Discord9
754b28c086 refactor: use Lazy for static 2022-11-24 12:17:07 +08:00
Dimitris Fasarakis Hilliard
d07547860b Fix issues with flame-it. 2022-11-23 18:57:53 +02:00
misilelaboratory
270b2ba98f fix: cargo fmt 2022-11-19 21:54:17 +09:00
misilelaboratory
80404d3bd5 fix: deprecated function 2022-11-19 12:31:59 +09:00
Jeong YunWon
17944d3eae Merge pull request #4272 from oow214/iter_combi_reduce
Add `combinations.__reduce__ `
2022-11-19 01:05:33 +09:00
Jim Fasarakis-Hilliard
eb337e564f Merge pull request #4273 from discord9/fix_dict
Allow retry if `as_mut` fail when insert Dict
2022-11-13 09:57:19 +02:00
Discord9
6a66ae20b5 refactor: use let-else 2022-11-12 20:39:20 +08:00
Discord9
4b92ff5fff log: remove warning 2022-11-12 20:12:40 +08:00
Kim, YeonWoo
dd93ec3c41 Add combinations.__reduce__ 2022-11-11 16:41:20 +09:00
seryoungshim17
5608808d0f Add itertool.combinations.__reduce__ method
Add result in struct PyItertoolsCombinations
2022-11-11 16:33:41 +09:00