{"action":"opened","issue":{"url":"https://api.github.com/repos/hgrecco/pint/issues/252","labels_url":"https://api.github.com/repos/hgrecco/pint/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/hgrecco/pint/issues/252/comments","events_url":"https://api.github.com/repos/hgrecco/pint/issues/252/events","html_url":"https://github.com/hgrecco/pint/issues/252","id":60521135,"number":252,"title":"copying","user":{"login":"emilienkofman","id":551186,"avatar_url":"https://avatars.githubusercontent.com/u/551186?v=3","gravatar_id":"","url":"https://api.github.com/users/emilienkofman","html_url":"https://github.com/emilienkofman","followers_url":"https://api.github.com/users/emilienkofman/followers","following_url":"https://api.github.com/users/emilienkofman/following{/other_user}","gists_url":"https://api.github.com/users/emilienkofman/gists{/gist_id}","starred_url":"https://api.github.com/users/emilienkofman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilienkofman/subscriptions","organizations_url":"https://api.github.com/users/emilienkofman/orgs","repos_url":"https://api.github.com/users/emilienkofman/repos","events_url":"https://api.github.com/users/emilienkofman/events{/privacy}","received_events_url":"https://api.github.com/users/emilienkofman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T15:48:37Z","updated_at":"2015-03-10T15:48:37Z","closed_at":null,"body":"Hi,\r\n\r\nI'm not sure if it is an issue or if it's a misuse of pint, but I noticed this when deepcopying objects (Python 2.7.8)\r\n\r\n    import pint\r\n    import copy\r\n    ur = pint.UnitRegistry()\r\n    t = ur(\"3mF\")\r\n    u = copy.deepcopy(t)\r\n    u.to(ur.F)\r\n\r\nraises:\r\n\r\n    Traceback (most recent call last):\r\n      File \"<stdin>\", line 1, in <module>\r\n      File \"/usr/local/lib/python2.7/dist-packages/pint/quantity.py\", line 241, in to\r\n        other = UnitsContainer(other)\r\n      File \"/usr/local/lib/python2.7/dist-packages/pint/unit.py\", line 342, in __init__  \r\n        dict.__init__(self, *args, **kwargs)\r\n      File \"/usr/local/lib/python2.7/dist-packages/pint/quantity.py\", line 978, in __iter__\r\n        it_mag = iter(self.magnitude)\r\n    TypeError: 'int' object is not iterable\r\n"}}