10 ms·
Wouldn’t this throw an attribute error if cache.get didn’t return an object with .data?
by pyuser583 4y ago
Wouldn’t this throw an attribute error if cache.get didn’t return an object with .data?
- OJFord 4y agoYes, just as it would if you made the assignment on a line previous to the return statement. It would also error if there was no 'cache' in scope, and anything else you can imagine.