mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
9fb35f69ba
commit
d5e2dbd1fd
@ -10,7 +10,7 @@ Currently, pkpy is almost~ fast as cpython 3.8. Here is a benchmark result of a
|
||||
|
||||
Benchmark files are located in `benchmarks/`.
|
||||
|
||||
https://github.com/blueloveTH/pocketpy/actions/runs/4729609975/jobs/8392313856
|
||||
See [actions/runs/4729609975/jobs/8392313856](https://github.com/blueloveTH/pocketpy/actions/runs/4729609975/jobs/8392313856).
|
||||
|
||||
|
||||
```
|
||||
|
@ -37,7 +37,7 @@ std::cout << CAST(Str, i); // abc
|
||||
|
||||
### Type check
|
||||
|
||||
+ `is_type(PyObject* obj, Type type)`
|
||||
+ `is_non_tagged_type(PyObject* obj, Type type)`
|
||||
+ `VM::check_type(PyObject* obj, Type type)`
|
||||
+ `VM::check_non_tagged_type(PyObject* obj, Type type)`
|
||||
+ `bool is_type(PyObject* obj, Type type)`
|
||||
+ `bool is_non_tagged_type(PyObject* obj, Type type)`
|
||||
+ `void VM::check_type(PyObject* obj, Type type)` throws `TypeError` on failure
|
||||
+ `void VM::check_non_tagged_type(PyObject* obj, Type type)` throws `TypeError` on failure
|
Loading…
x
Reference in New Issue
Block a user