def __setitem__(self, name, data):
    'Writes data to a zVariable in this CDF\n\n        If the zVariable does not exist, will create one matching\n        L{data}. If it does exist, will attempt to write L{data}\n        to it without changing the type or dimensions.\n\n        @param name: name or number of the variable to write\n        @type name: str or int\n        @param data: data to write, or a :py:class:`pycdf.Var` to copy\n        '
    if isinstance(data, Var):
        self.clone(data, name)
    elif (name in self):
        self[name][...] = data
        if hasattr(data, 'attrs'):
            self[name].attrs.clone(data.attrs)
    else:
        self.new(name, data)
Writes data to a zVariable in this CDF

If the zVariable does not exist, will create one matching
L{data}. If it does exist, will attempt to write L{data}
to it without changing the type or dimensions.

@param name: name or number of the variable to write
@type name: str or int
@param data: data to write, or a :py:class:`pycdf.Var` to copy
def __setitem__(self, name, data):
    'Writes data to a zVariable in this CDF\n\n        If the zVariable does not exist, will create one matching\n        L{data}. If it does exist, will attempt to write L{data}\n        to it without changing the type or dimensions.\n\n        @param name: name or number of the variable to write\n        @type name: str or int\n        @param data: data to write, or a :py:class:`pycdf.Var` to copy\n        '
    if isinstance(data, Var):
        self.clone(data, name)
    elif (name in self):
        self[name][...] = data
        if hasattr(data, 'attrs'):
            self[name].attrs.clone(data.attrs)
    else:
        self.new(name, data)