def _objs_opts(objs, all=None, **opts):
    '''Return given or 'all' objects
       and the remaining options.
    '''
    if objs:  # given objects
        t = objs
    elif all in (False, None):
        t = ()
    elif all is True:  # 'all' objects
        t = tuple(_getobjects())
        if sys.platform == 'ios':
            # remove any tuples containing NULLs
            t = tuple(o for o in t if not _isNULL(o))
    else:
        raise ValueError('invalid option: %s=%r' % ('all', all))
    return t, opts
Return given or 'all' objects
       and the remaining options.
    
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py