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

Commit 8026bdc

Browse files
committed
Merge pull request #48 from LisaFC/feature/docs
Fix some formatting in Python tutorial
2 parents 2267561 + 3167be3 commit 8026bdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/tutorials/basic/python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Then you define `rpc` methods inside your service definition, specifying their r
8181
```
8282

8383
- A *bidirectionally-streaming RPC* where both sides send a sequence of messages using a read-write stream. The two streams operate independently, so clients and servers can read and write in whatever order they like: for example, the server could wait to receive all the client messages before writing its responses, or it could alternately read a message then write a message, or some other combination of reads and writes. The order of messages in each stream is preserved. You specify this type of method by placing the `stream` keyword before both the request and the response.
84+
8485
```protobuf
8586
8687
// Accepts a stream of RouteNotes sent while a route is being traversed,
@@ -112,6 +113,7 @@ $ protoc -I ../../protos --python_out=. --grpc_out=. --plugin=protoc-gen-grpc=`w
112113
```
113114

114115
Note that as we've already provided a version of the generated code in the example repository, running this command regenerates the appropriate file rather than creates a new one. The generated code file is called `route_guide_pb2.py` and contains:
116+
115117
- classes for the messages defined in route_guide.proto
116118
- abstract classes for the service defined in route_guide.proto
117119
- `EarlyAdopterRouteGuideServicer`, which defines the interface for implementations of the RouteGuide service

0 commit comments

Comments
 (0)