On Thu, Apr 28, 2011 at 5:26 PM, Barry Warsaw <ba...@python.org> wrote:
> On Apr 28, 2011, at 10:22 AM, s...@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.

why bother, it can't happen ;)

>
> -Barry
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/ziade.tarek%40gmail.com
>
>



-- 
Tarek Ziadé | http://ziade.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to