{"action":"opened","issue":{"url":"https://api.github.com/repos/darcymason/pydicom/issues/236","labels_url":"https://api.github.com/repos/darcymason/pydicom/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/darcymason/pydicom/issues/236/comments","events_url":"https://api.github.com/repos/darcymason/pydicom/issues/236/events","html_url":"https://github.com/darcymason/pydicom/issues/236","id":123054626,"number":236,"title":"Exception on deepcopy for Sequence elements in Python 2.6","user":{"login":"moloney","id":1376566,"avatar_url":"https://avatars.githubusercontent.com/u/1376566?v=3","gravatar_id":"","url":"https://api.github.com/users/moloney","html_url":"https://github.com/moloney","followers_url":"https://api.github.com/users/moloney/followers","following_url":"https://api.github.com/users/moloney/following{/other_user}","gists_url":"https://api.github.com/users/moloney/gists{/gist_id}","starred_url":"https://api.github.com/users/moloney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moloney/subscriptions","organizations_url":"https://api.github.com/users/moloney/orgs","repos_url":"https://api.github.com/users/moloney/repos","events_url":"https://api.github.com/users/moloney/events{/privacy}","received_events_url":"https://api.github.com/users/moloney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-19T02:07:02Z","updated_at":"2015-12-19T02:07:02Z","closed_at":null,"body":"I only see this in Python2.6. Seems to happen with any dataset that contains a sequence element.  I get an exception when trying to deepcopy the data set:\r\n\r\nTraceback (most recent call last):\r\n  File \"test_failure.py\", line 5, in <module>\r\n    x = deepcopy(dcm)\r\n  File \"/usr/lib/python2.6/copy.py\", line 189, in deepcopy\r\n    y = _reconstruct(x, rv, 1, memo)\r\n  File \"/usr/lib/python2.6/copy.py\", line 334, in _reconstruct\r\n    value = deepcopy(value, memo)\r\n  File \"/usr/lib/python2.6/copy.py\", line 189, in deepcopy\r\n    y = _reconstruct(x, rv, 1, memo)\r\n  File \"/usr/lib/python2.6/copy.py\", line 338, in _reconstruct\r\n    state = deepcopy(state, memo)\r\n  File \"/usr/lib/python2.6/copy.py\", line 162, in deepcopy\r\n    y = copier(x, memo)\r\n  File \"/usr/lib/python2.6/copy.py\", line 255, in _deepcopy_dict\r\n    y[deepcopy(key, memo)] = deepcopy(value, memo)\r\n  File \"/usr/lib/python2.6/copy.py\", line 189, in deepcopy\r\n    y = _reconstruct(x, rv, 1, memo)\r\n  File \"/usr/lib/python2.6/copy.py\", line 329, in _reconstruct\r\n    y.append(item)\r\n  File \"/remote_home/moloney/Software/python/pydicom/pydicom/multival.py\", line 45, in append\r\n    super(MultiValue, self).append(self.type_constructor(val))\r\nAttributeError: 'Sequence' object has no attribute 'type_constructor'"}}