"pickletools" — pickle 開発者のためのツール群
*********************************************

バージョン 2.3 で追加.

**ソースコード:** Lib/pickletools.py

======================================================================

This module contains various constants relating to the intimate
details of the "pickle" module, some lengthy comments about the
implementation, and a few useful functions for analyzing pickled data.
The contents of this module are useful for Python core developers who
are working on the "pickle" and "cPickle" implementations; ordinary
users of the "pickle" module probably won’t find the "pickletools"
module relevant.

pickletools.dis(pickle, out=None, memo=None, indentlevel=4)

   Outputs a symbolic disassembly of the pickle to the file-like
   object *out*, defaulting to "sys.stdout".  *pickle* can be a string
   or a file-like object. *memo* can be a Python dictionary that will
   be used as the pickle’s memo; it can be used to perform
   disassemblies across multiple pickles created by the same pickler.
   Successive levels, indicated by "MARK" opcodes in the stream, are
   indented by *indentlevel* spaces.

pickletools.genops(pickle)

   pickle 内の全ての opcode を取り出すイテレータ(*iterator*)を返します
   。このイテレータは "(opcode, arg, pos)" の三つ組みからなる配列を返
   します。 *opcode* は "OpcodeInfo" クラスのインスタンスのクラスです
   。 *arg* は *opcode* の引数としてデコードされた Python オブジェクト
   の値です。 *pos* は *opcode* の場所を表す値です。 *pickle* は文字列
   でもファイル類似オブジェクトでもかまいません。

pickletools.optimize(picklestring)

   使われていない "PUT" 命令コードを除去した上で、その新しい pickle 文
   字列を返します。最適化された pickle は、長さがより短く、転送時間が
   より少なく、必要とするストレージ領域がより狭く、unpickle 化がより効
   率的になります。

   バージョン 2.6 で追加.
