<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, 7 Apr 2018 at 02:09 Steven D'Aprano <<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Apr 07, 2018 at 09:30:05AM +0100, Paul Moore wrote:<br>
> On 7 April 2018 at 04:13, Steve Dower <<a href="mailto:steve.dower@python.org" target="_blank">steve.dower@python.org</a>> wrote:<br>
> > Better to deprecate it before it becomes broken, in my opinion.<br>
<br>
That argument could be applied to everything in the std lib.<br></blockquote><div><br></div><div>Sure, but we all know none of this is as black-and-white as it's being portrayed either.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
> > Having someone willing and able to review and merge changes is the best<br>
> > criteria for whether a module is still supported or not.<br>
<br>
I don't think "best" is justified -- and certainly it is not the *only*<br>
criteria.<br></blockquote><div><br></div><div>But you have to admit it is an important one.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Modules can become stable simply because they have no known bugs and no<br>
new feature requests. Stable doesn't mean useless, and the urge to<br>
consider anything that isn't being regularly fiddled with as "obsolete"<br>
is a tendency to be resisted.<br>
<br>
If the module isn't broken, there's no need to fix it. That's a GOOD<br>
thing, not a reason to dump a perfectly good, useful, working module.<br></blockquote><div><br></div><div>I think part of the question is whether the module is also used enough to justify putting in scarce core dev time to maintain it.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Raymond has stated that he is happy to work on it if there are any bugs<br>
reported on it, and if he's not available, I'm sure somebody will.</blockquote><div><br></div><div>Actually Raymond said he <i>teaches</i> the module, not that he wanted to maintain it. And I definitely would not assume that someone will pick up to help maintain any module in the stdlib.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> And<br>
if not, well, we don't have any sort of performance guarantees on fixes:<br>
sooner or later, *somebody* will provide a patch.</blockquote><div><br></div><div>Assuming someone does, do we really want to say, "eh, it's buggy but we can wait over 7 years for a fix" (the oldest open issue on b.p.o is from August 2009: <a href="https://bugs.python.org/issue6686">https://bugs.python.org/issue6686</a>). And even if they do, that doesn't mean someone will have the time or inclination to review it and eventually see it through to being merged.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> That's the beauty of<br>
the Open Source model. There are plenty of potential upstream<br>
contributors who could contribute a patch.<br></blockquote><div><br></div><div>But potential does not necessarily translate to action.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
> I think there's a difference between not being willing to add<br>
> enhancements, and not fixing bugs. The issue that originally triggered<br>
> this discussion was an enhancement request, and I don't think it's<br>
> unreasonable to declare cmd as "stable - no further enhancements will<br>
> be made or accepted" while still considering it as supported for<br>
> bugfixes.<br>
<br>
Its not an unreasonable position to take, but I don't think it is<br>
justified in this case. The cmd module is not something so arcane or<br>
complicated that it requires a specialist to maintain it. Its about 400<br>
lines, including blank lines and doc strings, with a single class and<br>
around twenty methods.<br>
<br>
Wasn't one of the major reasons for moving to git and Github to<br>
make it easier for non-core devs to contribute?</blockquote><div><br></div><div>Actually the major reason was to make it easier for core devs to review contributions. Easing the workflow for outside contributors was a side benefit.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> A module as stable and<br>
simple as cmd seems to me to be the ideal place for people to begin<br>
contributing, whether it is fixing bugs or contributing any<br>
(hypothetical) feature enhancements.<br></blockquote><div><br></div><div>Perhaps, but that assumes someone wants that job. ;)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I don't think we need do anything here: so long as there is a core<br>
developer willing to review any PRs, and so long as new enhancements go<br>
through the same approval process on the bug tracker and/or Python-<br>
Ideas, I don't think we need to single cmd out as deprecated or "no new<br>
features".<br></blockquote><div><br></div><div>Those two "so long as" parts are I think the key reason Ned brought this up.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This isn't gopher, or something with serious unfixable security<br>
vulnerabilities. It works. What more needs to be said?<br></blockquote><div><br></div><div>I think this all ties back to the usual discussion we have when it comes to the stdlib: what is the bar for what should be in there because nothing is maintenance-free?<br><br></div><div>The cmd module itself has plenty of commits that were just standard code maintenance changes: <a href="https://github.com/python/cpython/commits/master/Lib/cmd.py">https://github.com/python/cpython/commits/master/Lib/cmd.py</a> . All of that eats up time over the 26 years of the module's existence. And feature enhancements are not free either even if you don't review the PR because even if you don't review them you still have to peruse the PR title to make the decision not to review it, which once again is a small amount of time in isolation but adds up at a macro level.<br><br></div><div>We all have a limited amount of time to contribute, especially when we are almost all spending personal time on this project. And no matter how trivial a module is to keep around, it is not a non-zero amount of time for the group all-up, even if we all collectively choose to ignore it in hopes someone comes forward to help out.<br><br></div><div>And I would also say that ignoring a module until someone comes forward to maintain it runs counter-productive to our overall goal to produce quality software as we are effectively saying we are okay with lower quality if it simply puts us out too much to maintain it. I personally would argue that the language itself is an amazingly solid piece of software but that the stdlib's quality varies. For me, that's where my personal desire to trim the stdlib a bit so we can have "more wood behind fewer arrows" and bring the stdlib's quality up a bit.<br></div></div></div>