Why don’t you just create a generator without None values? It’s simplier and cleaner.
>>> l=[None ,3]
>>> min(i for i in l if i is not None)
3
Why don’t you just create a generator without None values? It’s simplier and cleaner.
>>> l=[None ,3]
>>> min(i for i in l if i is not None)
3