[
https://issues.apache.org/jira/browse/AVRO-721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975859#action_12975859
]
Michael Russo commented on AVRO-721:
------------------------------------
Adding **kwargs to the BaseRequestor.request method provides a simpler
solution. Is anyone opposed to this? It won't break existing code and
provides an additional degree of flexibility.
Something like this:
{noformat}
class BaseRequestor(object):
def request(self, message_name, request_datum, **kwargs):
"""
Writes a request message and reads a response or error message.
"""
# build handshake and call request
buffer_writer = StringIO()
buffer_encoder = io.BinaryEncoder(buffer_writer)
self.write_handshake_request(buffer_encoder)
self.write_call_request(message_name, request_datum, buffer_encoder)
# send the handshake and call request; block until call response
call_request = buffer_writer.getvalue()
return self.issue_request(call_request, message_name,
request_datum, **kwargs)
{noformat}
> Add Tornado-based asynchronous client to the Python implementation
> ------------------------------------------------------------------
>
> Key: AVRO-721
> URL: https://issues.apache.org/jira/browse/AVRO-721
> Project: Avro
> Issue Type: New Feature
> Components: python
> Reporter: Jeff Hammerbacher
>
> Michael Russo has one working at
> https://github.com/mjrusso/pyhbase/commit/07ed39527bd6752158b1293e8d2df528d649a613
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.