MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / stat

Method stat

tools/python-3.11.9-amd64/Lib/nntplib.py:734–746  ·  view source on GitHub ↗

Process a STAT command. Argument: - message_spec: article number or message id (if not specified, the current article is selected) Returns: - resp: server response if successful - art_num: the article number - message_id: the message id

(self, message_spec=None)

Source from the content-addressed store, hash-verified

732 return self._statparse(resp)
733
734 def stat(self, message_spec=None):
735 """Process a STAT command. Argument:
736 - message_spec: article number or message id (if not specified,
737 the current article is selected)
738 Returns:
739 - resp: server response if successful
740 - art_num: the article number
741 - message_id: the message id
742 """
743 if message_spec:
744 return self._statcmd('STAT {0}'.format(message_spec))
745 else:
746 return self._statcmd('STAT')
747
748 def next(self):
749 """Process a NEXT command. No arguments. Return as for STAT."""

Callers

nothing calls this directly

Calls 2

_statcmdMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected