Jun-17-2024, 09:52 PM
(This post was last modified: Jun-17-2024, 09:52 PM by Gribouillis.)
(Jun-17-2024, 09:08 PM)Curbie Wrote: why is that NOT static?I don't understand the problem. Python is not C. There are no static variables. It is perfecly reasonable to initialize a variable by using a function. What's wrong with that? By looking at the function I can understand why the table contains that data.
If you prefer a literal 256-bytes string in your program, no problem. It won't change the execution of the program. You will just gain a few microseconds at program initialization.
Initialization code exists for libraries in all programming languages.
« We can solve any problem by introducing an extra level of indirection »