{"action":"created","issue":{"url":"https://api.github.com/repos/daler/pybedtools/issues/154","labels_url":"https://api.github.com/repos/daler/pybedtools/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/daler/pybedtools/issues/154/comments","events_url":"https://api.github.com/repos/daler/pybedtools/issues/154/events","html_url":"https://github.com/daler/pybedtools/issues/154","id":121266076,"number":154,"title":"v0.7/0.7.1 does not longer support long types as start/end position","user":{"login":"rolfschr","id":1188465,"avatar_url":"https://avatars.githubusercontent.com/u/1188465?v=3","gravatar_id":"","url":"https://api.github.com/users/rolfschr","html_url":"https://github.com/rolfschr","followers_url":"https://api.github.com/users/rolfschr/followers","following_url":"https://api.github.com/users/rolfschr/following{/other_user}","gists_url":"https://api.github.com/users/rolfschr/gists{/gist_id}","starred_url":"https://api.github.com/users/rolfschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolfschr/subscriptions","organizations_url":"https://api.github.com/users/rolfschr/orgs","repos_url":"https://api.github.com/users/rolfschr/repos","events_url":"https://api.github.com/users/rolfschr/events{/privacy}","received_events_url":"https://api.github.com/users/rolfschr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-09T15:09:46Z","updated_at":"2015-12-09T18:44:57Z","closed_at":"2015-12-09T18:23:21Z","body":"I discovered that the following code\r\n\r\n```\r\n#!/usr/bin/python\r\nimport pybedtools\r\nregions = [('chr2', long(1), long(2), 'tag')]\r\nb = pybedtools.BedTool(regions)\r\n```\r\ndoes not work on my pybedtools 0.7.1 installation. It works fine with 0.6.9. The following works fine, too:\r\n\r\n```\r\n#!/usr/bin/python\r\nimport pybedtools\r\nregions = [('chr2', int(1), int(2), 'tag')]\r\nb = pybedtools.BedTool(regions)\r\n```\r\n\r\nNow I am not saying this is a bug, but it definetely crashed stuff that was working previously. In my particuar case, the start/end positions come from a database and were ``long`` by default. Running ``str()`` or ``int()`` on the values fixes _my_ problem."},"comment":{"url":"https://api.github.com/repos/daler/pybedtools/issues/comments/163353964","html_url":"https://github.com/daler/pybedtools/issues/154#issuecomment-163353964","issue_url":"https://api.github.com/repos/daler/pybedtools/issues/154","id":163353964,"user":{"login":"rolfschr","id":1188465,"avatar_url":"https://avatars.githubusercontent.com/u/1188465?v=3","gravatar_id":"","url":"https://api.github.com/users/rolfschr","html_url":"https://github.com/rolfschr","followers_url":"https://api.github.com/users/rolfschr/followers","following_url":"https://api.github.com/users/rolfschr/following{/other_user}","gists_url":"https://api.github.com/users/rolfschr/gists{/gist_id}","starred_url":"https://api.github.com/users/rolfschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolfschr/subscriptions","organizations_url":"https://api.github.com/users/rolfschr/orgs","repos_url":"https://api.github.com/users/rolfschr/repos","events_url":"https://api.github.com/users/rolfschr/events{/privacy}","received_events_url":"https://api.github.com/users/rolfschr/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T18:44:57Z","updated_at":"2015-12-09T18:44:57Z","body":"Yeah, I read the change log for 0.7 so I suspected that it's the rewrite under the hood. Thanks for fixing this so fast!"}}