Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32008
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dwightdhutto@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.025 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.05; 'be:': 0.09; 'received:mail-qc0-f174.google.com': 0.09; 'subject:module': 0.09; 'cc:addr:python-list': 0.10; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'lines': 0.28; 'subject:/': 0.28; 'function': 0.30; 'received:google.com': 0.34; 'received:209.85': 0.35; 'should': 0.36; 'two': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'your': 0.60; 'subject:, ': 0.61; 'subject:The': 0.71 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=USap7NB1/DRIuOrFGpmUZrtvOZGhY95A5oVwR1CXo6c=; b=eR4cEC9alpmU9fVXDVZA4mvzm2SBGw7YRs3b11p2qjEe4PPQ6e4Rr14lAAmDyPZ62I a/O35gT7iCYTvO8au7KpDVjI/RLxkAMGH/jc09fe52nVb3FGQoCWOFr74VgrmGmWE4cm CZ+xmfvyINEaK6OjXQTtVxjFawQwWPx3++7PJVTfoS5iDALdtIVdLukkF0LFnwLVAAvo 9/TYLmhGEMfI9qTasQM87kCsw1JV/tH00XiX7phgBCuo+iycexiSaL1qDdNmUsbncO27 m6ZmsBWBaCJWz+/hoRXgqWbe5CZgQJXy+SYsW2P+8m8fNdvQp1S4y4CQLawCE1Qlp424 pJaw== |
| MIME-Version | 1.0 |
| In-Reply-To | <CA+vVgJUrJHh5QRUp+gn0E6TLSRvg7vT-Bsg_eZaEDC5kX8DQxA@mail.gmail.com> |
| References | <508759A9.7070601@wisc.edu> <CA+vVgJUrJHh5QRUp+gn0E6TLSRvg7vT-Bsg_eZaEDC5kX8DQxA@mail.gmail.com> |
| Date | Wed, 24 Oct 2012 02:46:52 -0400 |
| Subject | Re: The pty module, reading from a pty, and Python 2/3 |
| From | David Hutto <dwightdhutto@gmail.com> |
| To | Evan Driscoll <edriscoll@wisc.edu> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2731.1351061216.27098.python-list@python.org> (permalink) |
| Lines | 10 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1351061216 news.xs4all.nl 6899 [2001:888:2000:d::a6]:44467 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:32008 |
Show key headers only | View raw
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