[Python-Dev] str with base (original) (raw)
Raymond Hettinger raymond.hettinger at verizon.net
Thu Jan 19 08:26:12 CET 2006
- Previous message: [Python-Dev] str with base
- Next message: [Python-Dev] str with base
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido, we may be converging on a consensus for my proposal:
base(value, radix=2)
So far no one has shot at it, and it has gathered +1's from Steven, Alex, Brett, and Nick.
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.
The output would have no prefixes. As Alex pointed out, it is easier and more direct to add those after the fact if needed.
Care to pronounce on it?
Raymond
- Previous message: [Python-Dev] str with base
- Next message: [Python-Dev] str with base
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]