[Python-Dev] str with base
Shane Holloway (IEEE)
shane.holloway at ieee.org
Thu Jan 19 19:28:23 CET 2006
On Jan 19, 2006, at 10:31, Guido van Rossum wrote:
>> To keep it simple, the proposal is for the value to be any int or
>> With an underlying __base__ method call, it wouldn't be hard for
>> to build it out to support other numeric types if the need arises.
> Let's not. What would 3.14 be expressed in base 3?
It turned out to be a fun aside, and I've attached my quick and dirty
script as a strawman.
For what it's worth, I don't like the name base() because it sounds
like something I would call on a class to get it's bases. Perhaps
nbase? And maybe fbase for the floating point one...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1385 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20060119/a9b6a3d8/attachment.bin
More information about the Python-Dev