Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32008
| References | <508759A9.7070601@wisc.edu> <CA+vVgJUrJHh5QRUp+gn0E6TLSRvg7vT-Bsg_eZaEDC5kX8DQxA@mail.gmail.com> |
|---|---|
| Date | 2012-10-24 02:46 -0400 |
| Subject | Re: The pty module, reading from a pty, and Python 2/3 |
| From | David Hutto <dwightdhutto@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2731.1351061216.27098.python-list@python.org> (permalink) |
in other words, the last two lines of your function should be:
statinfo = os.stat(filename)
return child_pty.read(statinfo.st_size)
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: The pty module, reading from a pty, and Python 2/3 David Hutto <dwightdhutto@gmail.com> - 2012-10-24 02:46 -0400
csiph-web