Annoying octal notation
Bearophile
bearophileHUGS at lycos.com
Sun Aug 23 05:09:20 EDT 2009
MRAB:
>'_': what if in the future we want to allow them in numbers for clarity?
Hettinger says it's hard (= requires too many changes) to do that and
Python programs don't have big integer constants often enough, so
probably that improvement will not see the light.
In the meantime in a Python program of mine I have put a small bug,
writing 1000000 instead of 10000000. Now in Python I write
10*1000*1000, because I try to learn from my bugs. In D I enjoy
writing 10_000_000.
-------------------------------
Steven D'Aprano:
> In D, at least some people want to follow Python's lead and either drop
> support for oct literals completely, or require a 0o prefix:http://d.puremagic.com/issues/show_bug.cgi?id=2656
Yes, people in the D community are trying to improve things, but it's
a slow and painful process, and often it goes nowhere. There's lot of
politics.
Bye,
bearophile
More information about the Python-list
mailing list