On 6/2/05, dimitri pater <[EMAIL PROTECTED]> wrote something like:
> try: assert name != ""
> except AssertionError:
I'd like to put forth a caution on the use of asserts for program
logic. If you run python with -O, the asserts are compiled out:
% echo "assert False" > assert.py
% python assert.py
Traceback (most recent call last):
File "assert.py", line 1, in ?
assert False
AssertionError
% python -O assert.py
%
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/