This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xuancong84
Recipients steven.daprano, terry.reedy, xuancong84
Date 2021-05-10.03:21:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620616866.19.0.569588649266.issue44028@roundup.psfhosted.org>
In-reply-to
Content
Thanks @terry.reedy for your expert-level good comments!

1.
"In Python 3, the one *implementation*, and its lookup mode, are fixed.  The slower implementation was dropped because it was not thought worth the bother."
If I remember correctly, the performance penalty due to the slower lookup mode is not quite significant, in most Python benchmarks, Python2 still performs much faster than Python3 because most codes that need speed does not contain exec/eval, so the slow mode won't affect in practice.

2.
"When you invoke the save function while playing a game, I am imagine that the save function does not have access to and does not same the locals of whatever function was executing at the time you hit the save key.  Rather a game and player states are serialized, and likely not in one line of code."
I have personally tried this on one implementation of deep neural network using Tensorflow, it works pretty well, especially on saving the network parameters at every Nth epoch, or resuming training from a particular epoch. The biggest advantage is that it does not scale with network size or complexity, so the Python code size has a O(1) complexity with network size/complexity and that is a small constant O(1) as it does not involve any Python loop. In practice, you can select what to save/load, such as those not starting with '_'.
History
Date User Action Args
2021-05-10 03:21:06xuancong84setrecipients: + xuancong84, terry.reedy, steven.daprano
2021-05-10 03:21:06xuancong84setmessageid: <1620616866.19.0.569588649266.issue44028@roundup.psfhosted.org>
2021-05-10 03:21:06xuancong84linkissue44028 messages
2021-05-10 03:21:05xuancong84create