{"action":"created","issue":{"url":"https://api.github.com/repos/jcrocholl/pep8/issues/264","labels_url":"https://api.github.com/repos/jcrocholl/pep8/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/jcrocholl/pep8/issues/264/comments","events_url":"https://api.github.com/repos/jcrocholl/pep8/issues/264/events","html_url":"https://github.com/jcrocholl/pep8/issues/264","id":30699110,"number":264,"title":"Not importing files at top of the file is a PEP8 violation","user":{"login":"DavidHwu","id":5856387,"avatar_url":"https://avatars.githubusercontent.com/u/5856387?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHwu","html_url":"https://github.com/DavidHwu","followers_url":"https://api.github.com/users/DavidHwu/followers","following_url":"https://api.github.com/users/DavidHwu/following{/other_user}","gists_url":"https://api.github.com/users/DavidHwu/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHwu/subscriptions","organizations_url":"https://api.github.com/users/DavidHwu/orgs","repos_url":"https://api.github.com/users/DavidHwu/repos","events_url":"https://api.github.com/users/DavidHwu/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHwu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jcrocholl/pep8/labels/feature","name":"feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-04-02T15:40:38Z","updated_at":"2015-02-26T22:13:11Z","closed_at":"2014-12-15T02:33:09Z","body":"not importing files at top is a PEP8 violation.\r\n\r\nhttp://legacy.python.org/dev/peps/pep-0008/\r\nImports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.\r\n\r\nNot flagged in current Pycharm... rerouted from Pycharm per their request"},"comment":{"url":"https://api.github.com/repos/jcrocholl/pep8/issues/comments/76285880","html_url":"https://github.com/jcrocholl/pep8/issues/264#issuecomment-76285880","issue_url":"https://api.github.com/repos/jcrocholl/pep8/issues/264","id":76285880,"user":{"login":"Mark-E-Hamilton","id":5420400,"avatar_url":"https://avatars.githubusercontent.com/u/5420400?v=3","gravatar_id":"","url":"https://api.github.com/users/Mark-E-Hamilton","html_url":"https://github.com/Mark-E-Hamilton","followers_url":"https://api.github.com/users/Mark-E-Hamilton/followers","following_url":"https://api.github.com/users/Mark-E-Hamilton/following{/other_user}","gists_url":"https://api.github.com/users/Mark-E-Hamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/Mark-E-Hamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mark-E-Hamilton/subscriptions","organizations_url":"https://api.github.com/users/Mark-E-Hamilton/orgs","repos_url":"https://api.github.com/users/Mark-E-Hamilton/repos","events_url":"https://api.github.com/users/Mark-E-Hamilton/events{/privacy}","received_events_url":"https://api.github.com/users/Mark-E-Hamilton/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T22:13:11Z","updated_at":"2015-02-26T22:13:11Z","body":"On 02/26/15 15:08, Ian Lee wrote:\n> @Mark-E-Hamilton <https://github.com/Mark-E-Hamilton> -- Is it possible\n> to set |sys.dont_write_bytecode| after all of the imports? E.g.:\n\nYes, but because that variable prevents imports from creating .pyc/.pyo \nfiles, doing it after the imports is too late.\n\n\n-- \n----------------\nMark E. Hamilton\nEngineering Sciences Center\nSenior Member of Technical Staff\nSandia National Laboratories\n505-844-7666\n"}}