Re: [Tutor] regex: matching unicode

2012-12-24 Thread eryksun
On Mon, Dec 24, 2012 at 2:51 AM, Albert-Jan Roskam wrote: > > First, check if the first character is a (unicode) letter You can use unicode.isalpha, with a caveat. On a narrow build isalpha fails for supplementary planes. That's about 50% of all alphabetic characters, +/- depending on the version

Re: [Tutor] Use python to read data from mouse but not move cursor

2012-12-24 Thread eryksun
On Mon, Dec 24, 2012 at 8:39 PM, wang yong wrote: > > I am new to Python. I am trying to use win32api to read out mouse movement > from an additional mouse attached to my compputer. But, I do not want this > mouse to move my cursor. You could try using PyUSB with libusb-win32. The latter has a GU

[Tutor] Use python to read data from mouse but not move cursor

2012-12-24 Thread wang yong
Hi Tutors, I am new to Python. I am trying to use win32api to read out mouse movement from an additional mouse attached to my compputer. But, I do not want this mouse to move my cursor. So, do you guys have any suggestions or codes for this task! Really appreciate it! Thanks for the help. Yong ___

Re: [Tutor] For Loop Question

2012-12-24 Thread Alan Gauld
On 24/12/12 16:31, bob gailer wrote: On 12/23/2012 9:02 PM, Alan Gauld wrote: You do realize that self is only defined inside a method? Perhaps. self is just another name - it could be "just" a variable, outside any method. True enough, but given the usage "self.A" it looks pretty certain

Re: [Tutor] For Loop Question

2012-12-24 Thread bob gailer
On 12/23/2012 9:02 PM, Alan Gauld wrote: You do realize that self is only defined inside a method? Perhaps. self is just another name - it could be "just" a variable, outside any method. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor mailli