Skip to content

Commit 3d126c4

Browse files
committed
Update config.yml to clarify return values in socket.accept() method.
1 parent 6c1a0cc commit 3d126c4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

solutions/python/02-rg2/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ hints:
44
This is returned by the [`accept()`](https://docs.python.org/3/library/socket.html#socket.socket.accept) method.
55
66
```python
7-
# The return value includes the client's connection (a `Socket` object) and the client's address (which we ignore)
7+
# The return value includes:
8+
# 1. the client's connection (a `Socket` object)
9+
# 2. the client's address (a tuple of the IP address and port number)
810
connection, _ = server_socket.accept()
911
```
1012
11-
The above code uses `_` to ignore the second return value, which is the client's address (a tuple of the IP address and port number).
13+
The above code uses `_` to ignore the second return value, which is the client's address.
1214
1315
- title_markdown: "How do I read the client's PING command?"
1416
body_markdown: |-

0 commit comments

Comments
 (0)