summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-20 00:50:21 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-20 00:50:21 (GMT)
commit53dc735168c876b5ed2e4553965014b07c03904e (patch)
treeb0e1b62f23c2685564485e4ceb7d637ed7f1bd0e /Doc
parent9464d61cbab6560e9c8f7278c701cfe47d5287fa (diff)
downloadcpython-53dc735168c876b5ed2e4553965014b07c03904e.zip
cpython-53dc735168c876b5ed2e4553965014b07c03904e.tar.gz
cpython-53dc735168c876b5ed2e4553965014b07c03904e.tar.bz2
Issue #3080: Add PyImport_ImportFrozenModuleObject()
find_frozen(), get_frozen_object(), is_frozen_package() and other functions related to frozen modules use Unicode strings instead of byte strings.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/import.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index bcf5def..c9556b6 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -217,7 +217,7 @@ Importing Modules
For internal use only.
-.. c:function:: int PyImport_ImportFrozenModule(char *name)
+.. c:function:: int PyImport_ImportFrozenModuleObject(PyObject *name)
Load a frozen module named *name*. Return ``1`` for success, ``0`` if the
module is not found, and ``-1`` with an exception set if the initialization
@@ -225,6 +225,14 @@ Importing Modules
:c:func:`PyImport_ImportModule`. (Note the misnomer --- this function would
reload the module if it was already imported.)
+ .. versionadded:: 3.3
+
+
+.. c:function:: int PyImport_ImportFrozenModule(char *name)
+
+ Similar to :c:func:`PyImport_ImportFrozenModuleObject`, but the name is an
+ UTF-8 encoded string instead of a Unicode object.
+
.. c:type:: struct _frozen