diff --git a/README.md b/README.md index 2860c681..03932b04 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,33 @@ # pocketpy: python interpreter in 1 file

- + + + + - - + + C++17 + + +Python + GitHub + GitHub release Website +

-pkpy is a lightweight(~15K LOC) Python interpreter for game scripting, built on C++17 with STL. +pkpy is a lightweight(~15K LOC) Python interpreter for game scripting, built on C11 with C++17 wrappers. It aims to be an alternative to lua for game scripting, with elegant syntax, powerful features and competitive performance. pkpy is extremely easy to embed via a single header file `pocketpy.h`, without external dependencies. diff --git a/src/objects/dict.c b/src/objects/dict.c index a17432f1..08344ab1 100644 --- a/src/objects/dict.c +++ b/src/objects/dict.c @@ -157,8 +157,6 @@ bool pkpy_Dict__contains(const pkpy_Dict* self, void* vm, pkpy_Var key) { int idx = pkpy_Dict__htget(self, h); if(idx == pkpy_Dict__idx_null(self)) return false; - - struct pkpy_DictEntry* entry = &c11__getitem(struct pkpy_DictEntry, &self->_entries, idx); return true; }