{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/1999","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/1999/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/1999/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/1999/events","html_url":"https://github.com/xonsh/xonsh/issues/1999","id":193953508,"number":1999,"title":"Unnecessary Output for Some Python Expressions","user":{"login":"mitnk","id":177049,"avatar_url":"https://avatars.githubusercontent.com/u/177049?v=3","gravatar_id":"","url":"https://api.github.com/users/mitnk","html_url":"https://github.com/mitnk","followers_url":"https://api.github.com/users/mitnk/followers","following_url":"https://api.github.com/users/mitnk/following{/other_user}","gists_url":"https://api.github.com/users/mitnk/gists{/gist_id}","starred_url":"https://api.github.com/users/mitnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitnk/subscriptions","organizations_url":"https://api.github.com/users/mitnk/orgs","repos_url":"https://api.github.com/users/mitnk/repos","events_url":"https://api.github.com/users/mitnk/events{/privacy}","received_events_url":"https://api.github.com/users/mitnk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-07T04:07:36Z","updated_at":"2016-12-11T12:51:55Z","closed_at":null,"body":"Doing this in xonsh:\r\n\r\n```\r\nwith open('foo.txt', 'w') as f:\r\n    for i in range(10000):\r\n        f.write('{}: {}\\n'.format(i, i ** 2))\r\n```\r\n\r\nxonsh prints 10000 lines of output of `f.write()`, which I think is not what users expected. Run the same code in IPython does not have outputs.\r\n"},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/266280372","html_url":"https://github.com/xonsh/xonsh/issues/1999#issuecomment-266280372","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/1999","id":266280372,"user":{"login":"laerus","id":6930157,"avatar_url":"https://avatars.githubusercontent.com/u/6930157?v=3","gravatar_id":"","url":"https://api.github.com/users/laerus","html_url":"https://github.com/laerus","followers_url":"https://api.github.com/users/laerus/followers","following_url":"https://api.github.com/users/laerus/following{/other_user}","gists_url":"https://api.github.com/users/laerus/gists{/gist_id}","starred_url":"https://api.github.com/users/laerus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laerus/subscriptions","organizations_url":"https://api.github.com/users/laerus/orgs","repos_url":"https://api.github.com/users/laerus/repos","events_url":"https://api.github.com/users/laerus/events{/privacy}","received_events_url":"https://api.github.com/users/laerus/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T12:51:55Z","updated_at":"2016-12-11T12:51:55Z","body":"Indeed, i got burned too by this a couple of times, we can always introduce\r\na new xonsh envvar, not sure what the default behavior should be."}}
{"actor":{"display_login":"laerus"}}