{"action":"created","issue":{"url":"https://api.github.com/repos/IssueMigrationTest/Test5/issues/136","labels_url":"https://api.github.com/repos/IssueMigrationTest/Test5/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/IssueMigrationTest/Test5/issues/136/comments","events_url":"https://api.github.com/repos/IssueMigrationTest/Test5/issues/136/events","html_url":"https://github.com/IssueMigrationTest/Test5/issues/136","id":65114410,"number":136,"title":"class var type infer error","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/IssueMigrationTest/Test5/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/IssueMigrationTest/Test5/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/IssueMigrationTest/Test5/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T01:20:24Z","updated_at":"2015-03-30T01:20:30Z","closed_at":null,"body":"**Issue by jason.mi...@gmail.com**\n_15 Jun 2011 at 2:52 GMT_\n_Originally opened on Google Code_\n\n----\n\n```\n\nCorrect if uncomment the Logger.Init() in the last 2 lines\nLogger.LoggerFile  should be typed as file* in both cases instead of void*\n\ntest case:\nclass Logger(object):\n\tdebug = False\n\tLoggerFile = None\n\t\n\t@staticmethod\n\tdef Init( LoggerFileName = 'log' ):\n\t\tLogger.LoggerFile = open( LoggerFileName, 'w' )\n\n\t@staticmethod\n\tdef Print( str, Force = False ):\n\t\tif Logger.debug == True or Force == True:\n\t\t\tprint str\n\t\tif Logger.LoggerFile != None:\n\t\t\tLogger.LoggerFile.write( str + '\\n' )\n\t\t\t\n\t\t\t\nif __name__ == \"__main__\":\n\t#Logger.Init()\n\tLogger.Print('asdf')\n\n\n\n```\n\n\n"},"comment":{"url":"https://api.github.com/repos/IssueMigrationTest/Test5/issues/comments/87507435","html_url":"https://github.com/IssueMigrationTest/Test5/issues/136#issuecomment-87507435","issue_url":"https://api.github.com/repos/IssueMigrationTest/Test5/issues/136","id":87507435,"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-30T01:20:30Z","updated_at":"2015-03-30T01:20:30Z","body":"**Comment by [Mark Dufour](/srepmub)**\n_15 Jun 2011 at 9:25 GMT_\n\n----\n\n```\nthanks for reporting!\n\nI'm afraid it's a bit tricky to deal with this like cpython does, and it's just \nhow shedskin works at the moment. if 'Init' is not called, LoggerFile is always \nNone, gets a type of 'void *', and this doesn't have a 'write' method. you'll \nhave to puzzle a bit to get to work. for example if you're always under UNIX \nyou could use open('/dev/null'). or perhaps nicer, always call Init, and in \nthere do something like this:\n\nLogger.LoggerFile = open(..) if loggerFileName else None\n```\n\n\n* Changed state: **WontFix**\n\n\n"}}