Home | History | Annotate | Download | only in python2.7

Lines Matching defs:file

16 To create a Message object: first open a file, e.g.:
18 fp = open(file, 'r')
20 You can use any other legal way of getting an open file object, e.g. use
21 sys.stdin or call os.popen(). Then pass the open file object to the Message()
37 an unseekable object such as a file object created from a socket object. If
39 file object is called once; if this raises an exception, seekable is reset to
117 """Rewind the file to the start of the body (if seekable)."""
119 raise IOError, "unseekable file"
135 file).
979 file = os.path.join(os.environ['HOME'], 'Mail/inbox/1')
980 if sys.argv[1:]: file = sys.argv[1]
981 f = open(file, 'r')