added sample initializaition loop

Signed-off-by: Arthur Lu <learthurgo@gmail.com>

Former-commit-id: d16fe61a79
This commit is contained in:
Arthur Lu 2021-10-21 21:56:44 +00:00
parent 88282aa18b
commit 4ded02b34f

View File

@ -48,6 +48,39 @@
"initialized" "initialized"
] ]
}, },
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import module\n",
"module_references = {\"match\": module.Match}\n",
"module_initialized = []\n",
"for m in [\"match\"]:\n",
"\tmodule_initialized.append(module_references[m](\"\", \"\", \"\", 0, []))"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[<module.Match at 0x7f0e47c45ee0>]"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"module_initialized"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,