Apologies if I'm missing something obvious, but I searched GitHub and this 
mailing list first.

protoc-gen-python generates code that follows the typical Python style: 
TitleCase for classes and snake_case for methods.
protoc-gen-grpc-python generates stubs that use TitleCase for both classes 
and methods.

An example Stub:

class MyServiceStub(object):
    def __init__(self, channel):
        self.ReadSchema = channel.unary_unary(
                '/MyService/ReadSchema',
                
request_serializer=my__pb2.ReadSchemaRequest.SerializeToString,
                response_deserializer=my__pb2.ReadSchemaResponse.FromString,
                )
        self.WriteSchema = channel.unary_unary(
                '/MyService/WriteSchema',
                
request_serializer=my__pb2.WriteSchemaRequest.SerializeToString,
                
response_deserializer=my__pb2.WriteSchemaResponse.FromString,
                )

Shouldn't these methods be self.read_schema and self.write_schema?

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/a9e719bf-a40e-4ff5-944d-653793d4b551n%40googlegroups.com.

Reply via email to