MCPcopy Index your code
hub / github.com/python/cpython / _iter_decls_tsv

Function _iter_decls_tsv

Tools/c-analyzer/c_parser/datafiles.py:105–117  ·  view source on GitHub ↗
(infile, extracolumns=None)

Source from the content-addressed store, hash-verified

103
104
105def _iter_decls_tsv(infile, extracolumns=None):
106 columns = _get_columns('decls', extracolumns)
107 for row in _tables.read_table(infile, columns, sep='\t'):
108 if extracolumns:
109 declinfo = row[:4] + row[-1:]
110 extra = row[4:-1]
111 else:
112 declinfo = row
113 extra = None
114 # XXX Use something like tables.fix_row() here.
115 declinfo = [None if v == '-' else v
116 for v in declinfo]
117 yield declinfo, extra
118
119
120def _write_decls_tsv(decls, outfile, extracolumns, kwargs):

Callers 1

iter_decls_tsvFunction · 0.85

Calls 1

_get_columnsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…