parameters: (self, f)
return_statement: return self.getresp()
docstring: Process a POST command.  Arguments:
          - f: file containing the article
          Returns:
          - resp: server response if successful
docstring_summary: Process a POST command.  Arguments:
          - f: file containing the article
          Returns:
          - resp: server response if successful
docstring_tokens: Process a POST command . Arguments : - f : file containing the article Returns : - resp : server response if successful
function: def post(self, f):
          """Process a POST command.  Arguments:
          - f: file containing the article
          Returns:
          - resp: server response if successful"""
  
          resp = self.shortcmd('POST')
          # Raises error_??? if posting is not allowed
          if resp[0] != '3':
              raise NNTPReplyError(resp)
          while 1:
              line = f.readline()
              if not line:
                  break
              if line[-1] == '\n':
                  line = line[:-1]
              if line[:1] == '.':
                  line = '.' + line
              self.putline(line)
          self.putline('.')
          return self.getresp()
function_tokens: def post ( self , f ) : resp = self . shortcmd ( 'POST' ) # Raises error_??? if posting is not allowed if resp [ 0 ] != '3' : raise NNTPReplyError ( resp ) while 1 : line = f . readline ( ) if not line : break if line [ - 1 ] == '\n' : line = line [ : - 1 ] if line [ : 1 ] == '.' : line = '.' + line self . putline ( line ) self . putline ( '.' ) return self . getresp ( )