deronbrowne / Bookkeeper-Buddy

0 stars 0 forks source link

view_inventory #8

Closed deronbrowne closed 7 years ago

deronbrowne commented 7 years ago

@vkee No idea what's wrong here. For some reason when I want to view the inventory I've created, it skips the entire for loop and it just goes to the next print statement at line 55.

deronbrowne commented 7 years ago

I tried seeing which part of it is running by using "print 'here'" and the strange thing is that it's entering the for loop, but not executing any of the statements there.

vkee commented 7 years ago

How can I replicate the issue? (add those to the issues in the future).

You should print out 'x' before entering the loop. Also in the future when using range to generating the indices use xrange, it's faster.

vkee commented 7 years ago

You resolved it?

deronbrowne commented 7 years ago

Yeah. This was the thing where I was iterating over the list as I changed it.