Very often I will have assignments like:
data = {
'a': var_a if var_a is not None else default_a,
...
}
This is somewhat verbose. I think this can be shortened to
data = {
'a': var_a or default_a,
...
}
at least if I know that var_a will not take on a value like 0 or [].
Are there any downsides to using this shorter notation?