• Home
  • Raw
  • Download

Lines Matching +full:where +full:- +full:object

2 :mod:`nntplib` --- NNTP protocol client
15 --------------
29 >>> resp, subs = s.xhdr('subject', first + '-' + last)
30 >>> for id, sub in subs[-10:]: print id, sub
33 1063 Re: [python-committers] (Windows) buildbots on 3.x
69 call reader-specific commands, such as ``group``. If you get unexpected
92 Exception raised when an error code in the range 400--499 is received. For
99 Exception raised when an error code in the range 500--599 is received. For
107 with a digit in the range 1--5. For backwards compatibility, the exception
117 .. _nntp-objects:
120 ------------
124 response: a string beginning with a three-digit code. If the server's response
149 ``'hhmmss'`` indicating the time. Return a pair ``(response, groups)`` where
153 object with that name, write to it then close it. If *file* is a file object,
162 ``(response, articles)`` where *articles* is a list of message ids. If the
165 object with that name, write to it then close it. If *file* is a file object,
172 Send a ``LIST`` command. Return a pair ``(response, list)`` where *list* is a
173 list of tuples. Each tuple has the form ``(group, last, first, flag)``, where
179 a file object with that name, write to it then close it. If *file* is a file
180 object, then it will start calling :meth:`write` on it to store the lines of the
187 Send a ``LIST NEWSGROUPS`` command, where *grouppattern* is a wildmat string as
189 strings). Return a pair ``(response, list)``, where *list* is a list of tuples
209 Send a ``GROUP`` command, where *name* is the group name. Return a tuple
210 ``(response, count, first, last, name)`` where *count* is the (estimated) number
218 Send a ``HELP`` command. Return a pair ``(response, list)`` where *list* is a
221 method will open a file object with that name, write to it then close it. If
222 *file* is a file object, then it will start calling :meth:`write` on it to store
229 Send a ``STAT`` command, where *id* is the message id (enclosed in ``'<'`` and
231 number, id)`` where *number* is the article number (as a string) and *id* is the
247 Send a ``HEAD`` command, where *id* has the same meaning as for :meth:`.stat`.
248 Return a tuple ``(response, number, id, list)`` where the first three are the
255 Send a ``BODY`` command, where *id* has the same meaning as for :meth:`.stat`.
257 *file* is a string, then the method will open a file object with that name,
258 write to it then close it. If *file* is a file object, then it will start
265 Send an ``ARTICLE`` command, where *id* has the same meaning as for
278 ``'subject'``. The *string* argument should have the form ``'first-last'``
279 where *first* and *last* are the first and last article numbers to search.
280 Return a pair ``(response, list)``, where *list* is a list of pairs ``(id,
281 text)``, where *id* is an article number (as a string) and *text* is the text of
284 then the method will open a file object with that name, write to it then close
285 it. If *file* is a file object, then it will start calling :meth:`write` on it
293 object which is read until EOF using its :meth:`~file.readline` method. It should be
294 a well-formed news article, including the required headers. The :meth:`post`
314 Process an ``XGTITLE`` command, returning a pair ``(response, list)``, where
317 If *file* is a string, then the method will open a file object with that name,
318 write to it then close it. If *file* is a file object, then it will start
334 will open a file object with that name, write to it then close it. If *file*
335 is a file object, then it will start calling :meth:`write` on it to store the
343 Return a pair ``(resp, path)``, where *path* is the directory path to the
351 called, no other methods of the NNTP object should be called.