def __def(self,followers=['endwhile']):
        from compiler.ast import While
        try:
            F = self._cparse('def X%s: pass' % self.__tokenText(colonRemove=1).strip()).node.nodes[0]
            self._fnc_argnames = F.argnames
            self._fnc_defaults = F.defaults
            self._fnc_varargs = F.varargs
            self._fnc_kwargs = F.kwargs
            self._fnc_flags = F.flags
        except:
            self.__error()
        t = self.__tokenPop()
        self._fnc_lineno = t[1]
        return None
dataset/ETHPy150Open CGATOxford/cgat/obsolete/preppy.py/PreppyParser.__def/original