[Tutor] Testing print
boB Stepp
robertvstepp at gmail.com
Sat Oct 1 18:08:25 EDT 2016
On Sat, Oct 1, 2016 at 11:35 AM, Alan Gauld via Tutor <tutor at python.org> wrote:
> ... Personally I don't like functions that
> sometimes return one and sometimes two results. I'd rather
> you returned a None first argument in the first case
> to make it consistent.
Why don't you like doing this? What are the pluses and minuses as you
see them? I actually almost wrote it to return None as you suggest,
but as I had not yet had an opportunity to play with argument
unpacking until now, I thought I would do so. After all, it is about
the learning for me, not always doing things the same way I have been
doing them.
--
boB
More information about the Tutor
mailing list