|
|
|
|
|
by anitil
762 days ago
|
|
In your first example I think most people would skip the 'is not None' as None is already falsy and drop the extra braces. I find it visually clearer than the second example where the cause and effect are slightly separated, but I do agree there's an element of cleverness to it. |
|