Lines Matching defs:filename
10 defaulting to sys.stdin if the list is empty. If a filename is '-' it
15 Functions filename(), lineno() return the filename and cumulative line
22 towards the cumulative line count; the filename is not changed until
26 Before any lines have been read, filename() returns None and both line
28 read, filename() and the line number functions return the values
48 Class FileInput is the implementation; its methods filename(),
72 __all__ = ["input", "close", "nextfile", "filename", "lineno", "filelineno",
105 not count towards the cumulative line count. The filename is not
115 def filename():
122 return _state.filename()
175 filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(),
374 def filename(self):
401 def hook_compressed(filename, mode, *, encoding=None, errors=None):
404 ext = os.path.splitext(filename)[1]
407 stream = gzip.open(filename, mode)
410 stream = bz2.BZ2File(filename, mode)
412 return open(filename, mode, encoding=encoding, errors=errors)
421 def openhook(filename, mode):
422 return open(filename, mode, encoding=encoding, errors=errors)
437 print("%d: %s[%d]%s %s" % (lineno(), filename(), filelineno(),
439 print("%d: %s[%d]" % (lineno(), filename(), filelineno()))