Python Forum
How to ask smart questions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to ask smart questions
#1
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 :)






.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply
#2
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.
Reply
#3
yeah its taken straight from the source
http://www.catb.org/esr/faqs/smart-quest...l#symptoms

ill update it.

EDIT:
updated.
Recommended Tutorials:
Reply
#4
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
Reply
#5
better, except the improper english is driving me nuts....

I am getting IndexError?
to
I am getting an IndexError?
Recommended Tutorials:
Reply
#6
(Feb-12-2017, 09:59 PM)metulburr Wrote: better, except the improper english is driving me nuts....
Agree changed.
Reply
#7
Like it
Reply
#8
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to ask Smart Questions (thread title expansion) metulburr 2 4,261 Jan-20-2019, 10:27 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020