Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Commit 8488271

Browse files
authored
Merge pull request #722 from srini100/docfix
Add note about pb2 naming in Python.
2 parents e38bfb6 + 960a817 commit 8488271

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/tutorials/basic/python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ than creates a new one. The generated code files are called
185185
- `add_RouteGuideServicer_to_server`, which adds a RouteGuideServicer to
186186
a `grpc.Server`
187187

188+
Note: The `2` in pb2 indicates that the generated code is following Protocol Buffers Python API version 2. Version 1 is obsolete. It has no relation to the Protocol Buffers Language version, which is the one indicated by `syntax = "proto3"` or `syntax = "proto2"` in a .proto file.
189+
188190
<a name="server"></a>
189191

190192
## Creating the server

0 commit comments

Comments
 (0)