why does dict2 = dict1 not make a copy, wtaf

This commit is contained in:
vulpine 2020-09-29 11:14:00 -04:00
parent c5c647bfda
commit 88167824bc
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ async def on_all(self,wtime=100):
print('will index users in ',wtime)
await asyncio.sleep(wtime)
print('started indexing users')
users = self.users
users = self.users.copy()
for person in users:
user = self.users[person]
await asyncio.sleep(0)