From 3aaa3dcb6dc2e3304e0b30df61440f11ce249879 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 16 Jan 2024 11:18:59 +0800 Subject: [PATCH] ... --- docs/bindings_lua.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/bindings_lua.md b/docs/bindings_lua.md index ce3b2863..33eb6771 100644 --- a/docs/bindings_lua.md +++ b/docs/bindings_lua.md @@ -52,15 +52,15 @@ Only basic types can be passed between python and lua. The following table shows the type mapping. If you pass an unsupported type, an exception will be raised. -| Python Type | Lua Type | -| ----------- | -------- | -| None | nil | -| bool | boolean | -| int | number | -| float | number | -| str | string | -| lua.Table | table | -| lua.Function| function | +| Python type | Lua type | Allow create in Python? | +| ----------- | -------- | ---------------------- | +| `None` | `nil` | YES | +| `bool` | `boolean` | YES | +| `int` | `number` | YES | +| `float` | `number` | YES | +| `str` | `string` | YES | +| `lua.Table` | `table` | YES | +| `lua.Function`| `function`| NO | ### Example ```cpp