Oct-17-2019, 07:20 PM
(This post was last modified: Oct-17-2019, 07:30 PM by Drone4four.)
Hi @knackwurstbagel! Thank you for reading and experimenting with my script. Your reply contains the solution that I needed. I know my script at this point is large so I appreciate your time, my friend.
I don’t understand the diff output you shared. So instead I just copied your new script into a new text file and then compared yours with mine using my favourite difftool, p4merge. With p4merge I was able to see the formatting and cosmetic changes where you indented some of my strings and such to make it easier to read.
I had realized that global variables should be used sparingly but I wasn’t sure how else to process the line number. However now that you have made the trivial change (at line 120), it is clear how straight forward the solution was. Instead of passing in the
I’ve taken a look at your link to PyBites’ blog post on how to use the Python debugger. I’m not sure I understand it fully yet. I already have alotta new questions. I’m gonna jump in now and I'll write a new forum thread here with some more questions if need be.
Thanks again!
I don’t understand the diff output you shared. So instead I just copied your new script into a new text file and then compared yours with mine using my favourite difftool, p4merge. With p4merge I was able to see the formatting and cosmetic changes where you indented some of my strings and such to make it easier to read.
I had realized that global variables should be used sparingly but I wasn’t sure how else to process the line number. However now that you have made the trivial change (at line 120), it is clear how straight forward the solution was. Instead of passing in the
request
(as I had it), you just passed in book[line_index]
. That was easy enough! =)I’ve taken a look at your link to PyBites’ blog post on how to use the Python debugger. I’m not sure I understand it fully yet. I already have alotta new questions. I’m gonna jump in now and I'll write a new forum thread here with some more questions if need be.
Thanks again!