Yeah, I did a lot of python work for my high school's Senior Project
(so, spring 2007); hadn't coded much since then, was rusty on the
"pritn stattements for debugging" part.
And I was trying to look at the code mentioned in the traceback, but
due to my own mistake, I hadn't detected the problems with the lines
that the traceback was pointing to.
Quoting Kent Johnson <[EMAIL PROTECTED]>:
On Thu, Aug 28, 2008 at 11:49 AM, Alan Gilfoy
<[EMAIL PROTECTED]> wrote:
The booster pack generator (my use of random.sample as described in a
previous message) is working as intended now.
There was a rather stupid typo in my code that was causing it to go wonky.
Y'all still helped, though. A few people replied, but a bit of advice from:
W W <[EMAIL PROTECTED]> pointed me in the right direction.
As well as the lesson about using print statements to debug, I hope
you have learned to believe the interpreters error messages. It
usually knows what it is talking about :-)
Kent
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor