3 ms·
Ugh, why does the Python driver use CamelCase method names? def GetFeature(self, request, context): http://www.grpc.io/docs/tutorials/basic/python.html ht
by Spiritus 10y ago
Ugh, why does the Python driver use CamelCase method names?
def GetFeature(self, request, context):
http://www.grpc.io/docs/tutorials/basic/python.html http://www.grpc.io/docs/tutorials/basic/python.html
- lobster_johnson 10y agoThat's not the driver, that's just the example. However, according to the style guide, camelcase is preferred, and the compiler is supposed to generate language-native names with the correct case [1]. One thing the terrible years of SOAP and WSDL should have taught people is that generated stubs are awful to use if they go against the grain of the host language. [1] https://developers.google.com/protocol-buffers/docs/style https://developers.google.com/protocol-buffers/docs/style
- elcct 10y agoNot great, but I think it is to match function from the protocol definition. Inside that function you can see "normal" looking python function get_feature.