> 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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com