-
Such as
Python doesn't allow |
Beta Was this translation helpful? Give feedback.
Answered by
msiemens
Aug 6, 2022
Replies: 1 comment
-
Hey @hao-lee, this is indeed allowed as TinyDB first reads the storage and then returns an iterator over all documents. The iterator will continue yielding the original set of documents, though. This means that any changes performed while iterating the list will not be represented in subsequent iterations. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hao-lee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @hao-lee, this is indeed allowed as TinyDB first reads the storage and then returns an iterator over all documents. The iterator will continue yielding the original set of documents, though. This means that any changes performed while iterating the list will not be represented in subsequent iterations.