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