mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some doc fix
This commit is contained in:
parent
66d9870150
commit
ea94e3c531
@ -132,7 +132,7 @@ for a quick overview of the supported features.
|
|||||||
| Reflection | `hasattr()/getattr()/setattr()` | ✅ |
|
| Reflection | `hasattr()/getattr()/setattr()` | ✅ |
|
||||||
| Import | `import/from..import` | ✅ |
|
| Import | `import/from..import` | ✅ |
|
||||||
| Context Block | `with <expr> as <id>:` | ✅ |
|
| Context Block | `with <expr> as <id>:` | ✅ |
|
||||||
| Type Annotation | `def f(a:int, b:float=1)` | ✅ |
|
| Type Annotation | `def f(a:int, b:float=1)` | ✅ |
|
||||||
| Generator | `yield i` | ✅ |
|
| Generator | `yield i` | ✅ |
|
||||||
| Decorator | `@cache` | ✅ |
|
| Decorator | `@cache` | ✅ |
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ int main(){
|
|||||||
| 反射 | `hasattr()/getattr()/setattr()` | ✅ |
|
| 反射 | `hasattr()/getattr()/setattr()` | ✅ |
|
||||||
| 导入模块 | `import/from..import` | ✅ |
|
| 导入模块 | `import/from..import` | ✅ |
|
||||||
| 上下文管理器 | `with <expr> as <id>:` | ✅ |
|
| 上下文管理器 | `with <expr> as <id>:` | ✅ |
|
||||||
| 类型标注 | `def f(a:int, b:float=1)` | ✅ |
|
| 类型标注 | `def f(a:int, b:float=1)` | ✅ |
|
||||||
| 生成器 | `yield i` | ✅ |
|
| 生成器 | `yield i` | ✅ |
|
||||||
| 装饰器 | `@cache` | ✅ |
|
| 装饰器 | `@cache` | ✅ |
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ label: Performance
|
|||||||
# Performance
|
# Performance
|
||||||
|
|
||||||
Currently, pkpy is as fast as cpython 3.9.
|
Currently, pkpy is as fast as cpython 3.9.
|
||||||
**Performance results for cpython 3.9 are applicable to for pkpy.**
|
Performance results for cpython 3.9 are applicable to for pkpy.
|
||||||
|
|
||||||
Here is a benchmark result of `v1.2.6`.
|
Here is a benchmark result of `v1.2.6`.
|
||||||
Files are located in `benchmarks/`.
|
Files are located in `benchmarks/`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user