Issue #15167 (as part of #13959): imp.get_magic() is no implemented in

Lib/imp.py.
This commit is contained in:
Brett Cannon 2012-07-09 16:09:00 -04:00
parent afbb5fbeb8
commit 77b2abd094
6 changed files with 3941 additions and 3939 deletions

View file

@ -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()