def __str__(self):
    "Returns a string representation of the attribute list\n\n        This is an 'informal' representation in that it cannot be evaluated\n        directly to create an L{AttrList}.\n\n        @return: all the data in this list of attributes\n        @rtype: str\n        "
    if self._cdf_file._opened:
        return '\n'.join([((key + ': ') + (('\n' + (' ' * (len(key) + 2))).join([(((str(value[i]) + ' [') + lib.cdftypenames[value.type(i)]) + ']') for i in range((value.max_idx() + 1)) if value.has_entry(i)]) if isinstance(value, Attr) else (((str(value) + ' [') + lib.cdftypenames[self.type(key)]) + ']'))) for (key, value) in sorted(self.items())])
    elif isinstance(self._cdf_file.pathname, str):
        return 'Attribute list in closed CDF {0}'.format(self._cdf_file.pathname)
    else:
        return 'Attribute list in closed CDF {0}'.format(self._cdf_file.pathname.decode('ascii'))
Returns a string representation of the attribute list

This is an 'informal' representation in that it cannot be evaluated
directly to create an L{AttrList}.

@return: all the data in this list of attributes
@rtype: str
def __str__(self):
    "Returns a string representation of the attribute list\n\n        This is an 'informal' representation in that it cannot be evaluated\n        directly to create an L{AttrList}.\n\n        @return: all the data in this list of attributes\n        @rtype: str\n        "
    if self._cdf_file._opened:
        return '\n'.join([((key + ': ') + (('\n' + (' ' * (len(key) + 2))).join([(((str(value[i]) + ' [') + lib.cdftypenames[value.type(i)]) + ']') for i in range((value.max_idx() + 1)) if value.has_entry(i)]) if isinstance(value, Attr) else (((str(value) + ' [') + lib.cdftypenames[self.type(key)]) + ']'))) for (key, value) in sorted(self.items())])
    elif isinstance(self._cdf_file.pathname, str):
        return 'Attribute list in closed CDF {0}'.format(self._cdf_file.pathname)
    else:
        return 'Attribute list in closed CDF {0}'.format(self._cdf_file.pathname.decode('ascii'))