kore-doc

The kore documentation found under https://docs.kore.io/
Commits | Files | Refs | README | git clone https://git.kore.io/kore-doc.git

commit 721c525db3d8cc147f76502cdb759a37b2c10b61
parent 178c8ef3aadbce871edbe961e8d6dfbdfad482fa
Author: Daniel Chavez <dacechavez@gmail.com>
Date:   Sat,  4 May 2019 23:03:46 +0200

dont use python's bytes class as a variable name

Diffstat:
api/python.md | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/api/python.md b/api/python.md @@ -957,11 +957,11 @@ The bytes read as a byte object or None on EOF. ### Example ```python -bytes = await sock.recv(1024) -if bytes is None: +data = await sock.recv(1024) +if data is None: printf("eof!") else: - print("received %s" % bytes) + print("received %s" % data) ``` --- @@ -990,11 +990,11 @@ A tuple of (adress, port, data) or None on EOF. ### Example ```python -ip, port, bytes = await sock.recvfrom(1024) -if bytes is None: +ip, port, data = await sock.recvfrom(1024) +if data is None: printf("eof!") else: - sock.sendto(ip, port, bytes) + sock.sendto(ip, port, data) ``` ---