Re: Unicode failure

2015-12-05 Thread eryk sun
On Sat, Dec 5, 2015 at 4:03 PM, Terry Reedy wrote: > On 12/5/2015 2:44 PM, Random832 wrote: >> As someone else pointed out, I meant that as a list of codepages >> which support all Unicode codepoints, not a list of codepoints >> not supported by Tk's UCS-2. Sorry, I assumed everyone knew >> offha

Re: Question about split method

2015-12-05 Thread Erik
On 05/12/15 20:27, Mark Lawrence wrote: On 05/12/2015 19:51, Robert wrote: On Saturday, December 5, 2015 at 2:29:28 PM UTC-5, Peter Pearson wrote: On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: [snip] ss0="1, 2, 4, 8, 16".split(", ") [sni

[RELEASED] Python 2.7.11

2015-12-05 Thread Benjamin Peterson
Python 2.7.11, the latest bugfix release of the Python 2.7 series, is now available for download at https://www.python.org/downloads/release/python-2711/ Thank you as always to Steve Dower and Ned Deily, who build our binaries. Enjoy the rest of the year, Benjamin -- https://mail.python.org/

Re: Unicode failure

2015-12-05 Thread Terry Reedy
On 12/5/2015 2:44 PM, Random832 wrote: On 2015-12-05, Terry Reedy wrote: On 12/4/2015 10:22 PM, Random832 wrote: Well, any bar 1200, 1201, 12000, 12001, 65000, 65001, and 54936. Test before you post. As someone else pointed out, I meant that as a list of codepages which support all Unicode

Re: Question about split method

2015-12-05 Thread Mark Lawrence
On 05/12/2015 19:51, Robert wrote: On Saturday, December 5, 2015 at 2:29:28 PM UTC-5, Peter Pearson wrote: On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: [snip] ss0="1, 2, 4, 8, 16".split(", ") [snip] Try help(str.split) Or if, like me,

Re: Question about split method

2015-12-05 Thread Robert
On Saturday, December 5, 2015 at 2:29:28 PM UTC-5, Peter Pearson wrote: > On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: > > On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: > [snip] > >> ss0="1, 2, 4, 8, 16".split(", ") > [snip] > > Try help(str.split) > > Or if, like me, you can't remember t

Re: filter a list of strings

2015-12-05 Thread Peter Pearson
On Thu, 3 Dec 2015 10:27:19 +0100, wrote: [snip] > I often saw constructions like this > x for x in y if ... > But I don't understand that combination of the Python keywords (for, > in, if) I allready know. It is to complex to imagine what there really > happen. Don't give up! List comprehensi

Re: Unicode failure

2015-12-05 Thread Random832
On 2015-12-05, Terry Reedy wrote: > On 12/4/2015 10:22 PM, Random832 wrote: >> Well, any bar 1200, 1201, 12000, 12001, 65000, 65001, and 54936. > > Test before you post. As someone else pointed out, I meant that as a list of codepages which support all Unicode codepoints, not a list of codepoints

Re: Question about split method

2015-12-05 Thread Peter Pearson
On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly wrote: > On Wed, Dec 2, 2015 at 2:37 PM, Robert wrote: [snip] >> ss0="1, 2, 4, 8, 16".split(", ") [snip] > Try help(str.split) Or if, like me, you can't remember the magic word "str", ask: help("".split) and you know you're asking about the right "s

Re: Unicode failure (Solved)

2015-12-05 Thread D'Arcy J.M. Cain
On Fri, 4 Dec 2015 18:28:22 -0500 Terry Reedy wrote: > Tk widgets, and hence IDLE windows, will print any character from > \u to \u without raising, even if the result is blank or �. > Higher codepoints fail, but allowing the entire BMP is better than > any Windows codepage. Thanks to all

Re: increment/decrement operators

2015-12-05 Thread BartC
On 05/12/2015 15:43, Terry Reedy wrote: On 12/5/2015 9:41 AM, D'Arcy J.M. Cain wrote: On Sat, 5 Dec 2015 13:56:47 +0100 Robin Koch wrote: x += y works. (Well, it should.) It does, even on objects other than numbers. x = "abc" y = "def" x += y x 'abcdef' x++ doesn't. No but it's just a

Re: increment/decrement operators

2015-12-05 Thread Terry Reedy
On 12/5/2015 9:41 AM, D'Arcy J.M. Cain wrote: On Sat, 5 Dec 2015 13:56:47 +0100 Robin Koch wrote: x += y works. (Well, it should.) It does, even on objects other than numbers. x = "abc" y = "def" x += y x 'abcdef' x++ doesn't. No but it's just a special case of the above. x = 1 x +=

Re: increment/decrement operators

2015-12-05 Thread D'Arcy J.M. Cain
On Sat, 5 Dec 2015 13:56:47 +0100 Robin Koch wrote: > x += y works. (Well, it should.) It does, even on objects other than numbers. >>> x = "abc" >>> y = "def" >>> x += y >>> x 'abcdef' > x++ doesn't. No but it's just a special case of the above. >>> x = 1 >>> x += 1 >>> x 2 -- D'Arcy J.M.

Re: increment/decrement operators

2015-12-05 Thread Tony van der Hoff
On 05/12/15 12:56, Robin Koch wrote: Am 05.12.2015 um 13:40 schrieb Tony van der Hoff: Hi, I'm a relative newbie to python, and this NG, but it's certainly growing on me. One thing I'm missing is the increment/decrement operator from C, ie x++, and its ilk. Likewise x += y. is there any way o

Re: Unicode failure

2015-12-05 Thread eryk sun
On Sat, Dec 5, 2015 at 12:10 AM, Chris Angelico wrote: > On Sat, Dec 5, 2015 at 5:06 PM, Terry Reedy wrote: >> On 12/4/2015 10:22 PM, Random832 wrote: >>> >>> On 2015-12-04, Terry Reedy wrote: Tk widgets, and hence IDLE windows, will print any character from \u to \u witho

Re: increment/decrement operators

2015-12-05 Thread Robin Koch
Am 05.12.2015 um 13:40 schrieb Tony van der Hoff: Hi, I'm a relative newbie to python, and this NG, but it's certainly growing on me. One thing I'm missing is the increment/decrement operator from C, ie x++, and its ilk. Likewise x += y. is there any way of doing this in Python? Quick answer

increment/decrement operators

2015-12-05 Thread Tony van der Hoff
Hi, I'm a relative newbie to python, and this NG, but it's certainly growing on me. One thing I'm missing is the increment/decrement operator from C, ie x++, and its ilk. Likewise x += y. is there any way of doing this in Python? TIA, Tony -- https://mail.python.org/mailman/listinfo/python

Python 3.4 + pyUSB 1.0 + libusb-win32 1.2.6.0, what happens?

2015-12-05 Thread jfong
I am new to python. I had a USB HID device which behavior is that the host send a 64 bytes commands to it, after complete the execution of this commands it send back a 64 bytes status to the host, so the host can check the status and decide the next step. When I run it under Win7 with SwiftFort

Re: Unicode failure

2015-12-05 Thread Oscar Benjamin
On 5 Dec 2015 06:10, "D'Arcy J.M. Cain" wrote: > > On Fri, 4 Dec 2015 18:28:22 -0500 > Terry Reedy wrote: > > On 12/4/2015 1:07 PM, D'Arcy J.M. Cain wrote: > > > I thought that going to Python 3.4 would solve my Unicode issues > > > > Within Python itself, that should be mostly true. As soon as

Re: msvcr100.dll missing ... error started after Windows 10 update to 10586.17

2015-12-05 Thread Christian Gollwitzer
Am 05.12.15 um 00:26 schrieb Glenn Linderman: My wife's 64-bit Win8 home machine has 32-bit Python 3.3 installed. Then it upgraded to Win 8.1. Then I upgraded it to Win 10. Then I upgraded it to Threshold 2. It gets regular automatic updates also, like the one last night to build 10586.17. That