Re: Friday finking: TDD and EAFP

2019-11-12 Thread DL Neil via Python-list
On 6/11/19 8:01 AM, Barry Scott wrote: On 1 Nov 2019, at 05:40, DL Neil via Python-list wrote: Is the practice of TDD fundamentally, if not philosophically, somewhat contrary to Python's EAFP approach? The practice of TDD* is that one writes test routines to prove a unit of code, eg method or

Re: Friday finking: TDD and EAFP

2019-11-12 Thread DL Neil via Python-list
Apologies for lateness - stuff happened... On 4/11/19 9:44 AM, Peter J. Holzer wrote: On 2019-11-04 07:41:32 +1300, DL Neil via Python-list wrote: On 3/11/19 6:30 AM, Bev In TX wrote: On Nov 1, 2019, at 12:40 AM, DL Neil via Python-list mailto:python-list@python.org>> wrote: Is the practice

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 11:00 AM Terry Reedy wrote: > > On 11/12/2019 12:00 PM, Chris Angelico wrote: > > On Wed, Nov 13, 2019 at 3:57 AM Terry Reedy wrote: > >> > >> On 11/12/2019 8:29 AM, Chris Angelico wrote: > >> > >>> The OP said that the equals sign in the *first* line was flagged as > >>>

Re: Trouble trying to get started with pygame

2019-11-12 Thread Terry Reedy
On 11/12/2019 2:32 PM, originallmo...@gmail.com wrote: I'm curious: I've been seeing people having multiple pygame programs open at once (Where each one is a component of a main program, obviously). Multiple programs open at once on modern machines is normal. Do you mean multiple windows for

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Terry Reedy
On 11/12/2019 12:00 PM, Chris Angelico wrote: On Wed, Nov 13, 2019 at 3:57 AM Terry Reedy wrote: On 11/12/2019 8:29 AM, Chris Angelico wrote: The OP said that the equals sign in the *first* line was flagged as invalid syntax. Implication being that the error is being reported on the line "i

Re: Hi there! We are here to answer any questions you have about Udacit...

2019-11-12 Thread DL Neil via Python-list
On 12/11/19 9:48 PM, joseph pareti wrote: great, thank you so much for the advice. In fact, I sent this mail to the python mailing list by mistake, but now I am glad I did ... There's plenty of over-lap between lists - PyTutor is another. Meantime I've received email from IBM about their ML/AI

Re: Launching a Script on the Linux Platform

2019-11-12 Thread Wildman via Python-list
On Tue, 12 Nov 2019 18:39:38 +, Rhodri James wrote: > On 12/11/2019 18:25, Rob Gaddi wrote: >> On 11/12/19 10:06 AM, Wildman wrote: >>> What is the best approach for launching a Python GUI program >>> on a Linux platform.  The program will be distributed in .deb >>> format.  So the .deb will c

Re: Trouble trying to get started with pygame

2019-11-12 Thread originallmoney
I'm curious: I've been seeing people having multiple pygame programs open at once (Where each one is a component of a main program, obviously). If I'm making a larger game, do I NEED to do that? I'm assuming I'd need a Visual Studio extension for Python in order to do that. -- https://mail.pyt

Re: Launching a Script on the Linux Platform

2019-11-12 Thread Rhodri James
On 12/11/2019 18:25, Rob Gaddi wrote: On 11/12/19 10:06 AM, Wildman wrote: What is the best approach for launching a Python GUI program on a Linux platform.  The program will be distributed in .deb format.  So the .deb will contain a menu file as well as a .desktop file.  The post install script

Re: Launching a Script on the Linux Platform

2019-11-12 Thread Rob Gaddi
On 11/12/19 10:06 AM, Wildman wrote: What is the best approach for launching a Python GUI program on a Linux platform. The program will be distributed in .deb format. So the .deb will contain a menu file as well as a .desktop file. The post install script will update the system menu. My quest

Launching a Script on the Linux Platform

2019-11-12 Thread Wildman via Python-list
What is the best approach for launching a Python GUI program on a Linux platform. The program will be distributed in .deb format. So the .deb will contain a menu file as well as a .desktop file. The post install script will update the system menu. My question is how should the program be execut

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 3:57 AM Terry Reedy wrote: > > On 11/12/2019 8:29 AM, Chris Angelico wrote: > > > The OP said that the equals sign in the *first* line was flagged as > > invalid syntax. Implication being that the error is being reported on > > the line "i = 4", not on the print at the end.

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Terry Reedy
On 11/12/2019 8:29 AM, Chris Angelico wrote: The OP said that the equals sign in the *first* line was flagged as invalid syntax. Implication being that the error is being reported on the line "i = 4", not on the print at the end. And in fact, I can confirm this. Run | Check Module reports an err

Logistic Regression Define X and Y for Prediction

2019-11-12 Thread Mike C
Hi All, I have the below code. X = df.iloc[:, [4, 403]].values​ y = df.iloc[:, 404].values Dummy Data looks like: host Mnemonic 12.234.13.6 start 22.22.44.67 something 23.44.44.14 begin When I define the X and Y values for prediction in the train and test data,

Re: Help!

2019-11-12 Thread Michael Torrie
As always, keep your messages on the mailing list so others can benefit. On 11/12/19 7:02 AM, Jack Gilbert wrote: > > . how do I get the PY program onto my desktop? Not quite sure what you mean. Python programs are saved into text files which you can store anywhere you want. Save them to the l

Re: Using Makefiles in Python projects

2019-11-12 Thread Marko Rauhamaa
Rhodri James : > On 11/11/2019 19:05, Bill Deegan wrote: >> You could use SCons (native python... ) > > I could. But I'd have to learn how to first, and particularly for > complex cross-platform working that involves learning a lot of stuff I > already know how to do in Make. The time investment

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 12:29 AM Chris Angelico wrote: > If it can find the position of the specific braced expression within > the string, great! But at very least, it should report the location of > the string in its original file. Further to this: If a runtime (non-syntax) error occurs, it is

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Chris Angelico
On Wed, Nov 13, 2019 at 12:14 AM Heinrich Kruger wrote: > > ‐‐‐ Original Message ‐‐‐ > On Tuesday, November 12, 2019 12:39 PM, Pieter van Oostrum > wrote: > > > r...@zedat.fu-berlin.de">--protonsignature--...@zedat.fu-berlin.de (Stefan > > Ram) writes: > > > > > When I enter > > > i = 4

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Heinrich Kruger
‐‐‐ Original Message ‐‐‐ On Tuesday, November 12, 2019 12:39 PM, Pieter van Oostrum wrote: > r...@zedat.fu-berlin.de">--protonsignature--...@zedat.fu-berlin.de (Stefan > Ram) writes: > > > When I enter > > i = 4 > > x = 2.3 > > s = 'abc' > > print( f'{i=}' ) > > into a file window of ID

Re: Funny behavior of IDLE 3.7.0

2019-11-12 Thread Pieter van Oostrum
r...@zedat.fu-berlin.de (Stefan Ram) writes: > When I enter > > i = 4 > x = 2.3 > s = 'abc' > print( f'{i=}' ) > > into a file window of IDLE 3.7.0, it marks the '=' > sign in the /first/ line and says 'invalid syntax'. > > Remove the »f«, and the error will disappear. I did this in IDL

Re: Using Makefiles in Python projects

2019-11-12 Thread Rhodri James
On 11/11/2019 19:05, Bill Deegan wrote: You could use SCons (native python... ) I could. But I'd have to learn how to first, and particularly for complex cross-platform working that involves learning a lot of stuff I already know how to do in Make. The time investment has never seemed that

Re: Can we use Python for hacking?

2019-11-12 Thread Pankaj Jangid
>> Someone requested my answer to the question: "Can we use Python for >> hacking?" > Sigh. I suppose it's a lost battle to reclaim that word. So true. I still remember the ESR article that I used to share twenty years ago. -- Pankaj Jangid -- https://mail.python.org/mailman/listinfo/python-