Page 344 -
P. 344
update which dataset?
It’s time to update your server data
Yikes! I think there’s a problem here...
your server data is in two places: within
your pickle and in the NUAC’s text files.
The question is: which one do you update?
Which of your two datasets should you update?
If you update the pickle, the next time the put_to_store()
function runs, your most recent update will vanish as put_
to_store() recreates the pickle from the data in the text files.
That’s not good.
If you update the appropriate athlete’s text file, the data in the
pickle will be stale until put_to_store() runs again. If
another process calls the get_from_store() function in the
meantime, the update to the pickle might not have been applied
and will appear to be missing for anyone reading your data. That’s
not good, either.
Oh, look, how lovely: I
have a new timing value to add to
the system. Who’s going first?
No, no, no,
Update me, then he’s busy. Just
I’ll update him. update me!
Web
Server
[‘Is this the right room
for an argument?’, “No
you haven’t!”, ‘When?’,
“No you didn’t!”, “You
didn’t!”, ‘You did not!’,
‘Ah! (taking out his wallet
and paying) Just the five
minutes.’, ‘You most
certainly did not!’, “Oh
no you didn’t!”, “Oh no
you didn’t!”, “Oh look,
this isn’t an argument!”,
“No it isn’t!”, “It’s
just contradiction!”,
‘It IS!’, ‘You just
contradicted me!’, ‘You
DID!’, ‘You did just
then!’, ‘(exasperated)
Oh, this is futile!!’,
‘Yes it is!’]
Your text file Your pickle file
308 Chapter 9

