9

I have a SO question How do I declare empty variables with self in Python , being technically correct and overall sane.

Yet another time I get downvotes out of nowhere, which would be OK by itself, but

  1. because of this I have a ban warning

  2. I can see questions that can be answered by opening the language manual on first search occurrence upvoted to +300 and their replies as well.

Isn't it kind of strange? The questions that are considered strange by someone are downvoted, and therefore I cannot have use of the site in full. The questions which are just a information request are upvoted, despite the fact topic starter has done literally nothing to get his/her answer himself?

13
  • meta.stackoverflow.com/questions/250060/…
    – gnat
    Commented Jul 1, 2014 at 12:23
  • If this is opinion based (I don't know Python at all, so I'm relying on what you've said), it should be closed as such.
    – Joe
    Commented Jul 1, 2014 at 13:02
  • As I just commented on the quesiton, it's absolutely unclear what you actually want to achieve. it's not "overall sane" at all, and it's not "opinion-based" just because you throw an "is this pythonic" in there.
    – l4mpi
    Commented Jul 1, 2014 at 14:35
  • I could be wrong, but I'm pretty sure that you don't get a ban warning for just one bad question...
    – AstroCB
    Commented Jul 1, 2014 at 15:45
  • @AstroCB He doesn't have just one bad question.
    – Servy
    Commented Jul 1, 2014 at 15:52
  • @Servy That was my point.
    – AstroCB
    Commented Jul 1, 2014 at 15:52
  • @AstroCB I see nothing in the OP to indicate that he feels this is his only problematic question.
    – Servy
    Commented Jul 1, 2014 at 15:54
  • 1
    @Servy I just meant that too much emphasis was put on because of this I have a ban warning.
    – AstroCB
    Commented Jul 1, 2014 at 15:55
  • 1
    FYI, there are numerous spelling and punctuation issues with your question.. Don't fix them yet, I'm in the middle of doing that for you right now...fixed.
    – user456814
    Commented Jul 1, 2014 at 16:11
  • 1
    @l4mpi "I want something like ... Is there a way to do it?" Is this hard to understand? Or you just dislike that the question is on anther level of interest that you expect,and therefore - it's not sane? As you correctly said, I've had this situation few times earlier, and I was thinking I'm doing stuff wrong. But now, I just want to get a clear understanding what is needed for my question to be let alone waiting for someone who bothers to read and answer the easy question?
    – user3292534
    Commented Jul 1, 2014 at 19:36
  • I've got 2 answers overall, and I've accepted this answer. Why is my question edited and but on hold as unclear(!!!) if I have two nice answers with code samples that even got upvotes?
    – user3292534
    Commented Jul 1, 2014 at 19:51
  • @ror6ax the fact that an answer matches what you need doesn't mean your description was not unclear. As I showed in my comment in your question, there are at least 4 ways to interpret your question - of course one can take a guess or just answer all of the interpretations but that's not exactly useful. You gave a vague and ambiguous description of a requirement, without a specific example of what you actually wanted to achieve (what's the purpose of having an "empty" attribute?), which you now cleared up a bit with your edit, but the first revision was certainly unclear and thus not useful.
    – l4mpi
    Commented Jul 1, 2014 at 21:37
  • But regarding your edit, "C-like behaviour" is still not really clear because that's actually not "empty" at all, just either initialized to 0 or a random value - see for example this question. Also, python is not C; there are concepts in both languages which simply do not exist in the other, thus the question seems somewhat like an XY problem as you simply try to apply a C concept to python. For future questions, if you don't know how to apply something you know to a new language, you should focus a bit more on your goal than the specific concept.
    – l4mpi
    Commented Jul 1, 2014 at 21:46

1 Answer 1

7

Posts aren't voted on purely for being technically correct or incorrect. The voting tooltip for your question states:

This question does not show any research effort; it is unclear or not useful.

So the people that downvoted appear to have felt that you didn't do sufficient research before asking your question, that it wasn't clear, or that it wasn't a useful question.

3
  • 4
    Okay, I got it. I can write class in Python, I know the usual way do to it, I ask if another way is available and is "right" in the terms of style and stuff. stackoverflow.com/questions/509211/pythons-slice-notation This on the other hand literally says "Guys, please re-tell me the documentation" and gets 490 upvotes.
    – user3292534
    Commented Jul 1, 2014 at 19:33
  • 4
    @ror6ax The fact that someone else asked a bad question and got upvotes doesn't meant that you can ask a bad question and get upvotes for it. Some bad questions get upvotes. I'm not going to lie and say otherwise. That is the problem. It doesn't mean you should emulate that behavior.
    – Servy
    Commented Jul 1, 2014 at 19:35
  • 1
    @ror6ax Your question sounds like this to me: Imagine you've only ever ridden a bicycle, then you buy a car, only to have it towed to the repair shop and you ask them "Where are the handlebars?" There is an expectation that at a minimum you will understand the basics of using a language before you ask a question about it. Plenty of tutorials exist to get you to that point and I personally consider it a huge waste of time to have to answer such trivial questions when the answer is a google search or a skim of the documentation away.
    – Blackhawk
    Commented Aug 15, 2014 at 21:39

You must log in to answer this question.