Mark Tolonen wrote: > It's a good idea to cut-and-paste actual code and actual output. Your > above code doesn't work.
I'd just like to clarify, in case someone misunderstood, it isn't a really good idea to simply cut-and-paste actual code and actual output for 2 reasons: 1) cut-and-paste means you lost your own copy of the code :) 2) you should simplify your own code before copy-and-paste to a mailing list. The simplified code should: 1) run when copy-and-pasted to the interpreter[1], 2) still generates the error/unexpected result[2], 3) demonstrate the intent of the code. In many cases, trying to simplify the code would reveal the error to yourself, and in other cases it makes it easier for others to spot the errors. [1] except when the question is why a code works in an interpreter but not the other or vice versa; or when the code doesn't even run at all [2] it is easier to debug a wrong code than debug a correct code _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
