Thomas Grainger writes:

 > Another example, is a cash point (ATM) won't give you your money
 > until you take your card

That ATM is effective in enforcing the desired behavior.  In Python
you would usually use an exception to force handling.  Returning
status codes, or couples of status codes and values, isn't nearly as
effective.

And a (status, value) couple does nothing to encourage checking the
code over (value, status).

Steve
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/56D2SVEAXHJHPV526BPAKCMWDI7H6KPN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to