"binhex" — binhex4 形式ファイルのエンコードおよびデコード
*********************************************************

This module encodes and decodes files in binhex4 format, a format
allowing representation of Macintosh files in ASCII.  On the
Macintosh, both forks of a file and the finder information are encoded
(or decoded), on other platforms only the data fork is handled.

注釈: In Python 3.x, special Macintosh support has been removed.

"binhex" モジュールでは以下の関数を定義しています:

binhex.binhex(input, output)

   ファイル名 *input* のバイナリファイルをファイル名 *output* の
   binhex 形式ファイルに変換します。 *output* パラメタはファイル名でも
   ("write()" および "close()" メソッドをサポートするような) ファイル
   様オブジェクトでもかまいません。

binhex.hexbin(input[, output])

   Decode a binhex file *input*. *input* may be a filename or a file-
   like object supporting "read()" and "close()" methods. The
   resulting file is written to a file named *output*, unless the
   argument is omitted in which case the output filename is read from
   the binhex file.

以下の例外も定義されています:

exception binhex.Error

   binhex 形式を使ってエンコードできなかった場合 (例えば、ファイル名が
   filename フィールドに収まらないくらい長かった場合など) や、入力が正
   しくエンコードされた binhex 形式のデータでなかった場合に送出される
   例外です。

参考:

  モジュール "binascii"
     ASCII からバイナリへ、バイナリから ASCII への変換をサポートするモ
     ジュール。


注釈
====

別のより強力なエンコーダおよびデコーダへのインタフェースが存在します。
詳しくはソースを参照してください。

非 Macintosh プラットフォームでテキストファイルをエンコードしたりデコ
ードしたりする場合でも、古い Macintosh の改行文字変換 (行末をキャリッ
ジリターンとする) が行われます。

As of this writing, "hexbin()" appears to not work in all cases.
