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? 10.010210001 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: bases.py Type: text/x-python-script Size: 1385 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20060119/a9b6a3d8/attachment.bin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4