GZ <zyzhu2...@gmail.com> writes:
> I run into a weird problem. I have a piece of code that looks like the > following: > > f(...., a=None, c=None): > assert (a==None)==(c==None) > There is only one 'None' - so use 'a is None' rather than 'a == None'. (In common lisp there is a particular language construct that allows you do determine whether an argument was passed in or was defaulted.) -- http://mail.python.org/mailman/listinfo/python-list