The executable code itself carries that information. See the inspect
module documentation, but code objects have co_names
and co_varnames
, for example.
How to get a current symbol table
-
19-10-2022 - |
문제
In python we can use the following:
symtable.symtable(code,file,compile type)
But is it possible to get a symtable
object a current executable code?
해결책
제휴하지 않습니다 StackOverflow