2
"""Hold the Sequence class, which stores a dicom sequence (list of Datasets)"""
3
# Copyright (c) 2008 Darcy Mason
4
# This file is part of pydicom, released under a modified MIT license.
5
# See the file license.txt included with this distribution, also
6
# available at http://pydicom.googlecode.com
8
from dicom.dataelem import DataElement
11
"""Slightly modified python list to print nicely"""
13
lines = [str(x) for x in self]
14
return "[" + "".join(lines) + "]"
17
formatstr = "<%(classname)s, length %(count)d, at %(id)X>"
18
return formatstr % {'classname':self.__class__.__name__, 'id':id(self), 'count':len(self)}