[Python-ideas] int('0x3241fca1')
Paul Moore
p.f.moore at gmail.com
Thu Feb 6 13:39:49 CET 2014
More information about the Python-ideas mailing list
Thu Feb 6 13:39:49 CET 2014
- Previous message: [Python-ideas] int('0x3241fca1')
- Next message: [Python-ideas] int('0x3241fca1')
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 6 February 2014 12:28, spir <denis.spir at gmail.com> wrote: > Do you mean int(numeral), where numeral is a *variable* string, with a > python base prefix? (Else, just type in the constant 0x3414fa ;-) If yes, > then I find it a good idea. When int() is used to decode variable numerals, > it could/should/would decode all correct python numeral notations. Having a function like that might be useful, but I also find the current int() behaviour useful - so maybe just have a separate function. And actually, I think it's easy enough to build something like that based on ast.literal_eval, so maybe having a builtin for it isn't worth it...? Paul
- Previous message: [Python-ideas] int('0x3241fca1')
- Next message: [Python-ideas] int('0x3241fca1')
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list