[Python-ideas] Format mini-language for lakh and crore
Nick Coghlan
ncoghlan at gmail.com
Fri Feb 2 00:53:16 EST 2018
On 2 February 2018 at 08:23, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Nick Coghlan wrote:
>>
>> - "," would be short for ",3," with decimal digits
>> - "_" would be short for "_3_" with decimal digits
>> - "_" would be short for "_4_" with binary/octal/hexadecimal digits
>
>
> Is it necessary to restrict "," to decimal? Why not make
> "," and "_" orthogonal?
>
> While "," with non-decimal might be rarely used, there would
> be less special cases to remember.
I wasn't even aware the restriction existed until this thread (it's
one of those "I'd never tried it, so I didn't know it was prohibited"
cases).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list