Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11630
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <malaclypse2@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.044 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; '16,': 0.15; 'doe': 0.16; 'getting.': 0.16; 'msvcrt': 0.16; 'returning?': 0.16; 'subject:() ': 0.16; 'this:': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.22; 'tue,': 0.23; 'pm,': 0.24; 'aug': 0.24; 'bit': 0.28; 'import': 0.28; 'message-id:@mail.gmail.com': 0.29; 'print': 0.29; 'subject:?': 0.31; 'it.': 0.33; 'to:addr:python-list': 0.33; 'subject:getting': 0.34; 'determine': 0.35; 'returning': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; "it's": 0.40; 'more': 0.60; 'john': 0.62; 'here': 0.65; 'information,': 0.65 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yhvzEqzgH5HlRtA5gobsewgU+9Ot1JRJEhPGlCIhJgs=; b=GNvJcRwD0UlM00fkSadevoMmlFLJdIKvabXoWkDh9NtjT9ht0fzzIws51dmDXho8ql JQj8BSLnYwMQAfsQQgKY2QU6OHzcIKrhP2jyW/mobsW3psNglXRQwrFkf3f2qLQgGA85 u3riEGQch3LC3RzV8vdmI5q/3V8kZvuYbh/w8= |
| MIME-Version | 1.0 |
| In-Reply-To | <4e4ae499$0$14418$c3e8da3$a8a65a91@news.astraweb.com> |
| References | <4e4ae499$0$14418$c3e8da3$a8a65a91@news.astraweb.com> |
| Date | Tue, 16 Aug 2011 20:06:45 -0400 |
| Subject | Re: Determine what msvcrt.getch() is getting? |
| From | Jerry Hill <malaclypse2@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.105.1313539606.27778.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1313539606 news.xs4all.nl 23889 [2001:888:2000:d::a6]:58012 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:11630 |
Show key headers only | View raw
On Tue, Aug 16, 2011 at 5:43 PM, John Doe <jdoe@usenetlove.invalid> wrote: > Whatever msvcrt.getch() is returning here in Windows, it's not within > the 1-255 number range. How can I determine what it is returning? > > I would like to see whatever it is getting. Just print it. Like this: import msvcrt ch = msvcrt.getch() print (ch) for a bit more information, do this instead: import msvcrt ch = msvcrt.getch() print(type(ch), repr(ch), ord(ch)) -- Jerry
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Determine what msvcrt.getch() is getting? John Doe <jdoe@usenetlove.invalid> - 2011-08-16 21:43 +0000 Re: Determine what msvcrt.getch() is getting? Jerry Hill <malaclypse2@gmail.com> - 2011-08-16 20:06 -0400
csiph-web