Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80565

Re: I love assert

Date 2014-11-11 13:15 -0800
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: I love assert
References <54626CB0.5080405@stoneleaf.us> <1900956607.76400.1415740156398.JavaMail.yahoo@jws10772.mail.gq1.yahoo.com>
Newsgroups comp.lang.python
Message-ID <mailman.15693.1415740565.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 11/11/2014 01:09 PM, Albert-Jan Roskam wrote:
> Ethan Furman wrote:
>>
>> asserts are a specialized tool, easily abused.  Sounds like you are using them
>> exactly as intended.
>
> Would you say that assert is baaadly abused in nose?*) I never tried it, but
>  probably all tests pass when Python is run with -O or -OO.

I don't know, haven't used it nor read the code.  It would certainly not be good if it failed in optimized mode.

--
~Ethan~

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: I love assert Ethan Furman <ethan@stoneleaf.us> - 2014-11-11 13:15 -0800

csiph-web