denull / stagger

Automatically exported from code.google.com/p/stagger
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

tag[TIT2] should return a single frame, not a 1-element list #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For frame types that don't _allow_duplicates, Tag's __getitem__ should 
automatically extract the single frame from the list stored in _frames.

>>> tag[TIT2]
TIT2(text="Staralfur")

>>> tag._frames[TIT2]
[TIT2(text="Staralfur")]

Also, __setitem__ should throw an error if it is given a multi-element list.

Original issue reported on code.google.com by Karoly.Lorentey on 15 Jun 2009 at 2:36

GoogleCodeExporter commented 9 years ago
This issue was closed by r21.

Original comment by Karoly.Lorentey on 20 Jun 2009 at 4:01