Re: Binary, Hex, and Decimal string conversions

2007-08-13 Thread Robert Dailey
Just curious Dick, why are you making your own to_base method? Doesn't the source I provided in my earlier email give you all that you need? I was hoping my source might be useful to a few people, even though it's pretty trivial code. On 8/12/07, Dick Moores [EMAIL PROTECTED] wrote: At 07:04 PM

Re: Binary, Hex, and Decimal string conversions

2007-08-13 Thread Dick Moores
At 07:35 AM 8/13/2007, Robert Dailey wrote: Just curious Dick, why are you making your own to_base method? Doesn't the source I provided in my earlier email give you all that you need? I was hoping my source might be useful to a few people, even though it's pretty trivial code. I didn't roll my

Re: Binary, Hex, and Decimal string conversions

2007-08-12 Thread Robert Dailey
Well, I decided to implement my own way of doing this. I've attached the source. You're all welcome :) On 8/12/07, Michael Bentley [EMAIL PROTECTED] wrote: Hi Robert, On Aug 11, 2007, at 3:59 PM, Robert Dailey wrote: Hi, I was wondering if there is a built in module that supports conversion

Re: Binary, Hex, and Decimal string conversions

2007-08-12 Thread Dick Moores
At 04:20 PM 8/12/2007, Robert Dailey wrote: Well, I decided to implement my own way of doing this. I've attached the source. You're all welcome :) On 8/12/07, Michael Bentley [EMAIL PROTECTED] wrote: Hi Robert, On Aug 11, 2007, at 3:59 PM, Robert Dailey wrote: Hi, I was wondering if there

Re: Binary, Hex, and Decimal string conversions

2007-08-12 Thread Michael Bentley
On Aug 12, 2007, at 6:28 PM, Dick Moores wrote: n = 12 base = 36 print to_base(n, base) == This seems to work fine for n = base, but not for n base. For example, the code shown returns c. Is my indentation wrong, or the code? It seems to me that the

Re: Binary, Hex, and Decimal string conversions

2007-08-12 Thread Dick Moores
At 07:04 PM 8/12/2007, Michael Bentley wrote: On Aug 12, 2007, at 6:28 PM, Dick Moores wrote: n = 12 base = 36 print to_base(n, base) == This seems to work fine for n = base, but not for n base. For example, the code shown returns c. Is my indentation

Binary, Hex, and Decimal string conversions

2007-08-11 Thread Robert Dailey
Hi, I was wondering if there is a built in module that supports conversion in any direction between Binary, Hex, and Decimal strings? Thanks. -- http://mail.python.org/mailman/listinfo/python-list