This commit is contained in:
blueloveTH 2023-02-05 14:50:31 +08:00
parent c2c7630320
commit 6bd05dede8
2 changed files with 21 additions and 21 deletions

View File

@ -25,11 +25,10 @@ The following table shows the basic features of PocketPy with respect to [CPytho
The features marked with `YES` are supported, and the features marked with `NO` are not supported.
| Name | Example | Supported |
| --------------- | -------------------------- | --------- |
| --------------- | ------------------------------- | --------- |
| If Else | `if..else..elif` | YES |
| Loop | `for/while/break/continue` | YES |
| Function | `def f(x,*args,y=1):` | YES |
| Function `**` | `def f(**kwargs):` | NO |
| Subclass | `class A(B):` | YES |
| List | `[1, 2, 'a']` | YES |
| ListComp | `[i for i in range(5)]` | YES |
@ -39,11 +38,12 @@ The features marked with `YES` are supported, and the features marked with `NO`
| F-String | `f'value is {x}'` | YES |
| Unpacking | `a, b = 1, 2` | YES |
| Star Unpacking | `a, *b = [1, 2, 3]` | NO |
| Throw Exception | `assert/raise` | YES |
| Catch Exception | `try..catch` | NO |
| Eval/Exec | `eval()/exec()` | YES |
| Exception | `raise/try..catch` | YES |
| Dynamic Code | `eval()/exec()` | YES |
| Reflection | `hasattr()/getattr()/setattr()` | YES |
| Import | `import/from..import` | YES |
| Context Block | `with <expr> as <id>:` | YES |
| Type Annotation | `def f(a: int, b : float = 1)` | YES |
## Introduction

@ -1 +1 @@
Subproject commit ae3cd03dfd04c5a9b3d9178ee9562d9d8c15db74
Subproject commit 2c358833fee58406c777d02c80e540e9b6030367