Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Terry Reedy
On 5/19/2016 4:10 PM, Mike Driscoll wrote: On Thursday, May 19, 2016 at 11:23:53 AM UTC-5, Terry Reedy wrote: In my case, I learned better how to test IDLE from a user perspective. For tkinter apps, an external program such as Selenium is not needed. Tk/tkinter have the simulated event generat

Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Mike Driscoll
On Thursday, May 19, 2016 at 11:23:53 AM UTC-5, Terry Reedy wrote: > On 5/19/2016 11:33 AM, Mike Driscoll wrote: > > On Wednesday, May 18, 2016 at 4:48:28 PM UTC-5, Andrew Farrell wrote: > >> Hi Jacob, > >> > >> You are probably looking for the book Test-Driven Development with Python > >>

Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Terry Reedy
On 5/19/2016 11:33 AM, Mike Driscoll wrote: On Wednesday, May 18, 2016 at 4:48:28 PM UTC-5, Andrew Farrell wrote: Hi Jacob, You are probably looking for the book Test-Driven Development with Python . Electronic version is free on

Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Jacob Scott
Indeed, I skimmed the TOC for Test-Driven Development with Python and it does look to be rather Django-centric (which makes it a bit less helpful to me). I will take a look at "Testing Python: Applying Unit Testing, TDD, BDD and Acceptance Testing"! Thanks, Jacob On Thu, May 19, 2016 at 8:33 AM,

Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Mike Driscoll
On Wednesday, May 18, 2016 at 4:48:28 PM UTC-5, Andrew Farrell wrote: > Hi Jacob, > > You are probably looking for the book Test-Driven Development with Python > . > You'll also want to look at py.test > >

Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Chris Angelico
On Thu, May 19, 2016 at 7:13 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> [1] Some people's names can't be represented in Unicode. > > > Like this fellow's, for instance: > > https://www.youtube.com/watch?v=hNoS2BU6bbQ His name actually CAN be represented in Unicode. It's his address th

Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Gregory Ewing
Chris Angelico wrote: [1] Some people's names can't be represented in Unicode. Like this fellow's, for instance: https://www.youtube.com/watch?v=hNoS2BU6bbQ -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Rustom Mody
On Thursday, May 19, 2016 at 9:26:39 AM UTC+5:30, Steven D'Aprano wrote: > On Thursday 19 May 2016 13:31, Rustom Mody wrote: > > > On Thursday, May 19, 2016 at 6:26:26 AM UTC+5:30, Ben Finney wrote: > > >> Code Like A Pythonista was written in the Python 2 era > >>

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Steven D'Aprano
On Thursday 19 May 2016 13:31, Rustom Mody wrote: > On Thursday, May 19, 2016 at 6:26:26 AM UTC+5:30, Ben Finney wrote: >> Code Like A Pythonista was written in the Python 2 era >> >> but is still excellent advice today. > >

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Chris Angelico
On Thu, May 19, 2016 at 1:31 PM, Rustom Mody wrote: > On Thursday, May 19, 2016 at 6:26:26 AM UTC+5:30, Ben Finney wrote: >> Code Like A Pythonista was written in the Python 2 era >> >> but is still excellent advice today. > >

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Rustom Mody
On Thursday, May 19, 2016 at 6:26:26 AM UTC+5:30, Ben Finney wrote: > Jacob Scott writes: > > > Today, I'm happily writing primarily Python (unfortunately, 2.7 -- but I'm > > not sure it makes that much of a difference) > > Python 2.7 is still viable, but is certainly a dead end. The difference

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Chris Angelico
On Thu, May 19, 2016 at 11:15 AM, Jacob Scott wrote: > I think I would be (perhaps pleasantly) surprised if there was a wide gulf > between Python 2.7 and Python 3 *in terms of advice/resources applicable to > my original question*. Based on my (admittedly shallow) understanding of > overall Pytho

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Jacob Scott
Ah, what I should have done is note that I am writing Python 2.7 (and this is at work, with all that entails...), but am happy to take advice that applies only to Python 3 (even 3.5 or 3.6.0a1!) and work backwards to apply it to Python 2.7. I think I would be (perhaps pleasantly) surprised if ther

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Ben Finney
Jacob Scott writes: > Today, I'm happily writing primarily Python (unfortunately, 2.7 -- but I'm > not sure it makes that much of a difference) Python 2.7 is still viable, but is certainly a dead end. The difference increases month by month, and the advantage is only going to increase to Python

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Andrew Farrell
Hi Jacob, You are probably looking for the book Test-Driven Development with Python . You'll also want to look at py.test Cheers! Andrew Farrell On Wed, May 18, 2016 at 5:01 PM, Jacob Scott wrote: > Man