[Python-ideas] Disallow "00000" as a synonym for "0"
Alexander Belopolsky
alexander.belopolsky at gmail.com
Mon Jul 20 04:14:45 CEST 2015
On Sun, Jul 19, 2015 at 10:01 PM, Steven D'Aprano <steve at pearwood.info>
wrote:
> Allowing 00 when 01, 02, 03, ... are (rightly!) forbidden feels ugly and
> a wart.
>
I agree in general, but there is one case where I am on the fence:
dates = [ date(2005, 07, 01),
date(2005, 11, 15),
..]
looks marginally better than the valid alternative. I often see this form
written by 2.7 users,
and it requires a medium size lecture to explain why they should not write
code like this even
if it seemingly works.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150719/8b1eeb29/attachment.html>
More information about the Python-ideas
mailing list