eve-val / evelink

Python bindings for the EVE API.
Other
91 stars 30 forks source link

Question: why isn't Char.character_sheet().result['skills'] a dict? #209

Closed hbbtstar closed 9 years ago

hbbtstar commented 9 years ago

out of curiosity, why is that a list and not a dict? For example, wouldn't it be easier to do:

character_sheet.result['skills'][1212]['name']

instead of having to iterate over a list to find a name? (unless I'm an utter dunce and not seeing something obvious).

I'm sure there's a good reason for it, but I just can't see it so I was just asking.

ayust commented 9 years ago

Actually I don't think there's a good reason for it - I don't know why it would be a list either. That can change in the next compatibility-breaking update.

bastianh commented 9 years ago

I guess best would be a dictionary with namedtuple values ? btw, there is no 'name' in the skills list in the character sheet :)