[Matplotlib-devel] matplotlib limitations and design flaws

Ryan May rmay31 at gmail.com
Mon Feb 15 21:24:49 EST 2016


On Mon, Feb 15, 2016 at 12:19 AM, Phillip Feldman <
phillip.m.feldman at gmail.com> wrote:

> I'll add something to the discussion of block comments.  Re. Ryan's point
> that it is hard to exclude block commented code from greps/regex: This is
> equally true of doc strings, and no one is suggesting that we stop using
> these.
>
>
I was only debunking your own specific point about block comments: "A
consequence is that there is no good mechanism for temporarily deactivating
a large block of code—one must either laboriously comment out each line, or
simply delete the block."

So for commenting out blocks of code, block comments suck because using
block comments means there's no way to exclude the "temporarily" disabled
code. It's generally much less often that I'm frustrated by my ability to
exclude lines from docstrings in a grep.

Given that even Gedit has a plugin for mass commenting lines, I see no
problem with the lack of block comments. In fact, when I'm doing C++, I
exclusively use the single line '//' rather than the C style '/* */'. So
for me, lack of block comments is a *feature* of Python (since you don't
end up with two ways to do comments, either). To each their own style...but
comments are really one of your 10 biggest gripes about Python? REALLY?

Ryan

-- 
Ryan May
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20160215/5b5ed761/attachment.html>


More information about the Matplotlib-devel mailing list