オブジェクトをヒープ上にメモリ確保する
**************************************

PyObject* _PyObject_New(PyTypeObject *type)
    *Return value: New reference.*

PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size)
    *Return value: New reference.*

   バージョン 2.5 で変更: This function used an "int" type for *size*.
   This might require changes in your code for properly supporting
   64-bit systems.

void _PyObject_Del(PyObject *op)

PyObject* PyObject_Init(PyObject *op, PyTypeObject *type)
    *Return value: Borrowed reference.*

   新たにメモリ確保されたオブジェクト *op* に対し、型と初期状態での参
   照 (initial reference) を初期化します。初期化されたオブジェクトを返
   します。*type* からそのオブジェクトが循環参照ガベージ検出の機能を有
   する場合、検出機構が監視対象とするオブジェクトのセットに追加されま
   す。オブジェクトの他のフィールドには影響を及ぼしません。

PyVarObject* PyObject_InitVar(PyVarObject *op, PyTypeObject *type, Py_ssize_t size)
    *Return value: Borrowed reference.*

   "PyObject_Init()" の全ての処理を行い、可変サイズオブジェクトの場合
   には長さ情報も初期化します。

   バージョン 2.5 で変更: This function used an "int" type for *size*.
   This might require changes in your code for properly supporting
   64-bit systems.

TYPE* PyObject_New(TYPE, PyTypeObject *type)
    *Return value: New reference.*

   C 構造体型 *TYPE* と Python型オブジェクト *type* を使って、新しい
   Python オブジェクトをメモリ上に確保します。Pythonオブジェクトヘッダ
   で定義されていないフィールドは初期化されません; オブジェクトの参照
   カウントは 1 になります。確保するメモリのサイズは型オブジェクトの
   "tp_basicsize" フィールドで決まります。

TYPE* PyObject_NewVar(TYPE, PyTypeObject *type, Py_ssize_t size)
    *Return value: New reference.*

   C 構造体型 *TYPE* と Python 型オブジェクト *type* を使って新しい
   Python オブジェクトをメモリ上に確保します。 Python オブジェクトヘッ
   ダで定義されていないフィールドは初期化されません。確保されたメモリ
   は、 *TYPE* 構造体に加え、*type* の "tp_itemsize" フィールドで指定
   されているサイズを *size* 個分の大きさを格納できます。この関数は、
   例えばタプルのように生成時にサイズを決定できるオブジェクトを実装す
   る際に便利です。一連の複数のフィールドのメモリ割り当てを一度で行う
   ことでアロケーション回数を減らし、メモリ管理の効率が向上します。

   バージョン 2.5 で変更: This function used an "int" type for *size*.
   This might require changes in your code for properly supporting
   64-bit systems.

void PyObject_Del(PyObject *op)

   "PyObject_New()" や "PyObject_NewVar()" で 確保したメモリを解放しま
   す。通常、この関数はオブジェクトの型に指定されている "tp_dealloc"
   ハンドラから呼び出されます。 この関数を呼び出した後は、メモリ領域は
   もはや有効な Python オブジェクトを表現していないので、オブジェクト
   のフィールド に対してアクセスしてはなりません。

PyObject* Py_InitModule(char *name, PyMethodDef *methods)
    *Return value: Borrowed reference.*

   Create a new module object based on a name and table of functions,
   returning the new module object.

   バージョン 2.3 で変更: Older versions of Python did not support
   *NULL* as the value for the *methods* argument.

PyObject* Py_InitModule3(char *name, PyMethodDef *methods, char *doc)
    *Return value: Borrowed reference.*

   Create a new module object based on a name and table of functions,
   returning the new module object.  If *doc* is non-*NULL*, it will
   be used to define the docstring for the module.

   バージョン 2.3 で変更: Older versions of Python did not support
   *NULL* as the value for the *methods* argument.

PyObject* Py_InitModule4(char *name, PyMethodDef *methods, char *doc, PyObject *self, int apiver)
    *Return value: Borrowed reference.*

   Create a new module object based on a name and table of functions,
   returning the new module object.  If *doc* is non-*NULL*, it will
   be used to define the docstring for the module.  If *self* is
   non-*NULL*, it will be passed to the functions of the module as
   their (otherwise *NULL*) first parameter.  (This was added as an
   experimental feature, and there are no known uses in the current
   version of Python.)  For *apiver*, the only value which should be
   passed is defined by the constant "PYTHON_API_VERSION".

   注釈: Most uses of this function should probably be using the
     "Py_InitModule3()" instead; only use this if you are sure you
     need it.

   バージョン 2.3 で変更: Older versions of Python did not support
   *NULL* as the value for the *methods* argument.

PyObject _Py_NoneStruct

   Object which is visible in Python as "None".  This should only be
   accessed using the "Py_None" macro, which evaluates to a pointer to
   this object.
