Timeline for Reading a gzipped file with JSON data for thousands of users
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 3, 2018 at 6:34 | comment | added | C. Harley | Ah, apologies, it must have looked odd on my screen at the time (hence my questions if lines were missing as the formatting appeared out of whack). In that case, the line users.append(json.loads(line)) would turn into a function where the check on the line data would take place. | |
| Oct 2, 2018 at 5:05 | comment | added | AJNeufeld | The datetime comparison is not useless. Indentation is significant in Python. The code reads “if get_new_user then (if datetime comparison append else do nothing) else append”. The user is not appended when get_new_user is true but the datetime check fails. Your pseudocode rewrite removes this functionality, so is not equivalent. | |
| Sep 28, 2018 at 6:31 | history | answered | C. Harley | CC BY-SA 4.0 |