Name

head

Synopsis

                        n.head(id)

Returns an article’s headers. id is a string, either an article ID enclosed in angle brackets (<>) or an article number in the current group. head returns a tuple of three strings and a list ( response,number,id,list ), where number is the article number in the current group, id is the article ID enclosed in angle brackets, and list is a list of strings that are the lines in the article’s headers, without end-of-line characters.

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.