Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Terry Reedy
On 9/18/2016 2:45 AM, Steven D'Aprano wrote: It doesn't matter whether you call them "accent" like most people do, or "diacritics" as linguists do. I am a native born American and I have never before heard or seen non-accent diacritic marks called 'accents'. Accents indicate stress. Other d

Re: how to automate java application in window using python

2016-09-18 Thread Matt Wheeler
On Thu, 15 Sep 2016, 08:12 meInvent bbird, wrote: > how to automate java application in window using python > > 1. scroll up or down of scroll bar > 2. click button > 3. type text in textbox > I would recommend having a look at pywinauto https://github.com/pywinauto/pywinauto It presents a very

Re: how to automate java application in window using python

2016-09-18 Thread Paul Rubin
Lawrence D’Oliveiro writes: >> The term "automation" is frequently used in the Windows world to mean >> programming something that you would otherwise do manually through a GUI... > Which is not something that GUIs are designed for. Therefore it is at > best an unreliable exercise, at worst futile

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Christian Gollwitzer
Am 17.09.16 um 23:19 schrieb Thomas 'PointedEars' Lahn: Peng Yu wrote: Hi, I want to convert strings in which the characters with accents should be converted to the ones without accents. Why? […] ./main.py Förstemann AFAIK, “ä”, “ö”, and “ü” are not accented characters in any natural lang

Re: how to automate java application in window using python

2016-09-18 Thread Lawrence D’Oliveiro
On Sunday, September 18, 2016 at 9:25:53 PM UTC+12, Paul Rubin wrote: > > Lawrence D’Oliveiro writes: > >>> The term "automation" is frequently used in the Windows world to mean >>> programming something that you would otherwise do manually through a GUI... >> >> Which is not something that GUIs ar

Re: how to automate java application in window using python

2016-09-18 Thread Christian Gollwitzer
Am 18.09.16 um 12:03 schrieb Lawrence D’Oliveiro: Like I said, trying to automate a GUI is a waste of time. GUIs are designed for humans, not computers, to use. You don't always have a choice. Consider batch-processing a number of images (say, 30,000 movie frames) using a proprietary effect fi

Functions Of Functions Returning Functions

2016-09-18 Thread Lawrence D’Oliveiro
The less code you have to write, the better. Less code means less maintenance, and fewer opportunities for bugs. Here is an example of how I was able to knock a few hundred lines off the size of a Python module. When I was writing my Python wrapper for HarfBuzz , the

Re: how to automate java application in window using python

2016-09-18 Thread Lawrence D’Oliveiro
On Sunday, September 18, 2016 at 10:13:41 PM UTC+12, Christian Gollwitzer wrote: > > Am 18.09.16 um 12:03 schrieb Lawrence D’Oliveiro: > >> Like I said, trying to automate a GUI is a waste of time. GUIs are >> designed for humans, not computers, to use. > > You don't always have a choice. Consider

Re: how to automate java application in window using python

2016-09-18 Thread Paul Rubin
Lawrence D’Oliveiro writes: >> lot of ways: OLE and COM objects back in the day, .NET currently, > None of the different ways of which are either a) compatible or b) > widely supported. Particularly not in Java, as the OP was asking. I'm quite sure there are Java bindings for all those protocols.

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Martin Schöön
Den 2016-09-17 skrev Marko Rauhamaa : > Martin Schöön : >> Related anecdote from Phoenix AZ. By now you have noticed my family >> name: Schöön. On airline tickets and boarding passes in the U.S. it >> gets spelled Schoeoen. > > Do Swedes do that German thing, too? If you have to write Finnish > wit

Re: how to automate java application in window using python

2016-09-18 Thread Christian Gollwitzer
Am 18.09.16 um 12:26 schrieb Lawrence D’Oliveiro: On Sunday, September 18, 2016 at 10:13:41 PM UTC+12, Christian Gollwitzer wrote: Am 18.09.16 um 12:03 schrieb Lawrence D’Oliveiro: Like I said, trying to automate a GUI is a waste of time. GUIs are designed for humans, not computers, to use.

Re: Functions Of Functions Returning Functions

2016-09-18 Thread Steve D'Aprano
On Sun, 18 Sep 2016 08:28 pm, Lawrence D’Oliveiro wrote: > This shows the power of functions as first-class objects. The concept > is older than object orientation, and is often left out of > object-oriented languages. I think Python benefits from the fact that > it had functions before it had cla

Re: how to automate java application in window using python

2016-09-18 Thread Steve D'Aprano
On Sun, 18 Sep 2016 08:42 pm, Paul Rubin wrote: > Lawrence D’Oliveiro writes: >>> lot of ways: OLE and COM objects back in the day, .NET currently, >> None of the different ways of which are either a) compatible or b) >> widely supported. Particularly not in Java, as the OP was asking. > > I'm q

Re: Is there something similar to `set -v` of bash in python

2016-09-18 Thread Ned Batchelder
On Saturday, September 17, 2016 at 11:09:04 PM UTC-4, Peng Yu wrote: > The manual says the following. > > "The trace function is invoked (with event set to 'call') whenever a > new local scope is entered; it should return a reference to a local > trace function to be used that scope, or None if th

Re: Is there something similar to `set -v` of bash in python

2016-09-18 Thread Peng Yu
On Sunday, September 18, 2016, Ned Batchelder wrote: > On Saturday, September 17, 2016 at 11:09:04 PM UTC-4, Peng Yu wrote: > > The manual says the following. > > > > "The trace function is invoked (with event set to 'call') whenever a > > new local scope is entered; it should return a reference

Serialising an 8x8x8 array of pygame sounds

2016-09-18 Thread kerbingamer376
Is it possible to serialise an 8x8x8 array of pygame.mixer.Sound objects, so they stay at the same places in the array, but in a format that can be pickled, and then the opposite (read from that back to pygame.mixer.Sound objects)? Thanks (copied from stackoverflow question @ https://is.gd/JDtU

Re: Is there something similar to `set -v` of bash in python

2016-09-18 Thread Ned Batchelder
On Sunday, September 18, 2016 at 8:29:38 AM UTC-4, Peng Yu wrote: > On Sunday, September 18, 2016, Ned Batchelder wrote: > > > On Saturday, September 17, 2016 at 11:09:04 PM UTC-4, Peng Yu wrote: > > > The manual says the following. > > > > > > "The trace function is invoked (with event set to 'c

Re: Serialising an 8x8x8 array of pygame sounds

2016-09-18 Thread Steve D'Aprano
On Sun, 18 Sep 2016 11:20 pm, kerbingamer376 wrote: > Is it possible to serialise an 8x8x8 array of pygame.mixer.Sound objects, > so they stay at the same places in the array, but in a format that can be > pickled, and then the opposite (read from that back to pygame.mixer.Sound > objects)? Can y

Re: how to automate java application in window using python

2016-09-18 Thread Chris Angelico
On Sun, Sep 18, 2016 at 8:03 PM, Lawrence D’Oliveiro wrote: > Like I said, trying to automate a GUI is a waste of time. GUIs are designed > for humans, not computers, to use. Okay, then. Come up with a way to end-to-end-test a GUI application without some form of GUI automation. Sometimes, comi

Re: Serialising an 8x8x8 array of pygame sounds

2016-09-18 Thread kerbingamer376
On Sunday, September 18, 2016 at 2:59:10 PM UTC+1, Steve D'Aprano wrote: > On Sun, 18 Sep 2016 11:20 pm, kerbingamer376 wrote: > > > Is it possible to serialise an 8x8x8 array of pygame.mixer.Sound objects, > > so they stay at the same places in the array, but in a format that can be > > pickled,

Re: Serialising an 8x8x8 array of pygame sounds

2016-09-18 Thread Peter Otten
kerbingamer376 wrote: > On Sunday, September 18, 2016 at 2:59:10 PM UTC+1, Steve D'Aprano wrote: >> On Sun, 18 Sep 2016 11:20 pm, kerbingamer376 wrote: >> >> > Is it possible to serialise an 8x8x8 array of pygame.mixer.Sound >> > objects, so they stay at the same places in the array, but in a for

Re: how to automate java application in window using python

2016-09-18 Thread Paul Rubin
Steve D'Aprano writes: >> Automation doesn't simulate button presses > Rather than saying that it *doesn't*, it might be better to say that it > doesn't *necessarily* simulate button presses. I'm no Windoze guru but I always understood Automation (sometimes written with a capital A) to refer to a

Re: How to convert 'ö' to 'oe' or 'o' (or other si =?utf-8?Q?milar_things)_in_a_string??=

2016-09-18 Thread Thorsten Kampe
* Terry Reedy (Sun, 18 Sep 2016 03:51:40 -0400) > > On 9/18/2016 2:45 AM, Steven D'Aprano wrote: > > > It doesn't matter whether you call them "accent" like most people do, or > > "diacritics" as linguists do. > > I am a native born American and I have never before heard or seen > non-accent di

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Marko Rauhamaa
Thorsten Kampe : > * Terry Reedy (Sun, 18 Sep 2016 03:51:40 -0400) >> On 9/18/2016 2:45 AM, Steven D'Aprano wrote: >> > It doesn't matter whether you call them "accent" like most people do, or >> > "diacritics" as linguists do. >> >> I am a native born American and I have never before heard or se

Re: how to automate java application in window using python

2016-09-18 Thread Michael Torrie
On 09/18/2016 04:03 AM, Lawrence D’Oliveiro wrote: > Like I said, trying to automate a GUI is a waste of time. GUIs are > designed for humans, not computers, to use. Well then we have a huge problem. Especially for users who are visually-impaired. Fortunately almost all GUIs (Windows, Linux, and

Re: how to automate java application in window using python

2016-09-18 Thread Lawrence D’Oliveiro
On Monday, September 19, 2016 at 2:12:14 AM UTC+12, Chris Angelico wrote: > > On Sun, Sep 18, 2016 at 8:03 PM, Lawrence D’Oliveiro wrote: > >> Like I said, trying to automate a GUI is a waste of time. GUIs are designed >> for humans, not computers, to use. > > Okay, then. Come up with a way to end

Re: how to automate java application in window using python

2016-09-18 Thread Lawrence D’Oliveiro
On Monday, September 19, 2016 at 8:00:43 AM UTC+12, Michael Torrie wrote: > > On 09/18/2016 04:03 AM, Lawrence D’Oliveiro wrote: > >> Like I said, trying to automate a GUI is a waste of time. GUIs are >> designed for humans, not computers, to use. > > Well then we have a huge problem. Especially

Re: how to automate java application in window using python

2016-09-18 Thread Lawrence D’Oliveiro
On Sunday, September 18, 2016 at 11:02:57 PM UTC+12, Christian Gollwitzer wrote: > > Am 18.09.16 um 12:26 schrieb Lawrence D’Oliveiro: > >> Considering the power available in Free Software toolkits like >> ImageMagick, G’MIC and so on, not to mention libraries accessible >> from Python itself, let

Re: how to automate java application in window using python

2016-09-18 Thread Ned Batchelder
On Sunday, September 18, 2016 at 6:45:32 PM UTC-4, Lawrence D’Oliveiro wrote: > A CLI gives the user power over the computer. While a GUI is a great way to > give the computer, and proprietary software companies, power over the user. This is completely beside the point of the original question.

Re: how to automate java application in window using python

2016-09-18 Thread Michael Torrie
On 09/18/2016 02:22 PM, Lawrence D’Oliveiro wrote: > I know one blind computer user who is quite capable with the command > line, and who has little fondness for GUI apps. You should see how > quickly he works... Good for him. This is very good that there are tools like that that he and many othe

Re: how to automate java application in window using python

2016-09-18 Thread Lawrence D’Oliveiro
On Monday, September 19, 2016 at 11:32:25 AM UTC+12, Michael Torrie wrote: > One I've used is AutoIt. Like I said, this kind of thing can never work reliably... -- https://mail.python.org/mailman/list

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread not1xor1
Il 18/09/2016 08:45, Steven D'Aprano ha scritto: integral part of the letter, like the horizonal stroke in English t or the vertical bar in English p and b, and in some languages they are modifiers, well... that is the Latin alphabet English has no T, P or B (or any other character) but is jus

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Steven D'Aprano
On Sunday 18 September 2016 17:51, Terry Reedy wrote: > On 9/18/2016 2:45 AM, Steven D'Aprano wrote: > >> It doesn't matter whether you call them "accent" like most people do, or >> "diacritics" as linguists do. > > I am a native born American and I have never before heard or seen > non-accent d

Re: how to automate java application in window using python

2016-09-18 Thread Christian Gollwitzer
Am 19.09.16 um 00:45 schrieb Lawrence D’Oliveiro: On Sunday, September 18, 2016 at 11:02:57 PM UTC+12, Christian Gollwitzer wrote: Am 18.09.16 um 12:26 schrieb Lawrence D’Oliveiro: Considering the power available in Free Software toolkits like ImageMagick, G’MIC and so on, not to mention libr

Re: Functions Of Functions Returning Functions

2016-09-18 Thread dieter
Lawrence D’Oliveiro writes: > The less code you have to write, the better. Less code means less > maintenance, and fewer opportunities for bugs. While I agree with you in general, sometimes less code can be harder to maintain (when it is more difficult to understand). Some time ago, we had a (qu