The pty module, reading from a pty, and Python 2/3

David Hutto dwightdhutto at gmail.com
Wed Oct 24 02:46:52 EDT 2012


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



More information about the Python-list mailing list