Generating a list of None

Nicolas Couture nicolas.couture at gmail.com
Thu Jul 14 22:28:14 EDT 2005


of course the later snipplet should be:
---
def get_options(opts):
    """Return True or False if an option is set or not"""
    vals = opts.__dict__.values()

    if vals == [None * len(vals)]:
        return False

    return True
---




More information about the Python-list mailing list