Message91958
In javascript and java each number has a toString method which allows
for easy string representation in different bases. If the function int(x[, base]) exists as a builtin, the inverse should at least be
somewhere in the standard library. Personally I believe a "to_string"
method would work but would defeat "There should be one way to do it".
Perhaps a method called "radix" or "base_convert" which requires a base
to convert parameter won't take the place of str(number).
Here are a few possible implementations:
http://code.activestate.com/recipes/222109/
http://code.activestate.com/recipes/111286/
http://pastebin.com/f54dd69d6 |
|
Date |
User |
Action |
Args |
2009-08-25 19:35:41 | ubershmekel | set | recipients:
+ ubershmekel |
2009-08-25 19:35:41 | ubershmekel | set | messageid: <1251228941.52.0.551451692653.issue6783@psf.upfronthosting.co.za> |
2009-08-25 19:35:39 | ubershmekel | link | issue6783 messages |
2009-08-25 19:35:39 | ubershmekel | create | |
|