{"action":"created","issue":{"url":"https://api.github.com/repos/shedskin/shedskin/issues/54","labels_url":"https://api.github.com/repos/shedskin/shedskin/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/shedskin/shedskin/issues/54/comments","events_url":"https://api.github.com/repos/shedskin/shedskin/issues/54/events","html_url":"https://github.com/shedskin/shedskin/issues/54","id":65260485,"number":54,"title":"imprecise result after max iterations","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":29,"created_at":"2015-03-30T17:26:41Z","updated_at":"2015-03-30T17:29:20Z","closed_at":null,"body":"**Issue by frap...@gmail.com**\n_19 Jan 2010 at 2:54 GMT_\n_Originally opened on Google Code_\n\n----\n\n```\nWhat steps will reproduce the problem?\n1. [frafra@rocketman shedskin-read-only]$ ./shedskin.py life.py\n*** SHED SKIN Python-to-C++ Compiler 0.3 ***\nCopyright 2005-2009 Mark Dufour; License GNU GPL version 3 (See LICENSE)\n\n[iterative type analysis..]\n  File \"./shedskin.py\", line 5, in <module>\n    shedskin.main()\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/__init__.py\",\nline 90, in main\n    infer.analyze(name)\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/infer.py\", line\n942, in analyze\n    iterative_dataflow_analysis()\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/infer.py\", line\n689, in iterative_dataflow_analysis\n    propagate()\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/infer.py\", line\n144, in propagate\n    cpa(node, worklist)\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/infer.py\", line\n350, in cpa\n    cp = cartesian_product(callnode, worklist)\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/infer.py\", line\n297, in cartesian_product\n    funcs = possible_functions(node)\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/infer.py\", line\n188, in possible_functions\n    objexpr, ident, direct_call, method_call, constructor, mod_var,\nparent_constr = analyze_callfunc(expr, True)\n  File \"/home/frafra/Scaricati/shedskin-read-only/shedskin/shared.py\", line\n622, in analyze_callfunc\n    traceback.print_stack()\n*ERROR* life.py:None: unbound identifier 'None'\n\nWhat version of the product are you using? On what operating system?\n[frafra@rocketman shedskin-read-only]$ uname -a\nLinux rocketman 2.6.32.3-21.fc13.x86_64 #1 SMP Mon Jan 11 16:53:56 UTC 2010\nx86_64 x86_64 x86_64 GNU/Linux\n[frafra@rocketman shedskin-read-only]$ svn up\nAlla revisione 1165.\n\nPlease provide any additional information below.\nI've attached the source. Now, I'm using shedskin because I would like to\nrun this program on my arm/linux little server, but using Python it goes so\nslow :) Using multiprocessing, on a 4x4 table, my Intel Core 2 Duo E7400\nneeds about 10 seconds, but my arm-kirkwood (1.2ghz) needs 5.5 minutes :D\n(~32 times slower).\nIt will ever introduced in shedskin multiprocessing? :D\n```\n\n\n\nAttachments:\n* [life.py](https://storage.googleapis.com/google-code-attachments/shedskin/issue-54/comment-0/life.py)\n\n"},"comment":{"url":"https://api.github.com/repos/shedskin/shedskin/issues/comments/87761884","html_url":"https://github.com/shedskin/shedskin/issues/54#issuecomment-87761884","issue_url":"https://api.github.com/repos/shedskin/shedskin/issues/54","id":87761884,"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-30T17:29:20Z","updated_at":"2015-03-30T17:29:20Z","body":"**Comment by [Mark Dufour](/srepmub)**\n_6 Mar 2010 at 4:53 GMT_\n\n----\n\n```\nI just improved things so defaultdicts can be passed to/from generated extension\nmodules. on return to cpython, they are still converted to regular non-default \ndicts\nthough (and shedskin warns about this), so it's not perfect yet. I will have \nanother\nlook at this when it becomes easier to support.\n```\n\n\n\n\n"}}