This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ubershmekel
Recipients ubershmekel
Date 2009-08-25.19:35:39
SpamBayes Score 6.277813e-08
Marked as misclassified No
Message-id <1251228941.52.0.551451692653.issue6783@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-08-25 19:35:41ubershmekelsetrecipients: + ubershmekel
2009-08-25 19:35:41ubershmekelsetmessageid: <1251228941.52.0.551451692653.issue6783@psf.upfronthosting.co.za>
2009-08-25 19:35:39ubershmekellinkissue6783 messages
2009-08-25 19:35:39ubershmekelcreate