odd question

Peter Hansen peter at engcorp.com
Thu Jul 15 16:19:14 CEST 2004


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.

Or any language that supports simple math and boolean operations?

There's nothing Perl-like about that, any more than a statement
to print output to the console could be considered 'BASIC-like'.

-Peter



More information about the Python-list mailing list