Lifetime of import statements and variables #21
Unanswered
ssimo3lsuhsc
asked this question in
Q&A
Replies: 1 comment
-
Your assumption is correct. Python state is retained until the end of the document. The effect of changing the
Early versions of PyLuaTeX behaved like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a long document that will potentially call features of PyLuaTeX multiple times. I want to clarify something. I do not have any reason to change PyLuaTeX's
shutdown
option. I'm keeping it asveryveryend
. I want to be clear of the secondary implications of keeping it the way it is.Particularly, I want to be clear if I am correct in assuming that if I issue a statement
foo = None
orimport bar
in one block of Python code, then I do not have to issue the same statements in subsequent blocks of code.Beta Was this translation helpful? Give feedback.
All reactions