Lines Matching defs:open
12 from a disk file or from an open file, and similar for its output.
50 To open a file for reading or writing through a conversion pipeline:
51 fp = t.open(file, mode)
53 for the built-in function open() or for os.popen().
145 def open(self, file, rw):
146 """t.open(file, rw) returns a pipe or file object open for
152 raise ValueError('Template.open: rw must be \'r\' or \'w\', not %r'
157 t.open(file, 'r') and t.open(file, 'w') respectively."""
159 return open(file, 'r')
167 return open(file, 'w')