Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100464
| From | eryk sun <eryksun@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: cannot open file with non-ASCII filename |
| Date | 2015-12-15 09:34 -0600 |
| Message-ID | <mailman.25.1450193701.22044.python-list@python.org> (permalink) |
| References | (1 earlier) <CACL+1atduGePg2BXpf-=T___-mz44-=6GV0yU71hpJhM8sqsJA@mail.gmail.com> <20151214221751.GM12472@rus.uni-stuttgart.de> <CACL+1at7Pf541eHshiY7iECC5ncCdWSMaj1wtDygGSoEXjGV3Q@mail.gmail.com> <mailman.8.1450138408.22044.python-list@python.org> <n4oirt$eir$1@news2.informatik.uni-stuttgart.de> |
On Tue, Dec 15, 2015 at 2:26 AM, Ulli Horlacher <framstag@rus.uni-stuttgart.de> wrote: > Laura Creighton <lac@openend.se> wrote: > >> PyPy wrote its own pyreadline. >> You can get it here. https://bitbucket.org/pypy/pyrepl > > As far as I can see, it has no getkey function. > My users do not hit ENTER after drag&drop or copy&paste files. > I need an input function with a timeout. pyreadline looked promising for its extensive ctypes implementation of the Windows console API [1], wrapped by high-level methods such as peek, getchar, and getkeypress. It turns out it ignores the event sequences you need for alt+numpad input (used when a file is dragged into the console). You'd have to modify its console and keysyms modules to make it work. It would be a useful enhancement, so probably your patches would be accepted upstream. AFAICT, pyrepl has no Windows support. Check the TODO [2]: > + port to windows [1]: https://github.com/pyreadline/pyreadline/blob/master/pyreadline/console/console.py [2]: https://bitbucket.org/pypy/pyrepl/src/62f2256014af7b74b97c00827f1a7789e00dd814/TODO?at=v0.8.4
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-14 16:24 +0000
Re: cannot open file with non-ASCII filename Terry Reedy <tjreedy@udel.edu> - 2015-12-14 13:34 -0500
Re: cannot open file with non-ASCII filename wxjmfauth@gmail.com - 2015-12-14 11:07 -0800
Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-14 12:45 -0600
Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-14 19:51 +0100
Re: cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-14 22:11 +0000
Re: cannot open file with non-ASCII filename Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-14 23:41 +0100
Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-15 01:07 +0100
Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-14 21:20 -0600
Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-14 17:55 -0600
Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-15 01:13 +0100
Re: cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-15 08:26 +0000
Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-15 15:09 +0100
Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-15 09:34 -0600
Re: cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-15 17:04 +0000
Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-16 21:39 -0600
Re: cannot open file with non-ASCII filename smap <askme.first@thankyouverymuch.invalid> - 2015-12-18 21:15 +0000
cannot open file with non-ASCII filename bearmingo <bearmingo@gmail.com> - 2015-12-17 21:12 -0800
Re: cannot open file with non-ASCII filename Terry Reedy <tjreedy@udel.edu> - 2015-12-18 01:37 -0500
csiph-web