{"action":"created","issue":{"url":"https://api.github.com/repos/djungelorm/krpc/issues/138","labels_url":"https://api.github.com/repos/djungelorm/krpc/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/djungelorm/krpc/issues/138/comments","events_url":"https://api.github.com/repos/djungelorm/krpc/issues/138/events","html_url":"https://github.com/djungelorm/krpc/issues/138","id":77380770,"number":138,"title":"stream context manager returns Stream instead of variable","user":{"login":"baloan","id":651799,"avatar_url":"https://avatars.githubusercontent.com/u/651799?v=3","gravatar_id":"","url":"https://api.github.com/users/baloan","html_url":"https://github.com/baloan","followers_url":"https://api.github.com/users/baloan/followers","following_url":"https://api.github.com/users/baloan/following{/other_user}","gists_url":"https://api.github.com/users/baloan/gists{/gist_id}","starred_url":"https://api.github.com/users/baloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baloan/subscriptions","organizations_url":"https://api.github.com/users/baloan/orgs","repos_url":"https://api.github.com/users/baloan/repos","events_url":"https://api.github.com/users/baloan/events{/privacy}","received_events_url":"https://api.github.com/users/baloan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-17T19:42:05Z","updated_at":"2015-05-17T20:05:25Z","closed_at":null,"body":"I've tried this\r\n```\r\n    with cx.stream(resources.amount, 'SolidFuel') as fuel:\r\n        # fuel = resources.amount('SolidFuel')\r\n        while fuel > 0.1:\r\n            time.sleep(0.1)\r\n            print(\"Fuel: {}\".format(fuel))\r\n        control.activate_next_stage()\r\n```\r\nbut hit this roadblock\r\n```\r\nException in thread Thread-2:\r\nTraceback (most recent call last):\r\n  File \"C:\\Apps\\Python34\\lib\\threading.py\", line 920, in _bootstrap_inner\r\n    self.run()\r\n  File \"C:\\Apps\\Python34\\lib\\threading.py\", line 868, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"C:\\Users\\Andreas\\workspace\\sandbox\\src\\vessels\\surveyor.py\", line 26, in surveyor1\r\n    while fuel > 0.1:\r\nTypeError: unorderable types: Stream() > float()\r\n```\r\nAccording to the docs ```fuel``` should return the amount of solidfuel, right?"},"comment":{"url":"https://api.github.com/repos/djungelorm/krpc/issues/comments/102845038","html_url":"https://github.com/djungelorm/krpc/issues/138#issuecomment-102845038","issue_url":"https://api.github.com/repos/djungelorm/krpc/issues/138","id":102845038,"user":{"login":"djungelorm","id":6644613,"avatar_url":"https://avatars.githubusercontent.com/u/6644613?v=3","gravatar_id":"","url":"https://api.github.com/users/djungelorm","html_url":"https://github.com/djungelorm","followers_url":"https://api.github.com/users/djungelorm/followers","following_url":"https://api.github.com/users/djungelorm/following{/other_user}","gists_url":"https://api.github.com/users/djungelorm/gists{/gist_id}","starred_url":"https://api.github.com/users/djungelorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djungelorm/subscriptions","organizations_url":"https://api.github.com/users/djungelorm/orgs","repos_url":"https://api.github.com/users/djungelorm/repos","events_url":"https://api.github.com/users/djungelorm/events{/privacy}","received_events_url":"https://api.github.com/users/djungelorm/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T20:05:25Z","updated_at":"2015-05-17T20:05:25Z","body":"Looks like I made a mistake in the docs, sorry!"}}