Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68010
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: Assertions are bad, m'kay? |
| Date | 2014-03-08 11:22 +1100 |
| References | <mailman.7890.1394176617.18130.python-list@python.org> <5319a975$0$29985$c3e8da3$5496439d@news.astraweb.com> <CAGGBd_rbho4UUesBKTXLhqBaEi71Xm3ZxpZQF1rG-t1+VdppVw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7910.1394238163.18130.python-list@python.org> (permalink) |
Dan Stromberg <drsalists@gmail.com> writes:
> BTW, what about:
>
> if value >= 3:
> raise AssertionError('value must be >= 3')
That would be very confusing, since it would only appear when the value
is >= 3. Were you making some other point?
--
\ “If this is your first visit to the USSR, you are welcome to |
`\ it.” —hotel room, Moscow |
_o__) |
Ben Finney
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Assertions are bad, m'kay? Chris Angelico <rosuav@gmail.com> - 2014-03-07 18:16 +1100
Re: Assertions are bad, m'kay? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-07 11:11 +0000
Re: Assertions are bad, m'kay? Chris Angelico <rosuav@gmail.com> - 2014-03-07 22:24 +1100
Re: Assertions are bad, m'kay? Dan Stromberg <drsalists@gmail.com> - 2014-03-07 16:15 -0800
Re: Assertions are bad, m'kay? Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-03-08 01:26 +0100
Re: Assertions are bad, m'kay? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-08 14:44 +0000
Re: Assertions are bad, m'kay? Ben Finney <ben+python@benfinney.id.au> - 2014-03-08 11:22 +1100
csiph-web