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 long. With an underlying __base__ method call, it wouldn't be hard for someone 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...
Thanks, -Shane Holloway