{"action":"created","issue":{"url":"https://api.github.com/repos/shedskin/shedskin/issues/99","labels_url":"https://api.github.com/repos/shedskin/shedskin/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/shedskin/shedskin/issues/99/comments","events_url":"https://api.github.com/repos/shedskin/shedskin/issues/99/events","html_url":"https://github.com/shedskin/shedskin/issues/99","id":65279716,"number":99,"title":"enumerated list type inference doesn't work","user":{"login":"ShedskinBot","id":11687421,"avatar_url":"https://avatars.githubusercontent.com/u/11687421?v=3","gravatar_id":"","url":"https://api.github.com/users/ShedskinBot","html_url":"https://github.com/ShedskinBot","followers_url":"https://api.github.com/users/ShedskinBot/followers","following_url":"https://api.github.com/users/ShedskinBot/following{/other_user}","gists_url":"https://api.github.com/users/ShedskinBot/gists{/gist_id}","starred_url":"https://api.github.com/users/ShedskinBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShedskinBot/subscriptions","organizations_url":"https://api.github.com/users/ShedskinBot/orgs","repos_url":"https://api.github.com/users/ShedskinBot/repos","events_url":"https://api.github.com/users/ShedskinBot/events{/privacy}","received_events_url":"https://api.github.com/users/ShedskinBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shedskin/shedskin/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/shedskin/shedskin/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/shedskin/shedskin/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-03-30T19:07:50Z","updated_at":"2015-03-30T19:09:58Z","closed_at":null,"body":"**Issue by danny.m...@gmail.com**\n_15 Oct 2010 at 9:34 GMT_\n_Originally opened on Google Code_\n\n----\n\n```\nclass A(object):\n        status_positions = [\"C\", \"Z\", \"I\", \"D\", \"B\", \"5\", \"V\", \"N\"]\n\n        def pop_status(self):\n                flags_bin = 42\n                flags = set([(flag_name if (flags_bin & (1 << flag_bit)) != 0 else None) for flag_bit, flag_name in enumerate(self.__class__.status_positions)])\n                print(flags)                                                                                                               \n\na = A()\na.pop_status()\n\n\n*** SHED SKIN Python-to-C++ Compiler 0.5 ***\nCopyright 2005-2010 Mark Dufour; License GNU GPL version 3 (See LICENSE)\n\n[iterative type analysis..]\n**\niterations: 2 templates: 75\n[generating c++ code..]\n*WARNING* a.py:8: variable 'flag_bit' has no type\n*WARNING* a.py:8: variable 'flag_name' has no type\n\n```\n\n\n\nAttachments:\n* [a.py](https://storage.googleapis.com/google-code-attachments/shedskin/issue-99/comment-0/a.py)\n\n"},"comment":{"url":"https://api.github.com/repos/shedskin/shedskin/issues/comments/87794685","html_url":"https://github.com/shedskin/shedskin/issues/99#issuecomment-87794685","issue_url":"https://api.github.com/repos/shedskin/shedskin/issues/99","id":87794685,"user":{"login":"ShedskinBot","id":11687421,"avatar_url":"https://avatars.githubusercontent.com/u/11687421?v=3","gravatar_id":"","url":"https://api.github.com/users/ShedskinBot","html_url":"https://github.com/ShedskinBot","followers_url":"https://api.github.com/users/ShedskinBot/followers","following_url":"https://api.github.com/users/ShedskinBot/following{/other_user}","gists_url":"https://api.github.com/users/ShedskinBot/gists{/gist_id}","starred_url":"https://api.github.com/users/ShedskinBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShedskinBot/subscriptions","organizations_url":"https://api.github.com/users/ShedskinBot/orgs","repos_url":"https://api.github.com/users/ShedskinBot/repos","events_url":"https://api.github.com/users/ShedskinBot/events{/privacy}","received_events_url":"https://api.github.com/users/ShedskinBot/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T19:09:58Z","updated_at":"2015-03-30T19:09:58Z","body":"**Comment by danny.m...@gmail.com**\n_16 Nov 2010 at 9:35 GMT_\n\n----\n\n```\nHi,\n\nI moved TextView to \"c64.py\" now, so it should work out of the box.\n\nGood to know that the \"AND\" works now, I don't have to put (more, yes yes) \nweird special cases into the cpu emulator that way ;-)\n\nSo far I tested \"POKE646,15\" which works and a small program:\n\n64INPUTA\n99GOTO64\n\nWhich works, too.\nUnfortunately the space and backspace key don't work right now, still searching \nwhy. The 1 key does work somewhat flaky. Other keys seem to work fine.\nHardware emulation is hard ;-)\n\nCPU-wise, it should work, so normal BASIC programs should be okay.\nSound and floppy are not implemented yet...\n\nGraphics support is err... minimal (text-only right now).\nSigh, I should at least implement sprites, but first have to decide how to do \ncaching (after all, don't want to generate new pixbufs every time I redraw the \nscreen  :) )\n\nAnyway, I \"git pull\"ed your shedskin updates and installed it via setup.py, \nthen tried\nshedskin -e c64.py\n\nand I get \n  in shared.py line 44\nIOError: [Errno 2] No such file or directory \n'/usr/lib/python2.6/site-packages/shedskin/illegal'\n\nWhich doesn't exist. Hmm...\n\n```\n\n\n\n\n"}}