If I have a design like this:
def foo(): a=None b=None c=None
What is the preferred syntax in python to check if all variables are set to useful values? Is this how I wrote, or another better way?
This is different from this question: not tested by any test in Python ... I am looking for a preferred test method if many conditions are nothing. The option I typed seems very long and non-neat.
python
The molecule
source share