Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28076
| Date | 2012-08-30 08:29 +1000 |
|---|---|
| From | Cameron Simpson <cs@zip.com.au> |
| Subject | Re: Sending USB commands with Python |
| References | <eq3t38542luf3dmula4k92islpa9lh0opk@invalid.netcom.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3946.1346279381.4697.python-list@python.org> (permalink) |
On 29Aug2012 17:57, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
| On Wed, 29 Aug 2012 14:21:30 -0700 (PDT), "Adam W."
| <AWasilenko@gmail.com> declaimed the following in
| gmane.comp.python.general:
| > You are correct about the 2 being the number of bytes written. However when I issue a read command I get:
| >
| > >>> ep.write('\x1BA')
| > 4
|
| That's interesting -- as if each byte you send is expanding into a
| pair of bytes.
UTF-16? ISTR that Windows often uses big endian UTF-16 for filenames and
text data; could there be some default encoding in ep.write getting in
your way?
Disclaimer: I'm really not a Windows guy.
--
Cameron Simpson <cs@zip.com.au>
There are too many people now for everyone to be entitled to his own opinion.
- Dr. Handelman
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Sending USB commands with Python Cameron Simpson <cs@zip.com.au> - 2012-08-30 08:29 +1000
csiph-web