From 609d7e68d82ad2b5547ce511ea641a233c193597 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 8 Dec 2022 20:04:09 +0800 Subject: [PATCH] up --- README.md | 12 +++++++----- plugins/flutter/README.md | 14 +++++++------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2ae40f31..bb47b21a 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,16 @@ # pocketpy -![build](https://github.com/blueloveTH/pocketpy/actions/workflows/main.yml/badge.svg) +

+ + +

-C++17 single-file header-only cross platform Python Interpreter. +C++17 header-only Python interpreter for game engines. + +Please see https://pocketpy.dev for detailed documentations. ![sample_img](docs/sample.png) -## Documentations -See https://pocketpy.dev - ## Build From Source (Linux) diff --git a/plugins/flutter/README.md b/plugins/flutter/README.md index 58920823..53074fdb 100644 --- a/plugins/flutter/README.md +++ b/plugins/flutter/README.md @@ -3,18 +3,22 @@ PocketPy is a lightweight Python interpreter for game engines. ![](https://pocketpy.dev/static/logo_flat.png) +# Basic Features -## Features +The following table shows the basic features of PocketPy with respect to [CPython](https://github.com/python/cpython). +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 KwArgs | `def f(**kwargs):` | NO | +| Function `**` | `def f(**kwargs):` | NO | | Subclass | `class A(B):` | YES | | List | `[1, 2, 'a']` | YES | | ListComp | `[i for i in range(5)]` | YES | +| Slice | `a[1:2], a[:2], a[1:]` | YES | +| Tuple | `(1, 2, 'a')` | YES | | Dict | `{'a': 1, 'b': 2}` | YES | | F-String | `f'value is {x}'` | YES | | Unpacking | `a, b = 1, 2` | YES | @@ -25,11 +29,6 @@ PocketPy is a lightweight Python interpreter for game engines. | Import | `import/from..import` | YES | | Context Block | `with as :` | YES | - - -## Extra Features - -For features that are PocketPy specific, see [Extra Features](https://pocketpy.dev/extras/goto). ## Introduction

@@ -204,3 +203,4 @@ class _MyAppState extends State { } } ``` +