home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pyhtmldoc / b / binhex < prev    next >
Text File  |  1996-11-14  |  1KB  |  30 lines

  1. <TITLE>binhex -- Python library reference</TITLE>
  2. Next: <A HREF="../u/uu" TYPE="Next">uu</A>  
  3. Prev: <A HREF="../m/mimetools" TYPE="Prev">mimetools</A>  
  4. Up: <A HREF="../i/internet_and_www" TYPE="Up">Internet and WWW</A>  
  5. Top: <A HREF="../t/top" TYPE="Top">Top</A>  
  6. <H1>10.13. Standard module <CODE>binhex</CODE></H1>
  7. This module encodes and decodes files in binhex4 format, a format
  8. allowing representation of Macintosh files in ASCII. On the macintosh,
  9. both forks of a file and the finder information are encoded (or
  10. decoded), on other platforms only the data fork is handled.
  11. <P>
  12. The <CODE>binhex</CODE> module defines the following functions:
  13. <P>
  14. <DL><DT><B>binhex</B> (<VAR>input</VAR>, <VAR>output</VAR>) -- function of module binhex<DD>
  15. Convert a binary file with filename <VAR>input</VAR> to binhex file
  16. <VAR>output</VAR>. The <VAR>output</VAR> parameter can either be a filename or a
  17. file-like object (any object supporting a <VAR>write</VAR> and <VAR>close</VAR>
  18. method).
  19. </DL>
  20. <DL><DT><B>hexbin</B> (<VAR>input</VAR>[, <VAR>output</VAR>]) -- function of module binhex<DD>
  21. Decode a binhex file <VAR>input</VAR>. <VAR>Input</VAR> may be a filename or a
  22. file-like object supporting <VAR>read</VAR> and <VAR>close</VAR> methods.
  23. The resulting file is written to a file named <VAR>output</VAR>, unless the
  24. argument is empty in which case the output filename is read from the
  25. binhex file.
  26. </DL>
  27. <H2>Menu</H2><DL COMPACT>
  28. <DT><A HREF="../n/notes" TYPE=Menu>notes</A>
  29. <DD></DL>
  30.