On 27/12/2013 01:44, Chris Angelico wrote:
On Fri, Dec 27, 2013 at 12:37 PM, Roy Smith <r...@panix.com> wrote:
In article <mailman.4567.1387819120.18130.python-l...@python.org>,
  Ethan Furman <et...@stoneleaf.us> wrote:

Mostly I don't want newbies thinking "Hey!  I can use assertions for all my
confidence testing!"

How about this one, that I wrote yesterday;

         assert second >= self.current_second, "time went backwards"

I think that's pretty high up on the "can never happen" list.

assert second >= self.current_second, "user changed the clock"

ChrisA


assert "shoot admin who gave user too much privilege" ?

--
My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to