Re: Dealing with Lists

2013-09-11 Thread Peter Otten
stas poritskiy wrote: By now your post consists of over 1300 lines, most of them containing nothing but quoting marks. Please be courteous to your readers and avoid that. https://wiki.python.org/moin/GoogleGroupsPython may be helpful. > ok, while writing this, i figured out where those elemen

Re: Dealing with Lists

2013-09-11 Thread stas poritskiy
ok, while writing this, i figured out where those elements are located, so each element is always at the position 0, and to get deeper i have to follow something similar to this chopGrp = [[u'arms', [u'a', [u'super', [u'group', [u'type', [u'is', [u'here']]] print chopGrp[1][1][1][1][0] (th

Re: Dealing with Lists

2013-09-11 Thread stas poritskiy
ok, so i think that getting the nested list is a little more for what i need, however, i could be wrong here, i got confused with Dave's suggestion. so, i got my lists broken up in a list of lists, but how would i access each of the elements? When i implement this solution my output list (the new

Re: Dealing with Lists

2013-09-10 Thread stas poritskiy
Steven, i think you got on the right track with your proposal, although i am not going after the "visual" represenatation that you were able to create, rather a structural one, i think this might work for me, instead of printing, i could be using my commands to make elements (instances of API obj

Re: Dealing with Lists

2013-09-10 Thread stas poritskiy
Guys, i appreciate the effort put in here, i guess i should've started a little wider on description. sorry for confusion, here it goes: I am developing a script/application that uses adobe Scene7 API. the idea here is mass process a ton of files (hundreds of thousands), we generate image files

Re: Dealing with Lists

2013-09-10 Thread Steven D'Aprano
On Wed, 11 Sep 2013 02:24:44 +, Dave Angel wrote: > On 10/9/2013 22:14, Steven D'Aprano wrote: > >> On Tue, 10 Sep 2013 14:08:45 -0700, stas poritskiy wrote: >> >>> Greetings to all! >>> >>> i ran into a little logic problem and trying to figure it out. >>> >>> my case is as follows: >>> >

Re: Dealing with Lists

2013-09-10 Thread Dave Angel
On 10/9/2013 22:14, Steven D'Aprano wrote: > On Tue, 10 Sep 2013 14:08:45 -0700, stas poritskiy wrote: > >> Greetings to all! >> >> i ran into a little logic problem and trying to figure it out. >> >> my case is as follows: >> >> i have a list of items each item represents a Group >> i need to

Re: Dealing with Lists

2013-09-10 Thread Steven D'Aprano
On Tue, 10 Sep 2013 14:08:45 -0700, stas poritskiy wrote: > Greetings to all! > > i ran into a little logic problem and trying to figure it out. > > my case is as follows: > > i have a list of items each item represents a Group > i need to create a set of nested groups, > so, for example: > >

Re: Dealing with Lists

2013-09-10 Thread Roy Smith
In article <[email protected]>, stas poritskiy wrote: > So head is parent of neck, while neck is parent of arms and so on. The head bone's connected to the neck bone. The neck bone's connected to the arm bone... -- https://mail.python.org/mailman/listinfo

Re: Dealing with Lists

2013-09-10 Thread Dave Angel
On 10/9/2013 18:11, stas poritskiy wrote: Please include some quotation from the message you're replying to. We can't tell who this was responding to until the very last line, where you mention my name. But since you're using buggy googlegroups, you'd better also read http://wiki.python.org/mo

Re: Dealing with Lists

2013-09-10 Thread stas poritskiy
Those simbols are just for visual representation. I need to store each of the first elements of a par, so I can reference to them as to a parent of another group. So head is parent of neck, while neck is parent of arms and so on. I'm not sure I understand how to apply your chop list example, d

Re: Dealing with Lists

2013-09-10 Thread Dave Angel
On 10/9/2013 17:08, stas poritskiy wrote: > Greetings to all! > > i ran into a little logic problem and trying to figure it out. > > my case is as follows: > > i have a list of items each item represents a Group > > i need to create a set of nested groups, > > so, for example: > > myGroups = ["he

Re: Dealing with Lists

2013-09-10 Thread matt . komyanek
What you're asking is a Ragged Hierarchy. On Tuesday, September 10, 2013 5:08:45 PM UTC-4, stas poritskiy wrote: > Greetings to all! > > > > i ran into a little logic problem and trying to figure it out. > > > > my case is as follows: > > > > i have a list of items each item represents a

Re: Dealing with Lists

2013-09-10 Thread stas poritskiy
there is a little bit more to this, but i think when i will be able to process the list the way i need it i can continue on my own. -- https://mail.python.org/mailman/listinfo/python-list