In a message of Thu, 18 Jun 2015 04:40:05 -, Anubhav Yadav writes:
>So I need to create a copy of the list before trying to iterate through the
>list.
>Thanks a lot everyone for their answers.
Er, I think you understand, but what you need to do is to make a copy
of the list, and _interate thro
On 18/06/15 15:13, Ali Moradi wrote:
now i came up with this code, which i can't now show my words in the list
box! ?
> root = Tk()
> l = Listbox(root, height=10)
> s = Scrollbar(root, orient=VERTICAL)
> l.configure(yscrollcommand=s.set)
> l.pack()
> root.mainloop()
I'd leave out the scrollb
Hi, i studied your book that u said before.
now i came up with this code, which i can't now show my words in the list
box! ?
http://pastebin.com/GpWc8Pnw
now, i've got a better idea! , i can use two lists like this code (
http://pastebin.com/sJj39UjA), just the items should be loaded from my
dat
On 18/06/15 11:31, David Aldrich wrote:
I have a list of paths that contain files I want to check.
paths = [pathA, pathB]
then I check the files in each path and get a list of files that differ in some
way:
for path in paths
differing_files_list = compare_files(path)
I would like to st
Thanks very much for all the answers to my question. I have taken the advice to
return a list of differing files, rather than raise an exception.
I do have a follow-up question:
I have a list of paths that contain files I want to check.
paths = [pathA, pathB]
then I check the files in each pa
On 18/06/15 05:40, Anubhav Yadav wrote:
So I need to create a copy of the list before trying to iterate through the
list.
Only if you are going to change it.
The problem you had was that you were removing items
from the thing you were iterating over. As a result
the other items effectively move
So I need to create a copy of the list before trying to iterate through the
list.
Thanks a lot everyone for their answers.
Cheers.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/list