print format for binary representation

paul at fxtech.com paul at fxtech.com
Tue Jan 27 11:14:22 EST 2004


>   Here's a version to toy with:
>
>   binary = lambda i, c = (lambda i, c: i and (c(i >> 1, c) + str(i & 1))
> or ''): c(i, c)

Is this example in perl or python?

My brain hurts!

:-)







More information about the Python-list mailing list