[issue10073] calendar.isleap() not checking parameter type

Boštjan Mejak report at bugs.python.org
Tue Oct 19 18:34:40 CEST 2010


Boštjan Mejak <bostjan.mejak at gmail.com> added the comment:

I have read the Zen of PYthon before. I have also written a typo report. But
got rejected. No one listens to my ideas. So why do you have a bug tracker
anyway?

On Tue, Oct 19, 2010 at 6:46 AM, Éric Araujo <report at bugs.python.org> wrote:

>
> Éric Araujo <merwok at netwok.org> added the comment:
>
> > for example, the isleap() function which should be defined as is_leap()
> Who says that?  Not PEP 8: “Function names should be lowercase, with words
> separated by underscores *as necessary to improve readability*” (emphasis
> mine).  isleap is perfectly readable.
>
> > But now it's all too late for that fixes.
> You’ll find that Python has a balance between readability/ease of use and
> pragmatism.  In some cases, changes can’t be made, but it’s best to accept
> it and move on to the next issue.  Working on feature requests instead of
> style issues is great.
>
> On a closing note, I’ll let you enjoy the Zen of Python:
> $ python -m this
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue10073>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file19283/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10073>
_______________________________________
-------------- next part --------------
I have read the Zen of PYthon before. I have also written a typo report. But got rejected. No one listens to my ideas. So why do you have a bug tracker anyway?<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 6:46 AM, Éric Araujo <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Éric Araujo &lt;<a href="mailto:merwok at netwok.org">merwok at netwok.org</a>&gt; added the comment:<br>
<div class="im"><br>
&gt; for example, the isleap() function which should be defined as is_leap()<br>
</div>Who says that?  Not PEP 8: “Function names should be lowercase, with words separated by underscores *as necessary to improve readability*” (emphasis mine).  isleap is perfectly readable.<br>
<div class="im"><br>
&gt; But now it&#39;s all too late for that fixes.<br>
</div>You’ll find that Python has a balance between readability/ease of use and pragmatism.  In some cases, changes can’t be made, but it’s best to accept it and move on to the next issue.  Working on feature requests instead of style issues is great.<br>

<br>
On a closing note, I’ll let you enjoy the Zen of Python:<br>
$ python -m this<br>
<div><div></div><div class="h5"><br>
----------<br>
<br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue10073" target="_blank">http://bugs.python.org/issue10073</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br>


More information about the Python-bugs-list mailing list