summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/import.rst
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-07-09 20:09:00 (GMT)
committerBrett Cannon <brett@python.org>2012-07-09 20:09:00 (GMT)
commit77b2abd094998b89ff4d806b78683d4cce8d6d79 (patch)
tree7d710186109f3c551675e3d2e374589e8741d33c /Doc/c-api/import.rst
parentafbb5fbeb82a1943a10e6709e8199dc984819ddf (diff)
downloadcpython-77b2abd094998b89ff4d806b78683d4cce8d6d79.zip
cpython-77b2abd094998b89ff4d806b78683d4cce8d6d79.tar.gz
cpython-77b2abd094998b89ff4d806b78683d4cce8d6d79.tar.bz2
Issue #15167 (as part of #13959): imp.get_magic() is no implemented in
Lib/imp.py.
Diffstat (limited to 'Doc/c-api/import.rst')
-rw-r--r--Doc/c-api/import.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index 1f6b1e8..2d0d1b5 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -172,7 +172,10 @@ Importing Modules
Return the magic number for Python bytecode files (a.k.a. :file:`.pyc` and
:file:`.pyo` files). The magic number should be present in the first four bytes
- of the bytecode file, in little-endian byte order.
+ of the bytecode file, in little-endian byte order. Returns -1 on error.
+
+ .. versionchanged:: 3.3
+ Return value of -1 upon failure.
.. c:function:: const char * PyImport_GetMagicTag()