Python Forum
How to ask smart questions - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Board (https://python-forum.io/forum-26.html)
+--- Thread: How to ask smart questions (/thread-2036.html)



How to ask smart questions - Ofnuts - Feb-12-2017

It occurs to me that the examples in the How to ask smart questions help page are completely outlandish for most people posting here (electronics? Linux kernel? Compilation? LOL Whut?).

A better exemple would be:

Quote:I get errors.

vs:

Quote:My code is:
x=None
print len(x)
and I get:
Error:
Traceback (most recent call last):   File "<stdin>", line 1, in <module> TypeError: object of type 'NoneType' has no len()

Finding a better typical source code and related error left as an exercise to the community :)






.


RE: How to ask smart questions - snippsat - Feb-12-2017

It's a little as the same Please use code tags thread.
There is no solution for this,
there will be post with bad question and no code tag.

I agree that we could modify and simplify the content(to much text no one read all that),
and specify it more against Python errors as you suggests.


RE: How to ask smart questions - metulburr - Feb-12-2017

yeah its taken straight from the source
http://www.catb.org/esr/faqs/smart-questions.html#symptoms

ill update it.

EDIT:
updated.


RE: How to ask smart questions - snippsat - Feb-12-2017

I have changed error and rearranged text,code example work Python 2/3 and has PEP-8 space Wink
How dos it look now?
How to ask Smart Questions


RE: How to ask smart questions - metulburr - Feb-12-2017

better, except the improper english is driving me nuts....

I am getting IndexError?
to
I am getting an IndexError?


RE: How to ask smart questions - snippsat - Feb-12-2017

(Feb-12-2017, 09:59 PM)metulburr Wrote: better, except the improper english is driving me nuts....
Agree changed.


RE: How to ask smart questions - Larz60+ - Feb-12-2017

Like it


RE: How to ask smart questions - Kebap - Feb-16-2017

Quote:Bad Question:
I am getting an IndexError?

More like "My code does not work!!?"

Also, in Smart Question, would be nice to add "I am trying to do X" section, because newbies oftentimes try a wrong tool, and won't get much help if we explain, how to better use this wrong tool instead of changing to a better tool for their goal