docstr: Parser of binary RFC 2822 and MIME email messages.
  
  Creates an in-memory object tree representing the email message, which
  can then be manipulated and turned over to a Generator to return the
  textual representation of the message.
  
  The input must be formatted as a block of RFC 2822 headers and header
  continuation lines, optionally preceded by a `Unix-from' header.  The
  header block is terminated either by the end of the input or by a
  blank line.
  
  _class is the class to instantiate for new message objects when they
  must be created.  This class must have a constructor that can take
  zero arguments.  Default is Message.Message.
docstr_tok: ["Parser","of","binary","RFC","2822","and","MIME","email","messages",".","Creates","an","in-memory","object","tree","representing","the","email","message",",","which","can","then","be","manipulated","and","turned","over","to","a","Generator","to","return","the","textual","representation","of","the","message",".","The","input","must","be","formatted","as","a","block","of","RFC","2822","headers","and","header","continuation","lines",",","optionally","preceded","by","a","`","Unix-from","'","header",".","The","header","block","is","terminated","either","by","the","end","of","the","input","or","by","a","blank","line",".","_class","is","the","class","to","instantiate","for","new","message","objects","when","they","must","be","created",".","This","class","must","have","a","constructor","that","can","take","zero","arguments",".","Default","is","Message.Message","."]
code: def __init__(self, *args, **kw):
      """Parser of binary RFC 2822 and MIME email messages.
  
      Creates an in-memory object tree representing the email message, which
      can then be manipulated and turned over to a Generator to return the
      textual representation of the message.
  
      The input must be formatted as a block of RFC 2822 headers and header
      continuation lines, optionally preceded by a `Unix-from' header.  The
      header block is terminated either by the end of the input or by a
      blank line.
  
      _class is the class to instantiate for new message objects when they
      must be created.  This class must have a constructor that can take
      zero arguments.  Default is Message.Message.
      """
      self.parser = Parser(*args, **kw)
  
file_path: cpython/Lib/email/parser.py
imports: from io import StringIO, TextIOWrapper
  from email.feedparser import FeedParser, BytesFeedParser
  from email._policybase import compat32
label_desc: Use image node_id 1 to create a new BytesParser object  with example: obj = BytesParser()