diff options
author | Brett Cannon <brett@python.org> | 2012-07-09 18:22:12 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-07-09 18:22:12 (GMT) |
commit | 3adc7b75a5f35003b3b91de113b5212748dc1a1d (patch) | |
tree | 72266f59b330e725759c32ff03e7269e68b8c712 /Doc/c-api/import.rst | |
parent | 903c27c177f54099e0c07e2244b0cce41e7aec54 (diff) | |
download | cpython-3adc7b75a5f35003b3b91de113b5212748dc1a1d.zip cpython-3adc7b75a5f35003b3b91de113b5212748dc1a1d.tar.gz cpython-3adc7b75a5f35003b3b91de113b5212748dc1a1d.tar.bz2 |
Issue #15242: Have PyImport_GetMagicTag() return a const char *
defined in sysmodule.c instead of straight out of a Unicode object.
Thanks to Amaury Forgeot d'Arc for noticing the bug and Eric Snow for
writing the patch.
Diffstat (limited to 'Doc/c-api/import.rst')
-rw-r--r-- | Doc/c-api/import.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst index 6de3fb0..1f6b1e8 100644 --- a/Doc/c-api/import.rst +++ b/Doc/c-api/import.rst @@ -178,7 +178,8 @@ Importing Modules .. c:function:: const char * PyImport_GetMagicTag() Return the magic tag string for :pep:`3147` format Python bytecode file - names. + names. Keep in mind that the value at ``sys.implementation.cache_tag`` is + authoritative and should be used instead of this function. .. versionadded:: 3.2 |