(original) (raw)
On 3/14/07, Raymond Hettinger <python@rcn.com> wrote:
Eh, no, you might not want one, but I most assuredly do want an exception. Having formerly-octal literals suddenly give wrong results would be much more of a stumbling block than having them in the first place, especially considering we forgot to change all the other languages out there. An exception can make the difference between '0t60' and '60' clear in a single message, not to mention refuse the temptation to guess.
Maybe, *maybe*, after Python is in general use for a couple of years we could remove that exception (although I would keep it a warning, myself.)
- In 3.0, we don't want an exception.
Eh, no, you might not want one, but I most assuredly do want an exception. Having formerly-octal literals suddenly give wrong results would be much more of a stumbling block than having them in the first place, especially considering we forgot to change all the other languages out there. An exception can make the difference between '0t60' and '60' clear in a single message, not to mention refuse the temptation to guess.
Maybe, *maybe*, after Python is in general use for a couple of years we could remove that exception (although I would keep it a warning, myself.)
--
Thomas Wouters <
thomas@python.org>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!