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? None of these added references are documented in the API Reference Manual. _______________________________________________ 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
- [Python-Dev] PyTuple_Pack added references undocumented Edward C. Jones
- Re: [Python-Dev] PyTuple_Pack added references und... Guido van Rossum
- Re: [Python-Dev] PyTuple_Pack added references... Fred L. Drake, Jr.
- Re: [Python-Dev] PyTuple_Pack added references und... Raymond Hettinger