-16

I want to know why this question that has a user's upvoted answer and my upvoted & accepted answer on it got deleted. Screenshot of the deleted post:

enter image description here

For one, the close reason is that it was caused by a typo, but I don't see that as the case; they thought that the update function gets called outside the loop, when it should be called inside the loop. There was no indentation error, the program simply acted differently from the intended behavior.

Besides pointing out the issue, I've also included more helpful information explaining some key points to the OP. I would've simply voted to undelete, but because a mod deleted it, I couldn't.

28
  • 17
    Because it had no future value. We frequently delete bad questions too, it's like half the site's moderation mechanic Commented Dec 18, 2020 at 13:51
  • 2
    @Zoe What makes you think it has no future value??
    – Red
    Commented Dec 18, 2020 at 13:52
  • 3
    I have a ton of metrics for that, but in this specific case, it's one of those bugs that're caused by bad indentation in an intent-sensitive language, and that if allowed would cause a massive flood of questions misunderstanding how intentation works in Python. I won't lose any sleep on closing these questions as typos, because in the case of Python, they are. Commented Dec 18, 2020 at 13:55
  • 2
    @Zoe Like I said, the OP thought that the update function didn't belong in the loop, not how they neglected to indent that line.
    – Red
    Commented Dec 18, 2020 at 13:56
  • 5
    You yourself have said it's an indentation error; the function was poorly intended, and as a result was called outside instead of inside the loop. You've even illustrated the proper placement in the answer, with no mention of it being a misunderstanding. You have no proof that OP claimed that. I looked at the raw question, and there's no mention of it. If it argued about the .flip method, that would've been a different question, but it didn't. Ergo, typo. I completely support the typo closure and subsequent deletion. Commented Dec 18, 2020 at 13:58
  • 7
    @AnnZen: I think you're guessing on what op might have thought. Noone knows whether this was caused because op thinks that flip should be outside of the loop or because op simply forgot to indent. There is even a second answer on the question that thinks it's an indentation error.
    – BDL
    Commented Dec 18, 2020 at 14:00
  • 1
    @Zoe "You yourself have said it's an indentation error" No I haven't.
    – Red
    Commented Dec 18, 2020 at 14:00
  • 1
    @BDL Actually, they didn't say anything about indentation errors.
    – Red
    Commented Dec 18, 2020 at 14:01
  • 3
    Noticed that after the fact, but you've illustrated the correct indentation once again without mentioning that it's a misunderstanding of how it's meant to be used, because you can't prove it's a misunderstanding in how it's meant to be used. Commented Dec 18, 2020 at 14:01
  • 1
    @Zoe Good point, I just added it.
    – Red
    Commented Dec 18, 2020 at 14:05
  • 2
    The addition to your answer still doesn't make the situation better. The question is still likely to be based on a misunderstanding; see BDLs comment and the other answer on the SO question. Commented Dec 18, 2020 at 14:05
  • 1
    @Zoe I think you're guessing on what op might have thought.
    – Red
    Commented Dec 18, 2020 at 14:06
  • 3
    Also, BDLs ocmment matters because even if you try to make the assumption OP misunderstood, assuming a misunderstanding requires knowing what OP is thinking, where as the existence of an indentation error is completely objective. There are 4 spaces (or a tab or whatever other form of indentation character you prefer) missing that broke the code, regardless of what you feel like putting in your answer Commented Dec 18, 2020 at 14:06
  • 1
    @Zoe Actually, it's more like the other way around; the code they used had a mistake in it, it's completely objective that the code was intended to be that way, and requires an explanation on why it should be different.
    – Red
    Commented Dec 18, 2020 at 14:09
  • 4
    @Zoe: I actually think that both reasons are equally likely. I just don't think that in either case the question as it stands now serves any purpose because even if Ann Zen's explanation is what op was looking for, it is impossible to search/find this question if you have the same problem.
    – BDL
    Commented Dec 18, 2020 at 14:09

1 Answer 1

17

As @Zoe said

Because it had no future value

You simply fixed the issue of a particular code so I doubt someone in the future will be writing the exact same code and facing the exact same issue.

In order to give a value to the question you can try to make your answer a generic one addressing the indentation issue and explaining why it's important when writing a Python code. Wait, this sounds like the basics of Python so I am pretty sure there is a ton of duplicates explaining this.

After 5 seconds of searching, I got this: I'm getting an IndentationError. How do I fix it?


If you are not convinced with that close reason we can close the question as a duplicate of the above one (or a better one1) and we delete it later since it's a trivial nth-duplicate because I am pretty sure people face indentation issue everyday.

1: I am not a python expert so I am pretty sure there is a more suitable question. In all the cases, I am convinced that there is a trivial duplicate.

7
  • "I doubt someone in the future will be writing the exact same code and facing the exact same issue." It's really likely that a user would think that the update function belong out of the loop, and wonder why the image is not fully displayed.
    – Red
    Commented Dec 18, 2020 at 14:38
  • "After 5 seconds of searching I got this" this did not involve any error, so how would the user know to search that?
    – Red
    Commented Dec 18, 2020 at 14:39
  • "we can close the question as a duplicate of the above" how? There is no indentation error in the OP's code, it runs smoothly, but not how they wanted it to.
    – Red
    Commented Dec 18, 2020 at 14:40
  • @AnnZen so how would the user know to search that? --> it's not for the user to search, it's for your and other more experienced user to point to the duplicate. This is the purpose of the duplicate. Commented Dec 18, 2020 at 14:41
  • There is no indentation error in the OP's code, so it can't be that duplicate.
    – Red
    Commented Dec 18, 2020 at 14:41
  • 10
    @AnnZen don't make the common mistake of reading only titles. No one said there is an indentation error. I never used the word error in my answer (it's only the title of the linked question). I said that the main issue was caused by a missed indentation. If you understand how indendattion works you will not make the same mistake. The question I used is a canonical one detailing indentation Commented Dec 18, 2020 at 14:43
  • The body of the post says there's an indentation error as well.
    – Red
    Commented Dec 18, 2020 at 15:12

You must log in to answer this question.

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