def _get(self, var_name):
    'Gets an existing zVariable\n\n        @param var_name: name of this variable\n        @type var_name: string\n        @return: variable with this name\n        @rtype: :py:class:`pycdf.Var`\n        @raise CDFError: if CDF library reports an error\n        @raise CDFWarning: if CDF library reports a warning and interpreter\n                           is set to error on warnings.\n        @note: Not intended to be used directly; use L{CDF.__getitem__}.\n        '
    if isinstance(var_name, str_classes):
        try:
            enc_name = var_name.encode('ascii').rstrip()
        except AttributeError:
            enc_name = var_name.rstrip()
        varNum = ctypes.c_long(0)
        self.cdf_file._call(const.GET_, const.zVAR_NUMBER_, enc_name, ctypes.byref(varNum))
        self._name = enc_name
        self.cdf_file.add_to_cache(enc_name, varNum.value)
    else:
        name = ctypes.create_string_buffer((const.CDF_VAR_NAME_LEN256 + 1))
        self.cdf_file._call(const.SELECT_, const.zVAR_, ctypes.c_long(var_name), const.GET_, const.zVAR_NAME_, name)
        self._name = name.value.rstrip()
        self.cdf_file.add_to_cache(self._name, var_name)
Gets an existing zVariable

@param var_name: name of this variable
@type var_name: string
@return: variable with this name
@rtype: :py:class:`pycdf.Var`
@raise CDFError: if CDF library reports an error
@raise CDFWarning: if CDF library reports a warning and interpreter
                   is set to error on warnings.
@note: Not intended to be used directly; use L{CDF.__getitem__}.
def _get(self, var_name):
    'Gets an existing zVariable\n\n        @param var_name: name of this variable\n        @type var_name: string\n        @return: variable with this name\n        @rtype: :py:class:`pycdf.Var`\n        @raise CDFError: if CDF library reports an error\n        @raise CDFWarning: if CDF library reports a warning and interpreter\n                           is set to error on warnings.\n        @note: Not intended to be used directly; use L{CDF.__getitem__}.\n        '
    if isinstance(var_name, str_classes):
        try:
            enc_name = var_name.encode('ascii').rstrip()
        except AttributeError:
            enc_name = var_name.rstrip()
        varNum = ctypes.c_long(0)
        self.cdf_file._call(const.GET_, const.zVAR_NUMBER_, enc_name, ctypes.byref(varNum))
        self._name = enc_name
        self.cdf_file.add_to_cache(enc_name, varNum.value)
    else:
        name = ctypes.create_string_buffer((const.CDF_VAR_NAME_LEN256 + 1))
        self.cdf_file._call(const.SELECT_, const.zVAR_, ctypes.c_long(var_name), const.GET_, const.zVAR_NAME_, name)
        self._name = name.value.rstrip()
        self.cdf_file.add_to_cache(self._name, var_name)