)]}'
{"marconi/common/pipeline.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"c5b8c38926494c3e860e642eec91622a66496fc3","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        with self.consumer_for(name) as consumer:"},{"line_number":54,"context_line":"            return consumer"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @contextlib.contextmanager"},{"line_number":57,"context_line":"    def consumer_for(self, method):"},{"line_number":58,"context_line":"        \"\"\"Creates a closure for `method`"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9%2Beo%3D","line":56,"updated":"2013-12-03 20:58:01.000000000","message":"Could you explain the semantics of this?\n\nWhat I\u0027m seeing here is a decorator, a context manager, and a generator. I\u0027m concerned that mixing that many concepts into one place makes using this unintuitive.\n\nI\u0027ll give it a deeper look later, just concerned. :)","commit_id":"8fa010db9890cb21559e7a01e23bc9b725f5ccce"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"f527ea388b49ca1442fcacb667b2499c9cd600b8","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        with self.consumer_for(name) as consumer:"},{"line_number":54,"context_line":"            return consumer"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @contextlib.contextmanager"},{"line_number":57,"context_line":"    def consumer_for(self, method):"},{"line_number":58,"context_line":"        \"\"\"Creates a closure for `method`"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F962c%3D","line":56,"in_reply_to":"AAAATn%2F9%2Beo%3D","updated":"2013-12-04 13:49:21.000000000","message":"Sure, so, the pipeline hasn\u0027t changed at all. Its usage remains the same it was before, the only difference is that consumer_for is now used under a context manager and it allows you to do something like:\n\n    with pipeline.consumer_for(\u0027blah\u0027) as my_consumer:\n        .....\n\nThe idea is precisely that. Keep the pipeline execution under a specific context. This will allow us to improve the error handling for the pipeline and add a clean-up logic as well.\n\nIMHO, we\u0027re still not using all the potential the pipeline has yet. This is a step forward towards that.","commit_id":"8fa010db9890cb21559e7a01e23bc9b725f5ccce"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"8cf5403afd74a3262303390f380cb0483a8d03f4","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        with self.consumer_for(name) as consumer:"},{"line_number":54,"context_line":"            return consumer"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @contextlib.contextmanager"},{"line_number":57,"context_line":"    def consumer_for(self, method):"},{"line_number":58,"context_line":"        \"\"\"Creates a closure for `method`"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9z5w%3D","line":56,"in_reply_to":"AAAATn%2F962c%3D","updated":"2013-12-05 17:04:46.000000000","message":"Cool, thanks for the explanation!","commit_id":"8fa010db9890cb21559e7a01e23bc9b725f5ccce"}]}
