[Python-Dev] PyTuple_Pack added references undocumented

Raymond Hettinger raymond.hettinger at verizon.net
Mon Aug 8 04:49:41 CEST 2005


> According to the source code, PyTuple_Pack returns a new reference (it
> calls PyTuple_New). It also Py_INCREF's all the objects in the new
> tuple. Is this unusual behavior? 

No. That is how containers work. Look at PyBuild_Value() for
comparison. 
> None of these added references are documented in the API Reference
Manual.
The docs seem clear to me. If the docs don't meet your needs, submit a
patch.


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /