On Sat, May 31, 2008 at 4:41 PM, wesley chun <[EMAIL PROTECTED]> wrote: > somewhat on-topic, can i hear from some of you as far as use-cases for > oct() and hex() [plus bin()] in Python code? i find "%x" or "%o" (and > its variants) sufficient in serving my needs. in other words, why > oct() and hex() built-in functions instead of elsewhere like in > operator for those who desire a functional interface?
I use oct() and hex() all the time at the interactive prompt when I have a funny number given in decimal and wonder if it's really a magic bit pattern. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com