Universal compiler that runs Java, Ruby, C++, and Python in a single VM

2021-03-16 Thread James Lu
It's called Oracle's Truffle. Truffle runs all those languages with an autogenerated JIT. This is my response to the neos drama. -- https://mail.python.org/mailman/listinfo/python-list

Re: Question from a "java background" developer

2020-09-22 Thread David Lowry-Duda
On Tue, Sep 22, 2020 at 11:13:50AM +0200, Agnese Camellini wrote: > I mean do i have a keyword to obtain all the methods and the > attributes of > a class in python? In addition to the `dir()` that others have mentioned, I'll add that developing interactively is very common, especially in ipytho

Re: Question from a "java background" developer

2020-09-22 Thread Dieter Maurer
Chris Angelico wrote at 2020-9-22 19:25 +1000: >On Tue, Sep 22, 2020 at 7:15 PM Agnese Camellini > wrote: >> >> Hello to everyone, I have a question. I come from a Java background and I >> would like to develop in python but i'm wondering: is there anything, in >

Re: Question from a "java background" developer

2020-09-22 Thread Mats Wichmann
On 9/22/20 3:25 AM, Chris Angelico wrote: > On Tue, Sep 22, 2020 at 7:15 PM Agnese Camellini > wrote: >> >> Hello to everyone, I have a question. I come from a Java background and I >> would like to develop in python but i'm wondering: is there anything, in >> p

Re: Question from a "java background" developer

2020-09-22 Thread Chris Angelico
On Tue, Sep 22, 2020 at 7:15 PM Agnese Camellini wrote: > > Hello to everyone, I have a question. I come from a Java background and I > would like to develop in python but i'm wondering: is there anything, in > python, like Java "reflection"? > I mean do i have a key

Question from a "java background" developer

2020-09-22 Thread Agnese Camellini
Hello to everyone, I have a question. I come from a Java background and I would like to develop in python but i'm wondering: is there anything, in python, like Java "reflection"? I mean do i have a keyword to obtain all the methods and the attributes of a class in python? Thanks to

Re: Java JMS and python

2020-04-14 Thread Julio Oña
> >> On Tue, Apr 14, 2020 at 11:20 AM Sam wrote: > >>> > >>> Hi, > >>> > >>> We are not a java shop and we are trying to interface with an API that > >>> is "JMS only". We asked if it supported activeMQ or STOMP and they >

Re: Java JMS and python

2020-04-13 Thread Sam
at 11:20 AM Sam wrote: Hi, We are not a java shop and we are trying to interface with an API that is "JMS only". We asked if it supported activeMQ or STOMP and they replied that it is Sun JMS only. So what does that mean if we want to communicate with it from py

Re: Java JMS and python

2020-04-13 Thread Julio Oña
> > > > Hi, > > > > We are not a java shop and we are trying to interface with an API that > > is "JMS only". We asked if it supported activeMQ or STOMP and they > > replied that it is Sun JMS only. So what does that mean if we want to > >

Re: Java JMS and python

2020-04-13 Thread Chris Angelico
On Tue, Apr 14, 2020 at 11:20 AM Sam wrote: > > Hi, > > We are not a java shop and we are trying to interface with an API that > is "JMS only". We asked if it supported activeMQ or STOMP and they > replied that it is Sun JMS only. So what

Java JMS and python

2020-04-13 Thread Sam
Hi, We are not a java shop and we are trying to interface with an API that is "JMS only". We asked if it supported activeMQ or STOMP and they replied that it is Sun JMS only. So what does that mean if we want to communicate with it from python or similar? Curious

Re: Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread Gregory Ewing
rkartun...@yahoo.com wrote: This code does successfully read in the bytes until there are around 2000-3000 bytes left to be read and then it seems to freeze on the int bytes_read = in.read(msg_buff, 0, msg_buff.length) line. This happens because you're trying to read more bytes than the sender

Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread rkartunova--- via Python-list
ll of this works without reporting any errors. On android app (java): When the app receives the "?start" string, it then uses a Buffered Reader (which is what I used to read the string data I had transferred to the app successfully earlier) to read the size of the image byte array. Then

Re: Why Python has no equivalent of JDBC of Java?

2019-06-16 Thread Peter J. Holzer
complicated. The fact is that Oracle chose to write a pure-Java implementation of their driver which is really easy to install (although it might have some limitations) but they did no such thing for other languages - plus their license terms make it hard to bundle their driver, so everybody ne

Re: Why Python has no equivalent of JDBC of Java?

2019-06-16 Thread Marco Sulla via Python-list
s is the more logical answer to my doubts. On Tue, 21 May 2019 at 18:17, Dennis Lee Bieber wrote: > It wouldn't surprise me to find that they include the JDBC > driver layer for Oracle database in the Java package} It would surprise _me_. Oracle did not even uploaded ojdbc to the ma

Re: Why Python has no equivalent of JDBC of Java?

2019-05-26 Thread Christian Gollwitzer
Am 21.05.19 um 14:27 schrieb Adriaan Renting: Java was meant to be generic, run anywhere and abstract and hide differences in its underlying infrastructure. This has led to the Java VM, and also JDBC I guess. Python was more of a script interpreted C-derivative, much closer to the bare metal

Re: Why Python has no equivalent of JDBC of Java?

2019-05-26 Thread Bischoop
On 2019-05-19, Marco Sulla wrote: >blablabla >blablablalbla >blablalblalbalblabla There's no perfect language mate, in some one is easier in other not, normal surprised you notice it so late. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why Python has no equivalent of JDBC of Java?

2019-05-21 Thread Paul Moore
On Tue, 21 May 2019 at 13:50, Adriaan Renting wrote: > > > I think it's partially a design philosophy difference. > > Java was meant to be generic, run anywhere and abstract and hide > differences in its underlying infrastructure. This has led to the Java > VM, and als

Re: Why Python has no equivalent of JDBC of Java?

2019-05-21 Thread Adriaan Renting
I think it's partially a design philosophy difference. Java was meant to be generic, run anywhere and abstract and hide differences in its underlying infrastructure. This has led to the Java VM, and also JDBC I guess. Python was more of a script interpreted C-derivative, much closer t

Re: Why Python has no equivalent of JDBC of Java?

2019-05-20 Thread Chris Angelico
On Tue, May 21, 2019 at 11:10 AM Andrew Z wrote: > > Exactly right. Im not sure why Marco is wondering about native drivers not > to be a part of python module (for oracle). > Id be very unhappy, if a python module come with a native drivers for > something as complex as a database. I wouldn't be

Re: Why Python has no equivalent of JDBC of Java?

2019-05-20 Thread Andrew Z
proprietary, the original poster should probably > not be surprised that a special driver install is required. I assume > it's also required for JDBC also, but since Java is owned by Oracle, > they probably install such things automatically. > > > > > On Mon, May

Re: Why Python has no equivalent of JDBC of Java?

2019-05-20 Thread Chris Angelico
On Tue, May 21, 2019 at 8:25 AM Andrew Z wrote: > > What does 249 specification mention about drivers? > Nothing. PEP 249 defines how a Python app communicates with the database module. For instance: import psycopg2 db = psycopg2.connect("...") with db, db.cursor() as cur: cur.execute("selec

Re: Why Python has no equivalent of JDBC of Java?

2019-05-20 Thread Michael Torrie
ary, the original poster should probably not be surprised that a special driver install is required. I assume it's also required for JDBC also, but since Java is owned by Oracle, they probably install such things automatically. > > On Mon, May 20, 2019, 17:39 Marco Sulla via Python-l

Re: Why Python has no equivalent of JDBC of Java?

2019-05-20 Thread Andrew Z
What does 249 specification mention about drivers? On Mon, May 20, 2019, 17:39 Marco Sulla via Python-list < python-list@python.org> wrote: > On Mon, 20 May 2019 at 17:32, Thomas Jollans wrote: > > > Python has a the "Python Database API" (DB API 2.0) > > https://www.python.org/dev/peps/pep-0249

Re: Why Python has no equivalent of JDBC of Java?

2019-05-20 Thread Marco Sulla via Python-list
On Mon, 20 May 2019 at 17:32, Thomas Jollans wrote: > Python has a the "Python Database API" (DB API 2.0) > https://www.python.org/dev/peps/pep-0249/ > So why Oracle need instantclient for using cx_Oracle? They say they use DB-API: > *cx_Oracle* is a Python extension module that enables access

Re: Why Python has no equivalent of JDBC of Java?

2019-05-20 Thread Thomas Jollans
On 19/05/2019 14.27, Marco Sulla via Python-list wrote: > I programmed in Python 2 and 3 for many years, and I find it a fantastic > language. > > Now I'm programming in Java by m ore than 2 years, and even if I found its > code much more boilerplate, I admit that JDBC is fant

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
memory may play tricks on me. On Sun, May 19, 2019, 17:44 Chris Angelico wrote: > On Mon, May 20, 2019 at 7:34 AM Marco Sulla via Python-list > wrote: > > > > I programmed in Python 2 and 3 for many years, and I find it a fantastic > > language. > > > > Now I&#

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
Marco, You clearly know more about python/java universe than i do. But im infinitely thankful to cx team for putting out the package. Feature and performance wise , even with non supported oracle timesten, it was fantastic. Id always go after "native" vs jdbc. But i understand that mo

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 7:34 AM Marco Sulla via Python-list wrote: > > I programmed in Python 2 and 3 for many years, and I find it a fantastic > language. > > Now I'm programming in Java by m ore than 2 years, and even if I found its > code much more boilerplate, I admit

Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Marco Sulla via Python-list
I programmed in Python 2 and 3 for many years, and I find it a fantastic language. Now I'm programming in Java by m ore than 2 years, and even if I found its code much more boilerplate, I admit that JDBC is fantastic. One example over all: Oracle. If you want to access an Oracle DB from P

Re: moving to Python from Java/C++/C

2018-06-26 Thread Chris Angelico
omp. science >> academic studies. >> How do you recommend studying it? As mentioned in the headline, I already >> know Java, C++ and C. >> > I recommend https://wiki.python.org/moin/BeginnersGuide/Programmers > > Full disclosure: I wrote the "Intro to Python" s

Re: moving to Python from Java/C++/C

2018-06-26 Thread Dan Stromberg
entioned in the headline, I already > know Java, C++ and C. > I recommend https://wiki.python.org/moin/BeginnersGuide/Programmers Full disclosure: I wrote the "Intro to Python" slide deck. And yes, in 2018, you probably should study Python 3, not Python 2. --- BBBS/Li6 v4.10 Toy-3

Re: moving to Python from Java/C++/C

2018-06-26 Thread edmondo giovannozzi
ademic studies. > How do you recommend studying it? As mentioned in the headline, I already know Java, C++ and C. > Thanks! Well, I have used the tutorial at www.python.org. Python 3 of course. --- BBBS/Li6 v4.10 Toy-3 * Origin: Prism bbs (1:261/38) -- https://mail.python.org/mailman/listinfo/python-list

moving to Python from Java/C++/C

2018-06-26 Thread itaiyz97
From: itaiy...@gmail.com Hey, I already have quite an experience in programming, and I wish to study Python as well. I need to study it before I continue with my comp. science academic studies. How do you recommend studying it? As mentioned in the headline, I already know Java, C++ and C. Thanks

Re: moving to Python from Java/C++/C

2018-06-25 Thread Chris Angelico
cademic studies. >> How do you recommend studying it? As mentioned in the headline, I already >> know Java, C++ and C. >> > I recommend https://wiki.python.org/moin/BeginnersGuide/Programmers > > Full disclosure: I wrote the "Intro to Python" slide deck. > >

Re: moving to Python from Java/C++/C

2018-06-25 Thread Dan Stromberg
line, I already > know Java, C++ and C. > I recommend https://wiki.python.org/moin/BeginnersGuide/Programmers Full disclosure: I wrote the "Intro to Python" slide deck. And yes, in 2018, you probably should study Python 3, not Python 2. -- https://mail.python.org/mailman/listinfo/python-list

Re: moving to Python from Java/C++/C

2018-06-25 Thread edmondo . giovannozzi
studying it? As mentioned in the headline, I already > know Java, C++ and C. > Thanks! Well, I have used the tutorial at www.python.org. Python 3 of course. -- https://mail.python.org/mailman/listinfo/python-list

moving to Python from Java/C++/C

2018-06-25 Thread itaiyz97
Hey, I already have quite an experience in programming, and I wish to study Python as well. I need to study it before I continue with my comp. science academic studies. How do you recommend studying it? As mentioned in the headline, I already know Java, C++ and C. Thanks! -- https

Java Programming in Delhi | Java Training Institute in Delhi

2018-01-23 Thread Anu. SSDN
Learn All The Essential Java Keywords, Operators, Statements, And Expressions. SSDN Technologies is the premier Java training in Delhi, India. Highly Qualified Trainers are available to assist you. Enroll Now! Read More:- http://www.ssdntech.com/Java-training.aspx -- https://mail.python.org

Re: how to automate java application in window using python

2016-09-29 Thread Michael Torrie
On 09/29/2016 01:18 PM, Lawrence D’Oliveiro wrote: > On Thursday, September 29, 2016 at 11:46:59 PM UTC+13, Ned Batchelder wrote: >> This is just getting rude. Let's please drop it. > > Do you have anything substantive to contribute? He's already contributed far more to this list, and to Python,

Re: how to automate java application in window using python

2016-09-29 Thread Steve D'Aprano
On Fri, 30 Sep 2016 05:18 am, Lawrence D’Oliveiro wrote: > On Thursday, September 29, 2016 at 11:46:59 PM UTC+13, Ned Batchelder > wrote: >> This is just getting rude. Let's please drop it. > > Do you have anything substantive to contribute? Infinitely more than you. *plonk* -- Steve “Che

Re: how to automate java application in window using python

2016-09-29 Thread Chris Angelico
On Fri, Sep 30, 2016 at 5:18 AM, Lawrence D’Oliveiro wrote: > On Thursday, September 29, 2016 at 11:46:59 PM UTC+13, Ned Batchelder wrote: >> This is just getting rude. Let's please drop it. > > Do you have anything substantive to contribute? Yes. He contributed the guiding hand of "please keep

Re: how to automate java application in window using python

2016-09-29 Thread Lawrence D’Oliveiro
On Thursday, September 29, 2016 at 11:46:59 PM UTC+13, Ned Batchelder wrote: > This is just getting rude. Let's please drop it. Do you have anything substantive to contribute? (... crickets ...) -- https://mail.python.org/mailman/listinfo/python-list

Re: how to automate java application in window using python

2016-09-29 Thread Ned Batchelder
On Wednesday, September 28, 2016 at 8:00:09 PM UTC-4, Lawrence D’Oliveiro wrote: > On Thursday, September 29, 2016 at 11:54:46 AM UTC+13, Emile van Sebille > wrote: > > Which worked for me! You should try it. Sloppy programming has always > > been unreliable. > > So it is clear you don’t have an

Re: how to automate java application in window using python

2016-09-28 Thread Lawrence D’Oliveiro
On Thursday, September 29, 2016 at 11:54:46 AM UTC+13, Emile van Sebille wrote: > Which worked for me! You should try it. Sloppy programming has always > been unreliable. So it is clear you don’t have an answer to the OP’s question after all. Just some vague, meaningless generalities. -- https:

Re: how to automate java application in window using python

2016-09-28 Thread Emile van Sebille
On 09/28/2016 02:52 PM, Lawrence D’Oliveiro wrote: On Thursday, September 29, 2016 at 4:57:10 AM UTC+13, Emile van Sebille wrote: My point was that it is possible to automate windows reliably as long as the programming is robust. Sounds like circular reasoning. Which worked for me! You shou

Re: how to automate java application in window using python

2016-09-28 Thread Lawrence D’Oliveiro
On Thursday, September 29, 2016 at 4:57:10 AM UTC+13, Emile van Sebille wrote: > My point was that it is possible to automate windows reliably as long as the > programming is robust. Sounds like circular reasoning. -- https://mail.python.org/mailman/listinfo/python-list

Re: how to automate java application in window using python

2016-09-28 Thread Emile van Sebille
On 09/23/2016 05:02 PM, Lawrence D’Oliveiro wrote: On Thursday, September 22, 2016 at 8:34:20 AM UTC+12, Emile wrote: Hmm, then I'll have to wait longer to experience the unreliability as the handful of automated gui tools I'm running has only been up 10 to 12 years or so. You sound like you h

Re: how to automate java application in window using python

2016-09-24 Thread Lawrence D’Oliveiro
On Monday, September 19, 2016 at 6:47:27 PM UTC+12, Christian Gollwitzer wrote: > Still, sometimes you just need to get the job done and it doesn't matter how. That is why the situation continues; because you keep showing a willingness to put up with it. -- https://mail.python.org/mailman/listin

Re: how to automate java application in window using python

2016-09-23 Thread Lawrence D’Oliveiro
On Thursday, September 22, 2016 at 8:34:20 AM UTC+12, Emile wrote: > Hmm, then I'll have to wait longer to experience the unreliability as > the handful of automated gui tools I'm running has only been up 10 to 12 > years or so. You sound like you have a solution for the OP, then. -- https://ma

Re: how to automate java application in window using python

2016-09-21 Thread Emile
On 09/18/2016 06:37 PM, Lawrence D’Oliveiro wrote: 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

Re: how to automate java application in window using python

2016-09-20 Thread Matt Wheeler
On Tue, 20 Sep 2016, 02:47 meInvent bbird, wrote: > can it contorl Maplesoft's maple which is a java executable file? > I don't know maple so I can't answer that. Which programming language an application is written in isn't really relevant for pywinauto, it'

Re: how to automate java application in window using python

2016-09-20 Thread Lawrence D’Oliveiro
On Sunday, September 18, 2016 at 10:42:16 PM UTC+12, Paul Rubin wrote: > > Lawrence D’Oliveiro writes: >> > I'm quite sure there are Java bindings for all those protocols. Are any of these supported by the Java app in question? Doesn’t seem like it. >> Like I said, try

Re: how to automate java application in window using python

2016-09-20 Thread Lawrence D’Oliveiro
On Tuesday, September 20, 2016 at 1:11:20 PM UTC+12, Ned Batchelder wrote: > We get it, you don't like GUIs. Who says I don’t like GUIs ? I just assume we’ve moved on from the 1990s, when they were considered to be the pinnacl

Re: how to automate java application in window using python

2016-09-19 Thread meInvent bbird
Hi Matt Wheeler, can it contorl Maplesoft's maple which is a java executable file? On Sunday, September 18, 2016 at 5:02:15 PM UTC+8, Matt Wheeler wrote: > On Thu, 15 Sep 2016, 08:12 meInvent bbird, wrote: > > > how to automate java application in window using python > &

Re: how to automate java application in window using python

2016-09-19 Thread Ned Batchelder
On Monday, September 19, 2016 at 4:24:31 PM UTC-4, Lawrence D’Oliveiro wrote: > On Monday, September 19, 2016 at 11:29:24 AM UTC+12, Ned Batchelder wrote: > > > > On Sunday, September 18, 2016 at 6:45:32 PM UTC-4, Lawrence D’Oliveiro > > wrote: > >> > >> A CLI gives the user power over the compute

Re: how to automate java application in window using python

2016-09-19 Thread Lawrence D’Oliveiro
On Monday, September 19, 2016 at 11:29:24 AM UTC+12, Ned Batchelder wrote: > > 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, po

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: 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 automate java application in window using python

2016-09-18 Thread Michael Torrie
one that Matt Wheeler talked about. I suspect it will work more or less with the Java apps the original poster needs to work with. -- https://mail.python.org/mailman/listinfo/python-list

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 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 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 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 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 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 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: 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

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: 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 al

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 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

Re: how to automate java application in window using python

2016-09-18 Thread Lawrence D’Oliveiro
ound everything. None of the different ways of which are either a) compatible or b) widely supported. Particularly not in Java, as the OP was asking. Like I said, trying to automate a GUI is a waste of time. GUIs are designed for humans, not computers, to use. That’s why we have command lines and

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 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/pywina

Re: how to automate java application in window using python

2016-09-17 Thread Steven D'Aprano
On Sunday 18 September 2016 14:53, Lawrence D’Oliveiro wrote: > On Sunday, September 18, 2016 at 4:11:49 PM UTC+12, Gregory Ewing wrote: >> The term "automation" is frequently used in the Windows world to mean >> programming something that you would otherwise do manually through a GUI... > > Whic

Re: how to automate java application in window using python

2016-09-17 Thread Lawrence D’Oliveiro
On Sunday, September 18, 2016 at 4:11:49 PM UTC+12, Gregory Ewing wrote: > 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

Re: how to automate java application in window using python

2016-09-17 Thread Gregory Ewing
Lawrence D’Oliveiro wrote: On Friday, September 16, 2016 at 10:22:34 PM UTC+12, Christian Gollwitzer wrote: "How do I automate a Java application using Python?" Which is really a meaningless question. “Automation” is what computer programs do. It's not meaningless. The term

Re: how to automate java application in window using python

2016-09-16 Thread Lawrence D’Oliveiro
On Friday, September 16, 2016 at 10:22:34 PM UTC+12, Christian Gollwitzer wrote: > "How do I automate a Java application using Python?" Which is really a meaningless question. “Automation” is what computer programs do. (Assuming “application” is just another word for “program”.) I

Re: how to automate java application in window using python

2016-09-16 Thread vern . muhr
On Thursday, September 15, 2016 at 11:57:04 PM UTC-7, meInvent bbird wrote: > On Friday, September 16, 2016 at 2:26:47 AM UTC+8, bream...@gmail.com wrote: > > On Thursday, September 15, 2016 at 8:13:05 AM UTC+1, meInvent bbird wrote: > > > how to automate java application in w

Re: how to automate java application in window using python

2016-09-16 Thread Fabio Zadrozny
gt; > >> D’Oliveiro wrote: > > >>> On Thursday, September 15, 2016 at 7:13:05 PM UTC+12, meInvent > > >>> bbird wrote: > > >>>> how to automate java application in window using python > > >>>> > > >>>> 1. sc

Re: how to automate java application in window using python

2016-09-16 Thread meInvent bbird
t 6:55:07 PM UTC+12, meInvent bbird > > wrote: > >> On Thursday, September 15, 2016 at 3:52:41 PM UTC+8, Lawrence > >> D’Oliveiro wrote: > >>> On Thursday, September 15, 2016 at 7:13:05 PM UTC+12, meInvent > >>> bbird wrote: > >>>>

Re: how to automate java application in window using python

2016-09-16 Thread Christian Gollwitzer
automate java application in window using python 1. scroll up or down of scroll bar 2. click button 3. type text in textbox Well, don’t leave us in suspense! Give us the link to your blog post! i do not have blog post, Oh, now you make us sad. I thought you were promoting a blog post where you tell

Re: how to automate java application in window using python

2016-09-16 Thread Lawrence D’Oliveiro
On Friday, September 16, 2016 at 6:55:07 PM UTC+12, meInvent bbird wrote: > On Thursday, September 15, 2016 at 3:52:41 PM UTC+8, Lawrence D’Oliveiro > wrote: >> On Thursday, September 15, 2016 at 7:13:05 PM UTC+12, meInvent bbird >> wrote: >>> how to automate java

Re: how to automate java application in window using python

2016-09-16 Thread meInvent bbird
On Friday, September 16, 2016 at 2:26:47 AM UTC+8, bream...@gmail.com wrote: > On Thursday, September 15, 2016 at 8:13:05 AM UTC+1, meInvent bbird wrote: > > how to automate java application in window using python > > > > 1. scroll up or down of scroll bar > > 2. click

Re: how to automate java application in window using python

2016-09-15 Thread meInvent bbird
On Thursday, September 15, 2016 at 3:52:41 PM UTC+8, Lawrence D’Oliveiro wrote: > On Thursday, September 15, 2016 at 7:13:05 PM UTC+12, meInvent bbird wrote: > > how to automate java application in window using python > > > > 1. scroll up or down of scroll bar > > 2. cl

Re: how to automate java application in window using python

2016-09-15 Thread kerbingamer376
On Thursday, September 15, 2016 at 8:13:05 AM UTC+1, 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 wtf? -- https://mail.python.org/mailman/listinfo/python-list

Re: how to automate java application in window using python

2016-09-15 Thread Lawrence D’Oliveiro
On Thursday, September 15, 2016 at 7:13:05 PM UTC+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 Well, don’t leave us in suspense! Give us the link to your blog

how to automate java application in window using python

2016-09-15 Thread meInvent bbird
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 -- https://mail.python.org/mailman/listinfo/python-list

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-05-05 Thread Ethan Furman
On 04/24/2016 08:20 AM, Ian Kelly wrote: On Sun, Apr 24, 2016 at 1:20 AM, Ethan Furman wrote: What fun things can Java enums do? Everything that Python enums can do, plus: > --> Planet.EARTH.value (5.976e+24, 6378140.0) --> Planet.EARTH.surface_gravity 9.802652743337129

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Ian Kelly
On Sun, Apr 24, 2016 at 10:04 AM, Ethan Furman wrote: > On 04/24/2016 08:20 AM, Ian Kelly wrote: >> * Java doesn't have the hokey notion of enum instances being distinct >> from their "value". The individual enum members *are* the values. >> Whereas in Pytho

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Ethan Furman
On 04/24/2016 11:27 AM, Chris Angelico wrote: On Mon, Apr 25, 2016 at 4:12 AM, Ethan Furman wrote: Values can be anything. The names are immutable and hashable. I know they *can* be, because I looked in the docs; but does it make sense to a human? Sure, we can legally do this: Well, not m

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Chris Angelico
On Mon, Apr 25, 2016 at 4:12 AM, Ethan Furman wrote: > On 04/24/2016 09:47 AM, Chris Angelico wrote: > >> I would normally expect enumerated values to be immutable and >> hashable, but that isn't actually required by the code AIUI. Under >> what circumstances is it useful to have mutable enum valu

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Ethan Furman
On 04/24/2016 09:47 AM, Chris Angelico wrote: I would normally expect enumerated values to be immutable and hashable, but that isn't actually required by the code AIUI. Under what circumstances is it useful to have mutable enum values? Values can be anything. The names are immutable and hasha

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Chris Angelico
On Mon, Apr 25, 2016 at 3:54 AM, BartC wrote: > On 24/04/2016 17:47, Chris Angelico wrote: >> >> On Mon, Apr 25, 2016 at 2:42 AM, Ethan Furman wrote: Easy: allow an empty list to have the same meaning as an empty tuple. Every time you have [] in your source code, you're guaranteed

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread BartC
On 24/04/2016 17:47, Chris Angelico wrote: On Mon, Apr 25, 2016 at 2:42 AM, Ethan Furman wrote: Easy: allow an empty list to have the same meaning as an empty tuple. Every time you have [] in your source code, you're guaranteed to get a new (unique) empty list, and then multiple assignment will

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Chris Angelico
On Mon, Apr 25, 2016 at 2:42 AM, Ethan Furman wrote: >> Easy: allow an empty list to have the same meaning as an empty tuple. >> Every time you have [] in your source code, you're guaranteed to get a >> new (unique) empty list, and then multiple assignment will work. > > > *sigh* > > Where were yo

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Ethan Furman
On 04/24/2016 09:10 AM, Chris Angelico wrote: On Mon, Apr 25, 2016 at 2:04 AM, Ethan Furman wrote: Unfortunately, the empty tuple tends to be a singleton, so there is no way to tell that red and default are (supposed to be) the same and blue is (supposed to be) different: --> a = b = () --> c

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Chris Angelico
On Mon, Apr 25, 2016 at 2:04 AM, Ethan Furman wrote: > Unfortunately, the empty tuple tends to be a singleton, so there is no way > to tell that red and default are (supposed to be) the same and blue is > (supposed to be) different: > > --> a = b = () > --> c = () > --> a is b > True > --> a is c

Re: Comparing Python enums to Java, was: How much sanity checking is required for function inputs?

2016-04-24 Thread Ethan Furman
On 04/24/2016 08:20 AM, Ian Kelly wrote: On Sun, Apr 24, 2016 at 1:20 AM, Ethan Furman wrote: On 04/23/2016 06:29 PM, Ian Kelly wrote: Python enums are great. Sadly, they're still not quite as awesome as Java enums. What fun things can Java enums do? Everything that Python enums c

  1   2   3   4   5   6   7   8   9   10   >