11

Questions like this one are caused by simple indentation issues in Python. IMO, they don't bring any value to the site and have more or less the same answer. What is the correct way to deal with them? I had previously hoped that the Roomba script will remove them. But after looking at the criteria for removal it seems unlikely as this question has answers (albeit with 0 scores).

If the question is more than 30 days old, and ...

  • has −1 or lower score
  • has no answers <===
  • is not locked

... or ...

  • it was closed and migrated to a different site

...or...

  • it was migrated from a different site, and then rejected

If the question is more than 365 days old, and ...

  • has a score of 0 or less, or a score of 1 and a deleted owner
  • has no answers <===
  • is not locked
  • has view count <= the age of the question in days times 1.5
  • has 1 or 0 comments
  • isn't on a meta site

Only this case seems to apply:

If the question was closed more than 9 days ago, and ...

  • not closed as a duplicate
  • has a score of 0 or less
  • is not locked
  • has no answers with a score > 0 <==
  • has no accepted answer
  • has no pending reopen votes
  • has not been edited in the past 9 days

But this requires the question to be closed. So what is the correct way to do it?

  • Should they be closed as duplicates to some another indentation related question?
  • Should they be flagged as "Not reproducible or was caused by a typo"?
  • Should a custom moderator flag be raised explaining the problem?
  • Or is it ok to leave them as it is? The OP receives their answer in the end.
2

1 Answer 1

18

Python indentation errors should be closed as typos. Ideally, before an answer gets posted, so that they can be cleaned up by the Roomba. You can post a brief comment to let the OP know where the typo is.

Don't close typos as duplicates: such duplicates are unlikely to help future readers. And definitely do not use a custom mod flag: mods cannot be domain experts on every language, so custom flags should not be used for language-related flaws on questions (or answers).


BTW, the question you linked doesn't have the generic tag so a lot of the regular Python answerers wouldn't have even seen that question when it was posted. It's a Good Idea to add that tag to good Python questions that don't have it, especially new ones. There's no point adding it now to that question, since it will soon be closed & manually deleted.

14
  • 2
    Ok got it. But (since it will soon be closed & manually deleted) if I understand correctly this question is being closed because attention to it was brought to it via this meta post... This question was asked 2 years and 9 months ago, I found it on 'First posts' queue because a low rep user had recently answered it. What should I do if I ever come across something like this again? Can I flag them as typos too? Jul 23, 2020 at 12:46
  • 4
    You can (and should) flag even older questions if the flag is applicable. The question isn't any less a typo-question just because it did not get noticed yet. Jul 23, 2020 at 12:50
  • 1
    @Yatin Sure! A flag or close-vote will put the post into a review queue so it will get extra attention.
    – PM 2Ring
    Jul 23, 2020 at 12:50
  • 3
    On one hand, if one has a gold badge, I think voting to close as dupe ASAP if no answers exist is the best option, because that'll prevent answers from being posted, and doesn't require additional moderation, and if downvoted, it'll roomba. On the other hand, if there are already answers, the roomba won't run if the question is closed as dupe, so VTC as typo could be better if no answers have been accepted/upvoted. Either way, if the roomba won't run, come back a couple days later and vote to delete the question Jul 23, 2020 at 14:28
  • 1
    @CertainPerformance I do have a Python gold badge, but I don't use it to close typos. A question closed as a dupe is supposed to act as a signpost to its dupe target(s) for future readers, which is why they're kept (unless we already have plenty of similar signpost questions). But typos are rarely useful for future readers, which is why they get Roomba'd. If a typo question gathers an answer or two before it gets closed, it's no big deal, but I sometimes leave a brief comment on such answers. (BTW, the question quoted by the OP has now been manually deleted).
    – PM 2Ring
    Jul 23, 2020 at 23:53
  • @PM2Ring Just because a question is not a good signpost for future readers doesn't mean it shouldn't be closed as a duplicate - the intent would be to get the question closed so as to prevent (useless) answers from being posted - and if a downvoted dupe has no answers, it will roomba. On the other hand, if you VTC as typo, that gives rep-hunters the chance to post an answer for those 5+ minutes before the question gets closed by 2 other close voters, and if said answer gets upvoted or accepted, the question will not roomba. So, I'd rather VTC as dupe ASAP, rather than give them that chance. Jul 24, 2020 at 1:45
  • @CertainPerformance If it's actually a typo, then there shouldn't be any good dupe targets. I've had discussions (with other Python gold badge holders & mods) on the idea of using the dupe hammer to quickly close poor questions. The consensus is that it borders on abuse of the hammer privilege. So I'd prefer to close non-dupes through proper channels. And manually delete the question, if necessary. Hopefully, getting their answers deleted discourages some rep-hunters. ;)
    – PM 2Ring
    Jul 24, 2020 at 3:25
  • For a few languages, there's a canonical question or two that exist for typos. If someone's whitespace is off, it's essentially a typo, but stackoverflow.com/q/45621722 happens to thoroughly explain the issue as well, so closing for that target would make perfect sense for a gold-badge holder. Similarly, for PHP, there's stackoverflow.com/q/18050071 , and so on. If such a canonical exists and if it addresses the core of the problem in the question, don't be afraid to close for it, even if said problem is basically a typo. Jul 24, 2020 at 4:39
  • 1
    But such closures should only be performed if the target actually addresses the problem in the question, of course. No one should close as dupe if the dupe doesn't actually have anything to do with the question. Jul 24, 2020 at 4:39
  • @CertainPerformance I'm familiar with that Q&A on Python indentation, I upvoted it & added it to the SO Python common questions collection. At the time, I posted a comment explaining why (IMHO) it should not be used as a dupe target, but that's been deleted. We discussed it in the SO Python chat room, you can see the transcript here. I can't stop people using it as a dupe target, but I'd prefer if they didn't.
    – PM 2Ring
    Jul 24, 2020 at 12:25
  • Closing as a duplicate has many advantages: it promotes the canonical (which provides useful information, and deserves to come up in more search results); it's faster (I'm not inclined to care much about the charge of "abusive" in such clear-cut cases); and it covers the occasional case where people genuinely don't understand what the indentation requirements are. Nov 4, 2022 at 5:54
  • @KarlKnechtel Sure, we do want to promote the canonicals. But we generally don't want to preserve questions that are ultimately just typos. OTOH, if the error is due to a genuine misunderstanding, and the question is reasonably clear (or can be made sufficiently clear by a minor edit), then I guess it may be a useful signpost.
    – PM 2Ring
    Nov 4, 2022 at 6:39
  • It would be nice if closing questions as duplicates (especially of multiple targets) didn't tend to preserve them. OTOH, "number of times a question is linked as a duplicate" is a useful metric for figuring out which problems are most common. Nov 4, 2022 at 6:42
  • @Karl The "problem" is that when we close a question as a dupe we aren't saying that the question is intrinsically bad, unlike the other closure reasons. Dupes should be preserved, unless we already have an adequate supply of similar signposts. If you don't want the question to be preserved, don't dupe-hammer it. As for linking to a relevant canonical, that can be done with a simple comment. True, the Linked questions aren't as prominent as the dupe links, but the SO devs may change that, as mentioned in the comments to the recent experiment in making Related questions more prominent.
    – PM 2Ring
    Nov 4, 2022 at 6:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .