Re: [Tutor] Recommendations for best tool to write/run Python

2016-03-02 Thread Dave P
On Wed, Mar 2, 2016 at 1:26 PM, Lisa Hasler Waters wrote: > Hello everyone, > > I am new to Python, as are my middle school students. We are using Python > 3.5.1 IDLE to write and run our (simple) code. However, this tool does not > seem to be the best way to write longer code or to be able to re-

Re: [Tutor] unittest not working

2015-11-19 Thread Dave P
On Thu, Nov 19, 2015 at 8:25 AM, Mike wrote: > I'm trying to unit test a self-built regular expression processor for an > assignment. I'm trying to set up unit tests for the package, but it's not > executing them. This is my first time trying to use the unittest module, so > I'm sure I'm missing

Re: [Tutor] Design question: Web-based vs. desktop-based vs. desktop-based with data backed up to web server with a tablet thrown in for all cases?

2015-07-19 Thread Dave P
On Jul 19, 2015 5:43 AM, "Laura Creighton" wrote: > > In a message of Sun, 19 Jul 2015 16:27:13 +1000, "Steven D'Aprano" writes: > >I'm not sure if it runs on Macs, but it should work on Android, Windows, > >and Linux, and of course it is entire Python-based. > > Python 2.7 only on for MacOSX. Py

[Tutor] How to notify/handle an error?

2010-10-31 Thread dave p. guandalino
Which of the following ways is better to handle something wrong? Many thanks. # First: def is_valid_project(): # Do checks and valorize is_a_valid_project accordingly return is_a_valid_project # True / False # caller side if is_valid_project(): pass # do stuffs with valid project else