Name
post
Synopsis
n
.post(file
)
Posts an article to the current group, reading it from
file
. file
is a
file-like object open for reading; post
reads the
article’s headers and body from the file by
repeatedly calling
file
.readline
. Note
that file
must contain all needed headers,
then an empty-line separator, then the body. post
returns a string, the response
from the
server to the posting request.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.