On Fri, Jun 27, 2008 at 3:59 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > > Mark Dickinson wrote: > >>> >>>>>> math.tohex(3.14) >>> >>> '0x1.91eb851eb851fp+1' >>>>>> >>>>>> math.fromhex('0x1.91eb851eb851fp+1') >>> >>> 3.1400000000000001 > > How about just one self-inverse method .hex? > .hex(float/hexstring) returns corresponding hexstring/float
That seems to be a misplaced attempt at economy, obscuring the intent from the reader. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com