A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-April/111044.html below:

[Python-Dev] the role of assert in the standard library ?

[Python-Dev] the role of assert in the standard library ? [Python-Dev] the role of assert in the standard library ?Barry Warsaw barry at python.org
Thu Apr 28 17:26:29 CEST 2011
On Apr 28, 2011, at 10:22 AM, skip at pobox.com wrote:

>    Barry> I would agree.  Use asserts for "this can't possibly happen
>    Barry> <wink>" conditions.
>
>Without looking, I suspect that's probably what the author thought he was
>doing.

BTW, I think it always helps to have a really good assert message, and/or a
leading comment to explain *why* that condition can't possibly happen.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110428/c3f222d5/attachment.pgp>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4