Mercurial > cpython-lru_cache-weakref
view Python/importdl.h @ 78236:e683084c8bb9
Consistently raise a TypeError when a non str is passed to hashlib.new
regardless of which of the two implementations of new is used.
| author | Gregory P. Smith <greg@krypto.org> |
|---|---|
| date | Sat, 21 Jul 2012 21:20:44 -0700 |
| parents | 22b0689346f9 |
| children | ffc6e6b00949 |
line wrap: on
line source
#ifndef Py_IMPORTDL_H #define Py_IMPORTDL_H #ifdef __cplusplus extern "C" { #endif extern const char *_PyImport_DynLoadFiletab[]; extern PyObject *_PyImport_LoadDynamicModule(PyObject *name, PyObject *pathname, FILE *); /* Max length of module suffix searched for -- accommodates "module.slb" */ #define MAXSUFFIXSIZE 12 #ifdef MS_WINDOWS #include <windows.h> typedef FARPROC dl_funcptr; #else #if defined(PYOS_OS2) && !defined(PYCC_GCC) #include <os2def.h> typedef int (* APIENTRY dl_funcptr)(); #else typedef void (*dl_funcptr)(void); #endif #endif #ifdef __cplusplus } #endif #endif /* !Py_IMPORTDL_H */
