Heike C. Zimmerer
usenet04q1 at hczim.de
Thu Jul 15 20:23:41 CEST 2004
Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> writes:
> Harald Massa wrote:
>>>You have given the following function:
>>>def f2(i, j, k):
>>> return ((i | j) & k) | (i & j)
>>>Find a useful utilization for this function.
>> That's easy.
>> This function is a possible proof that it is possible to write
>> pearllike (=writeonly) code in Python too.
> I thought anyone using a programming language had at least some
> notions of boolean algrebra...
I once had someone complaining that I've used an exclusive or in my
code without any comment explaining what that funny thing was for ...
He really was upset.
More information about the Python-list